~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to modules/gui/qt4/util/customwidgets.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-12-07 23:12:27 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: james.westby@ubuntu.com-20081207231227-1h5zp3boi9qq0qk9
Tags: 0.9.8a-1ubuntu1
* merge from debian. LP: #300328, #305100, #289263
* Fixes CVE-2008-5276
* remaining changes
  - build against libxul-dev instead of iceape-dev
  - build against libdca-dev, libass-dev and libx264-dev
  - build against and install libx264 plugin
  - adjust Vcs-Bzr Headers in debian/control
  - add Xb-Npp header to vlc package
  - debian/patches/301_DVD_media.diff: Change %U to %f
     in VLC .desktop file, cf LP #275043

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 ****************************************************************************
4
4
 * Copyright (C) 2006 the VideoLAN team
5
5
 * Copyright (C) 2004 Daniel Molkentin <molkentin@kde.org>
6
 
 * $Id$
 
6
 * $Id: 411c33aa344b4a768928c2a850dae2a0fe019a3f $
7
7
 *
8
8
 * Authors: Clément Stenac <zorglub@videolan.org>
9
9
 * The "ClickLineEdit" control is based on code by  Daniel Molkentin
75
75
    };
76
76
    virtual ~QVLCTreeView()   {};
77
77
 
78
 
    void mouseReleaseEvent(QMouseEvent* e )
 
78
    void mouseReleaseEvent( QMouseEvent* e )
79
79
    {
80
80
        if( e->button() & Qt::RightButton )
81
81
        {
82
82
            emit rightClicked( indexAt( QPoint( e->x(), e->y() ) ),
83
83
                               QCursor::pos() );
84
84
        }
 
85
        QTreeView::mouseReleaseEvent( e );
 
86
    }
 
87
 
 
88
    void mousePressEvent( QMouseEvent* e )
 
89
    {
 
90
        if( e->button() & Qt::LeftButton )
 
91
        {
 
92
            if( !indexAt( QPoint( e->x(), e->y() ) ).isValid() )
 
93
                clearSelection();
 
94
        }
 
95
        QTreeView::mousePressEvent( e );
85
96
    }
86
97
signals:
87
98
    void rightClicked( QModelIndex, QPoint  );