21 lines
494 B
C++
21 lines
494 B
C++
#include "interfacesettings.h"
|
|
#include "settings.h"
|
|
|
|
InterfaceSettings::InterfaceSettings(QWidget *p)
|
|
: QWidget(p)
|
|
{
|
|
setupUi(this);
|
|
};
|
|
|
|
void InterfaceSettings::load()
|
|
{
|
|
systemTrayCheckBox->setChecked(Settings::self()->useSystemTray());
|
|
systemTrayPopup->setChecked(Settings::self()->showPopups());
|
|
}
|
|
|
|
void InterfaceSettings::save()
|
|
{
|
|
Settings::self()->saveUseSystemTray(systemTrayCheckBox->isChecked());
|
|
Settings::self()->saveShowPopups(systemTrayPopup->isChecked());
|
|
}
|