Ignore:
Timestamp:
01/07/08 16:25:46 (4 years ago)
Author:
roeland
Message:

Trayicon popup menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/preferences_dialog.cpp

    r30 r42  
    77 
    88    connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonPressed(QAbstractButton *))); 
    9  
    109    loadSettings(); 
    1110} 
     
    1716    passwordLineEdit->setText(settings.value("connection/password", "").toString()); 
    1817    systemTrayCheckBox->setChecked(settings.value("systemtray").toBool()); 
     18    if (settings.value("systemtray").toBool()) { 
     19        systemTrayPopup->setChecked(settings.value("systemtrayPopup").toBool()); 
     20    } else { 
     21        systemTrayPopup->setEnabled(false); 
     22    } 
    1923} 
    2024 
     
    3236            settings.setValue("connection/password", passwordLineEdit->text()); 
    3337            settings.setValue("systemtray", systemTrayCheckBox->isChecked()); 
     38            if (systemTrayCheckBox->isChecked()) { 
     39                settings.setValue("systemtrayPopup", systemTrayPopup->isChecked()); 
     40            } else { 
     41                settings.setValue("systemtrayPopup", false); 
     42            } 
    3443            emit systemTraySet(systemTrayCheckBox->isChecked()); 
    3544            break; 
Note: See TracChangeset for help on using the changeset viewer.