src/gui/util/qsystemtrayicon_x11.cpp
changeset 7 f7bc934e204c
parent 0 1918ee327afb
child 33 3e2da88830cd
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   306 {
   306 {
   307     if (ev->button() == Qt::LeftButton)
   307     if (ev->button() == Qt::LeftButton)
   308         emit q->activated(QSystemTrayIcon::DoubleClick);
   308         emit q->activated(QSystemTrayIcon::DoubleClick);
   309 }
   309 }
   310 
   310 
       
   311 #ifndef QT_NO_WHEELEVENT
   311 void QSystemTrayIconSys::wheelEvent(QWheelEvent *e)
   312 void QSystemTrayIconSys::wheelEvent(QWheelEvent *e)
   312 {
   313 {
   313     QApplication::sendEvent(q, e);
   314     QApplication::sendEvent(q, e);
   314 }
   315 }
       
   316 #endif
   315 
   317 
   316 bool QSystemTrayIconSys::event(QEvent *e)
   318 bool QSystemTrayIconSys::event(QEvent *e)
   317 {
   319 {
   318     if (e->type() == QEvent::ToolTip) {
   320     if (e->type() == QEvent::ToolTip) {
   319         return QApplication::sendEvent(q, e);
   321         return QApplication::sendEvent(q, e);