Changeset 00eaa2707ccc4d073fca03f728697e308b2f9d4e
- 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
| r81ffa2c |
r00eaa27 |
|
| 147 | 147 | statusBar()->addPermanentWidget( speedLabel, 0 ); |
|---|
| 148 | 148 | 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 ) ); |
|---|
| 150 | 155 | /* Systray */ |
|---|
| 151 | 156 | sysTray = NULL; |
|---|
| … | … | |
| 420 | 425 | playlistWidget->updateGeometry(); |
|---|
| 421 | 426 | } |
|---|
| | 427 | } |
|---|
| | 428 | /**************************************************************************** |
|---|
| | 429 | * Small right-click menus |
|---|
| | 430 | ****************************************************************************/ |
|---|
| | 431 | void MainInterface::showSpeedMenu( QPoint pos ) |
|---|
| | 432 | { |
|---|
| | 433 | QMenu menu( this ); |
|---|
| | 434 | menu.addAction( "Not Implemented Yet" ); |
|---|
| | 435 | menu.exec( QCursor::pos() ); |
|---|
| | 436 | } |
|---|
| | 437 | |
|---|
| | 438 | void MainInterface::showTimeMenu( QPoint pos ) |
|---|
| | 439 | { |
|---|
| | 440 | QMenu menu( this ); |
|---|
| | 441 | menu.addAction( "Not Implemented Yet" ); |
|---|
| | 442 | menu.exec( QCursor::pos() ); |
|---|
| 422 | 443 | } |
|---|
| 423 | 444 | |
|---|
| r0e4fa2d |
r00eaa27 |
|
| 140 | 140 | void updateSystrayTooltipName( QString ); |
|---|
| 141 | 141 | void updateSystrayTooltipStatus( int ); |
|---|
| | 142 | void showSpeedMenu( QPoint ); |
|---|
| | 143 | void showTimeMenu( QPoint ); |
|---|
| 142 | 144 | }; |
|---|
| 143 | 145 | |
|---|