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

void DCGuiApp::initTray (  )  [private]

initialize the tray icon

Definition at line 908 of file dcgui.cpp.

References m_bTray, m_pTrayIcon, TrayIcon::setIcon(), TrayIcon::show(), and slotTrayMenu().

Referenced by DCGuiApp().

{
      m_pTrayIcon = 0;
      m_bTray     = FALSE;

      if ( g_pConfig->GetEnableTray() == TRUE )
      {
            m_pTrayIcon = new TrayIcon();
            m_pTrayIcon->setIcon( g_pIconLoader->GetPixmap(eiICON_22x22) );

            m_pTrayIcon->show();

            connect( m_pTrayIcon, SIGNAL(clicked( const QPoint&, int )), this, SLOT(slotTrayMenu( const QPoint&, int )) );
      }
}


Generated by  Doxygen 1.6.0   Back to index