Changeset View
Changeset View
Standalone View
Standalone View
src/editors/sizepolicyedit.h
Show All 14 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
15 | along with this library; see the file COPYING.LIB. If not, write to | 15 | along with this library; see the file COPYING.LIB. If not, write to | ||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef KPROPERTY_SIZEPOLICYEDIT_H | 20 | #ifndef KPROPERTY_SIZEPOLICYEDIT_H | ||
21 | #define KPROPERTY_SIZEPOLICYEDIT_H | 21 | #define KPROPERTY_SIZEPOLICYEDIT_H | ||
22 | 22 | | |||
23 | #include "KPropertyFactory.h" | 23 | #include "KPropertyWidgetsFactory.h" | ||
24 | 24 | | |||
25 | class KPROPERTY_EXPORT KSizePolicyComposedProperty : public KComposedPropertyInterface | 25 | class KPROPERTYWIDGETS_EXPORT KSizePolicyComposedProperty : public KComposedPropertyInterface | ||
26 | { | 26 | { | ||
27 | public: | 27 | public: | ||
28 | explicit KSizePolicyComposedProperty(KProperty *parent); | 28 | explicit KSizePolicyComposedProperty(KProperty *parent); | ||
29 | 29 | | |||
30 | virtual void setValue(KProperty *property, | 30 | virtual void setValue(KProperty *property, | ||
31 | const QVariant &value, bool rememberOldValue); | 31 | const QVariant &value, bool rememberOldValue); | ||
32 | 32 | | |||
33 | virtual void childValueChanged(KProperty *child, | 33 | virtual void childValueChanged(KProperty *child, | ||
34 | const QVariant &value, bool rememberOldValue); | 34 | const QVariant &value, bool rememberOldValue); | ||
35 | }; | 35 | }; | ||
36 | 36 | | |||
37 | class KPROPERTY_EXPORT KPropertySizePolicyDelegate : public KPropertyLabelCreator, | 37 | class KPROPERTYWIDGETS_EXPORT KPropertySizePolicyDelegate : public KPropertyLabelCreator, | ||
38 | public KComposedPropertyCreator<KSizePolicyComposedProperty> | 38 | public KComposedPropertyCreator<KSizePolicyComposedProperty> | ||
39 | { | 39 | { | ||
40 | public: | 40 | public: | ||
41 | KPropertySizePolicyDelegate() {} | 41 | KPropertySizePolicyDelegate() {} | ||
42 | 42 | | |||
43 | virtual QString displayText( const QVariant& value ) const; | 43 | virtual QString displayText( const QVariant& value ) const; | ||
44 | 44 | | |||
45 | static const KPropertyListData& listData(); | 45 | static const KPropertyListData& listData(); | ||
46 | }; | 46 | }; | ||
47 | 47 | | |||
48 | #endif | 48 | #endif |