Logo Search packages:      
Sourcecode: valknut version File versions  Download package

void DCGuiApp::slotTrayMenu ( const QPoint &  ,
int  i 
) [private, slot]

show the tray menu icon

Definition at line 1879 of file dcgui.cpp.

References slotFileQuit(), and slotViewDock().

Referenced by initTray().

{
      int id;

      QPopupMenu *m;

      if ( i == RightButton )
      {
            m = new QPopupMenu(this);

            DCMenuHandler::InsertMenu( m, emiUSER_CAPTION, FALSE, "Valknut" );
            DCMenuHandler::InsertMenu( m, emiSEPARATOR );
            DCMenuHandler::InsertMenu( m, emiEXIT );

            id = m->exec(QCursor::pos());

            delete m;

            if ( id == emiEXIT )
            {
                  slotFileQuit();
            }
      }
      else
      {
            slotViewDock();
      }
}


Generated by  Doxygen 1.6.0   Back to index