equal
deleted
inserted
replaced
18 |
18 |
19 #include <QMessageBox> |
19 #include <QMessageBox> |
20 #include <QCheckBox> |
20 #include <QCheckBox> |
21 #include <QLineEdit> |
21 #include <QLineEdit> |
22 #include <QDesktopWidget> |
22 #include <QDesktopWidget> |
23 #include <QApplication> |
|
24 #include <QInputDialog> |
23 #include <QInputDialog> |
25 #include <QCryptographicHash> |
24 #include <QCryptographicHash> |
26 |
25 |
27 #include "gameuiconfig.h" |
26 #include "gameuiconfig.h" |
28 #include "hwform.h" |
27 #include "hwform.h" |
29 #include "pageoptions.h" |
28 #include "pageoptions.h" |
30 #include "pagenetserver.h" |
29 #include "pagenetserver.h" |
31 #include "hwconsts.h" |
30 #include "hwconsts.h" |
32 #include "fpsedit.h" |
31 #include "fpsedit.h" |
|
32 #include "HWApplication.h" |
33 |
33 |
34 GameUIConfig::GameUIConfig(HWForm * FormWidgets, const QString & fileName) |
34 GameUIConfig::GameUIConfig(HWForm * FormWidgets, const QString & fileName) |
35 : QSettings(fileName, QSettings::IniFormat) |
35 : QSettings(fileName, QSettings::IniFormat) |
36 { |
36 { |
37 Form = FormWidgets; |
37 Form = FormWidgets; |
95 Form->ui.pageOptions->CBAutoUpdate->setChecked(value("misc/autoUpdate", true).toBool()); |
95 Form->ui.pageOptions->CBAutoUpdate->setChecked(value("misc/autoUpdate", true).toBool()); |
96 #endif |
96 #endif |
97 |
97 |
98 Form->ui.pageOptions->CBLanguage->setCurrentIndex(Form->ui.pageOptions->CBLanguage->findData(value("misc/locale", "").toString())); |
98 Form->ui.pageOptions->CBLanguage->setCurrentIndex(Form->ui.pageOptions->CBLanguage->findData(value("misc/locale", "").toString())); |
99 |
99 |
100 depth = QApplication::desktop()->depth(); |
100 depth = HWApplication::desktop()->depth(); |
101 if (depth < 16) depth = 16; |
101 if (depth < 16) depth = 16; |
102 else if (depth > 16) depth = 32; |
102 else if (depth > 16) depth = 32; |
103 } |
103 } |
104 |
104 |
105 QStringList GameUIConfig::GetTeamsList() |
105 QStringList GameUIConfig::GetTeamsList() |