Changeset 00eaa2707ccc4d073fca03f728697e308b2f9d4e

Show
Ignore:
Timestamp:
19/08/07 18:20:13 (1 year ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1187540413 +0000
git-parent:

[2067ae4c1622f6c4daef4951732a31a11240e742]

git-author:
Jean-Baptiste Kempf <jb@videolan.org> 1187540413 +0000
Message:

Qt4 - Right-Click menus for the main interface. Not implemented yet.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/main_interface.cpp

    r81ffa2c r00eaa27  
    147147    statusBar()->addPermanentWidget( speedLabel, 0 ); 
    148148    statusBar()->addPermanentWidget( timeLabel, 2 ); 
    149  
     149    speedLabel->setContextMenuPolicy ( Qt::CustomContextMenu ); 
     150    timeLabel->setContextMenuPolicy ( Qt::CustomContextMenu ); 
     151    CONNECT( speedLabel, customContextMenuRequested( QPoint ), 
     152             this, showSpeedMenu( QPoint ) ); 
     153    CONNECT( timeLabel, customContextMenuRequested( QPoint ), 
     154             this, showTimeMenu( QPoint ) ); 
    150155    /* Systray */ 
    151156    sysTray = NULL; 
     
    420425        playlistWidget->updateGeometry(); 
    421426    } 
     427} 
     428/**************************************************************************** 
     429 * Small right-click menus 
     430 ****************************************************************************/ 
     431void MainInterface::showSpeedMenu( QPoint pos ) 
     432{ 
     433    QMenu menu( this ); 
     434    menu.addAction( "Not Implemented Yet" ); 
     435    menu.exec( QCursor::pos() ); 
     436} 
     437 
     438void MainInterface::showTimeMenu( QPoint pos ) 
     439{ 
     440    QMenu menu( this ); 
     441    menu.addAction( "Not Implemented Yet" ); 
     442    menu.exec( QCursor::pos() ); 
    422443} 
    423444 
  • modules/gui/qt4/main_interface.hpp

    r0e4fa2d r00eaa27  
    140140    void updateSystrayTooltipName( QString ); 
    141141    void updateSystrayTooltipStatus( int ); 
     142    void showSpeedMenu( QPoint ); 
     143    void showTimeMenu( QPoint ); 
    142144}; 
    143145