summaryrefslogtreecommitdiffstats
path: root/tools/designer/examples/sizeaware/sizeaware.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-07-10 15:24:15 -0500
committerTimothy Pearson <[email protected]>2011-07-10 15:24:15 -0500
commitbd0f3345a938b35ce6a12f6150373b0955b8dd12 (patch)
tree7a520322212d48ebcb9fbe1087e7fca28b76185c /tools/designer/examples/sizeaware/sizeaware.h
downloadqt3-bd0f3345a938b35ce6a12f6150373b0955b8dd12.tar.gz
qt3-bd0f3345a938b35ce6a12f6150373b0955b8dd12.zip
Add Qt3 development HEAD version
Diffstat (limited to 'tools/designer/examples/sizeaware/sizeaware.h')
-rw-r--r--tools/designer/examples/sizeaware/sizeaware.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/designer/examples/sizeaware/sizeaware.h b/tools/designer/examples/sizeaware/sizeaware.h
new file mode 100644
index 0000000..efa9357
--- /dev/null
+++ b/tools/designer/examples/sizeaware/sizeaware.h
@@ -0,0 +1,23 @@
+#ifndef SIZEAWARE_H
+#define SIZEAWARE_H
+#include <qdialog.h>
+
+class SizeAware : public QDialog
+{
+ Q_OBJECT
+ Q_PROPERTY( QString company READ company WRITE setCompany )
+ Q_PROPERTY( QString settingsFile READ settingsFile WRITE setSettingsFile )
+public:
+ SizeAware( QDialog *parent = 0, const char *name = 0, bool modal = FALSE );
+ ~SizeAware();
+ void setCompany( QString company ) { m_company = company; }
+ QString company() const { return m_company; }
+ void setSettingsFile( QString settingsFile ) { m_settingsFile = settingsFile; }
+ QString settingsFile() const { return m_settingsFile; }
+public slots:
+ void destroy();
+private:
+ QString m_company;
+ QString m_settingsFile;
+};
+#endif