itom
Loading...
Searching...
No Matches
TestSubClass.h
1// *************************************************************************************************
2//
3// This code is part of the Sample Application to demonstrate the use of the QPropertyEditor library.
4// It is distributed as public domain and can be modified and used by you without any limitations.
5//
6// Your feedback is welcome!
7//
8// Author: Volker Wiendl
9// Enum enhancement by Roman alias banal from qt-apps.org
10// *************************************************************************************************
11
12#ifndef TESTSUBCLASS_H_
13#define TESTSUBCLASS_H_
14
15#include "TestClass.h"
16
17class TestSubClass : public TestClass
18{
19 Q_OBJECT
20 Q_CLASSINFO("TestSubClass", "Sub Class Specific");
21
22 Q_PROPERTY(QString Date READ date WRITE setDate DESIGNABLE true USER true)
23 Q_CLASSINFO("Date", "inputMask=0000-00-00;");
24
25public:
26 TestSubClass(QObject* parent = 0);
27 virtual ~TestSubClass();
28
29 QString date() const {return m_date;}
30 void setDate(const QString& date) {m_date = date;}
31
32private:
33 QString m_date;
34
35};
36#endif
Definition TestClass.h:21
Definition TestSubClass.h:18