summaryrefslogtreecommitdiffstats
path: root/dlgpreferences.h
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-03-29 19:11:23 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-03-29 19:11:23 +0200
commit74d0a4a6f634010db71d05536cffef15bfb1edd9 (patch)
tree89817f43c61fbfd2edda120276f33c5cd75ad92b /dlgpreferences.h
downloadGUI_SS2015-74d0a4a6f634010db71d05536cffef15bfb1edd9.tar.gz
GUI_SS2015-74d0a4a6f634010db71d05536cffef15bfb1edd9.zip
Initial Commit
Diffstat (limited to 'dlgpreferences.h')
-rw-r--r--dlgpreferences.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/dlgpreferences.h b/dlgpreferences.h
new file mode 100644
index 0000000..2921959
--- /dev/null
+++ b/dlgpreferences.h
@@ -0,0 +1,56 @@
+#ifndef DLGPREFERENCES_H
+#define DLGPREFERENCES_H
+
+#include <QDialog>
+#include <QDebug>
+
+namespace Ui {
+class DlgPreferences;
+}
+
+class DlgPreferences : public QDialog
+{
+ Q_OBJECT
+
+ Q_PROPERTY(int Height READ Height WRITE setHeight NOTIFY HeightChanged)
+ Q_PROPERTY(int Width READ Width WRITE setWidth NOTIFY WidthChanged)
+
+public:
+ explicit DlgPreferences(QWidget *parent = 0);
+ ~DlgPreferences();
+
+ int Height() const
+ {
+ return m_Height;
+ }
+
+ int Width() const
+ {
+ return m_Width;
+ }
+
+public slots:
+ void setHeight(int arg);
+
+ void setWidth(int arg);
+
+signals:
+ void HeightChanged(int arg);
+
+ void WidthChanged(int arg);
+
+private slots:
+ void on_buttonOk_clicked();
+
+private:
+ Ui::DlgPreferences *ui;
+ int m_Height;
+ int m_Width;
+
+ // QDialog interface
+public slots:
+ void accept();
+ void reject();
+};
+
+#endif // DLGPREFERENCES_H