diff options
| author | vovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-29 09:19:41 +0000 |
|---|---|---|
| committer | vovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-29 09:19:41 +0000 |
| commit | 080507d3a2bc4c1679d1a2cd639e532fb4adbd31 (patch) | |
| tree | 7ac58e4cea61a0f836c326af448eaaa334ecb54e /src/display.cpp | |
| parent | 8a503d69ecb35d2e9c95885e4d1247011d788442 (diff) | |
| download | qmmp-080507d3a2bc4c1679d1a2cd639e532fb4adbd31.tar.gz qmmp-080507d3a2bc4c1679d1a2cd639e532fb4adbd31.tar.bz2 qmmp-080507d3a2bc4c1679d1a2cd639e532fb4adbd31.zip | |
added song position navigation, context menu over main display
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@45 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/display.cpp')
| -rw-r--r-- | src/display.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/display.cpp b/src/display.cpp index f401d2f54..11e4d71fa 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -22,6 +22,7 @@ #include <QPushButton> #include <QLabel> #include <QSettings> +#include <QMenu> #include <output.h> #include "skin.h" @@ -157,6 +158,7 @@ void MainDisplay::setMaxTime ( long mt ) // TODO: should be removed m_timeIndicator->setSongDuration(mt); } + void MainDisplay::updateSkin() { setPixmap ( m_skin->getMain() ); @@ -273,3 +275,15 @@ void MainDisplay::hideTimeDisplay() m_timeIndicator->setNeedToShowTime(false); } + + +void MainDisplay::mousePressEvent(QMouseEvent *e) +{ + if( e->button() == Qt::RightButton) + { + m_mw->menu()->exec(e->globalPos()); + } + PixmapWidget::mousePressEvent(e); +} + + |
