From 74d0a4a6f634010db71d05536cffef15bfb1edd9 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Sun, 29 Mar 2015 19:11:23 +0200 Subject: Initial Commit --- dlgpreferences.h | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 dlgpreferences.h (limited to 'dlgpreferences.h') 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 +#include + +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 -- cgit v1.2.3-70-g09d2