From 080507d3a2bc4c1679d1a2cd639e532fb4adbd31 Mon Sep 17 00:00:00 2001 From: vovanec Date: Sun, 29 Jul 2007 09:19:41 +0000 Subject: 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 --- src/display.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/display.cpp') 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 #include #include +#include #include #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); +} + + -- cgit v1.2.3-13-gbd6f