Wrappers for QMaemo5ValueButton to debug settings dialog standalone.
[yandex-traffic] / settingsDialog.cpp
1 #include <QtGui>
2
3 #ifdef Q_WS_MAEMO_5
4 #include <QtMaemo5>
5 #else
6 #include "QtMaemo5Adapters.hpp"
7 #endif
8
9 #include "settingsDialog.hpp"
10
11
12 // --------------------------------------------------
13 // SettingsDialog
14 // --------------------------------------------------
15 SettingsDialog::SettingsDialog (Settings *settings)
16     : QDialog ()
17 {
18     setWindowTitle (tr ("Settings"));
19
20     QVBoxLayout *layout = new QVBoxLayout (this);
21
22     displayButton = new QMaemo5ValueButton (tr ("Display"), this);
23     layout->addWidget (displayButton);
24     updateButton = new QMaemo5ValueButton (tr ("Update"), this);
25     layout->addWidget (updateButton);
26     alertsButton = new QMaemo5ValueButton (tr ("Alerts"), this);
27     layout->addWidget (alertsButton);
28 }