Changeset View
Changeset View
Standalone View
Standalone View
src/editors/KPropertyRectFEditor.h
1 | /* This file is part of the KDE project | 1 | /* This file is part of the KDE project | ||
---|---|---|---|---|---|
2 | Copyright (C) 2015 Jarosław Staniek <staniek@kde.org> | 2 | Copyright (C) 2015-2017 Jarosław Staniek <staniek@kde.org> | ||
3 | 3 | | |||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or | ||
5 | modify it under the terms of the GNU Library General Public | 5 | modify it under the terms of the GNU Library General Public | ||
6 | License as published by the Free Software Foundation; either | 6 | License as published by the Free Software Foundation; either | ||
7 | version 2 of the License, or (at your option) any later version. | 7 | version 2 of the License, or (at your option) any later version. | ||
8 | 8 | | |||
9 | This library is distributed in the hope that it will be useful, | 9 | This library is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 24 Lines | |||||
35 | }; | 35 | }; | ||
36 | 36 | | |||
37 | class KPROPERTYWIDGETS_EXPORT KPropertyRectFDelegate : public KPropertyLabelCreator, | 37 | class KPROPERTYWIDGETS_EXPORT KPropertyRectFDelegate : public KPropertyLabelCreator, | ||
38 | public KComposedPropertyCreator<KRectFComposedProperty> | 38 | public KComposedPropertyCreator<KRectFComposedProperty> | ||
39 | { | 39 | { | ||
40 | public: | 40 | public: | ||
41 | KPropertyRectFDelegate(); | 41 | KPropertyRectFDelegate(); | ||
42 | 42 | | |||
43 | QString propertyValueToString(const KProperty *property, | ||||
44 | const QLocale &locale) const override; | ||||
45 | | ||||
43 | virtual QString valueToString(const QVariant& value, const QLocale &locale) const; | 46 | virtual QString valueToString(const QVariant& value, const QLocale &locale) const; | ||
44 | }; | 47 | }; | ||
45 | 48 | | |||
46 | #endif | 49 | #endif |