Changeset 41


Ignore:
Timestamp:
01/06/08 17:56:11 (4 years ago)
Author:
sander
Message:

Set parents right

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/main_window.cpp

    r40 r41  
    100100{ 
    101101    trayIcon = new QSystemTrayIcon(this); 
     102    trayIconMenu = new QMenu(this); 
    102103 
    103104    //Setup Actions 
    104     minimizeAction = new QAction(tr("Mi&nimize"), this); 
     105    minimizeAction = new QAction(tr("Mi&nimize"), trayIconMenu); 
    105106    connect(minimizeAction, SIGNAL(triggered()), this, SLOT(hide())); 
    106107 
    107     maximizeAction = new QAction(tr("Ma&ximize"), this); 
     108    maximizeAction = new QAction(tr("Ma&ximize"), trayIconMenu); 
    108109    connect(maximizeAction, SIGNAL(triggered()), this, SLOT(showMaximized())); 
    109110 
    110     restoreAction = new QAction(tr("&Restore"), this); 
     111    restoreAction = new QAction(tr("&Restore"), trayIconMenu); 
    111112    connect(restoreAction, SIGNAL(triggered()), this, SLOT(showNormal())); 
    112113 
    113     quitAction = new QAction(tr("&Quit"), this); 
     114    quitAction = new QAction(tr("&Quit"), trayIconMenu); 
    114115    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); 
    115116 
     
    117118 
    118119    //Setup Menu 
    119     trayIconMenu = new QMenu(this); 
    120120    trayIconMenu->addAction(minimizeAction); 
    121121    trayIconMenu->addAction(maximizeAction); 
Note: See TracChangeset for help on using the changeset viewer.