diff options
| author | 2007-02-09 14:25:15 +0000 | |
|---|---|---|
| committer | 2007-02-09 14:25:15 +0000 | |
| commit | ab11d4864e27e05b76c95f3f66ef774316db2ba7 (patch) | |
| tree | 53222baae38e916cc09d8e28811bbde7b9a79db1 /src/modules/dockwidget/trayicon.cpp | |
| parent | quick fix (diff) | |
| download | KVIrc-ab11d4864e27e05b76c95f3f66ef774316db2ba7.tar.gz KVIrc-ab11d4864e27e05b76c95f3f66ef774316db2ba7.tar.bz2 KVIrc-ab11d4864e27e05b76c95f3f66ef774316db2ba7.zip | |
More Qt4 port
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@334 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/dockwidget/trayicon.cpp')
| -rw-r--r-- | src/modules/dockwidget/trayicon.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/dockwidget/trayicon.cpp b/src/modules/dockwidget/trayicon.cpp index cf2e46d8d..ccb6ba9ef 100644 --- a/src/modules/dockwidget/trayicon.cpp +++ b/src/modules/dockwidget/trayicon.cpp @@ -200,14 +200,14 @@ void TrayIcon::mousePressEvent( QMouseEvent *e ) // This is for X11, menus appear on mouse press // I'm not sure whether Mac should be here or below.. Somebody check? switch ( e->button() ) { - case RightButton: + case Qt::RightButton: if ( pop ) { pop->popup( e->globalPos() ); e->accept(); } break; - case LeftButton: - case MidButton: + case Qt::LeftButton: + case Qt::MidButton: emit clicked( e->globalPos(), e->button() ); break; default: @@ -232,7 +232,7 @@ void TrayIcon::mouseReleaseEvent( QMouseEvent *e ) #ifdef Q_WS_WIN // This is for Windows, where menus appear on mouse release switch ( e->button() ) { - case RightButton: + case Qt::RightButton: if ( pop ) { // Necessary to make keyboard focus // and menu closing work on Windows. @@ -242,8 +242,8 @@ void TrayIcon::mouseReleaseEvent( QMouseEvent *e ) e->accept(); } break; - case LeftButton: - case MidButton: + case Qt::LeftButton: + case Qt::MidButton: emit clicked( e->globalPos(), e->button() ); break; default: @@ -265,7 +265,7 @@ void TrayIcon::mouseReleaseEvent( QMouseEvent *e ) */ void TrayIcon::mouseDoubleClickEvent( QMouseEvent *e ) { - if ( e->button() == LeftButton ) + if ( e->button() == Qt::LeftButton ) emit doubleClicked( e->globalPos() ); e->accept(); } |
