Added build script of Debian
[qtrapids] / src / utest / options / MainUI.cpp
1 #include "MainUI.hpp"
2 #include "Options.hpp"
3
4 #include <QTabWidget>
5 #include <QBoxLayout>
6 #include <QLabel>
7
8 namespace testopt
9 {
10
11
12 using qtplus::SettingsModel;
13 using qtplus::OptionsGroup;
14
15 MainDialog::MainDialog()
16                 : tabs_(new QTabWidget(this))
17                 , model_(new SettingsModel(this))
18 {
19         setWindowTitle("Test options");
20
21         QLabel *lbl = new QLabel();
22         tabs_->addTab(lbl, "Options");
23         setCentralWidget(tabs_);
24         model_->addGroup(SettingsModel::group_ptr(new OptionsGroup("Group1")));
25 }
26
27 } // namespace testopt