summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlsystempalette_p.h
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-11-05 06:46:17 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-11-05 06:46:17 (GMT)
commita1f47211146629f702457150235da4475c1163ed (patch)
tree0d6fd4f9196906c6938d881cd04fa03ad4f5a1e6 /src/declarative/util/qmlsystempalette_p.h
parent2dce4fa74240ff758da1d1bd9c01d628c753c055 (diff)
downloadQt-a1f47211146629f702457150235da4475c1163ed.zip
Qt-a1f47211146629f702457150235da4475c1163ed.tar.gz
Qt-a1f47211146629f702457150235da4475c1163ed.tar.bz2
qmlsystempalette autotests
Diffstat (limited to 'src/declarative/util/qmlsystempalette_p.h')
-rw-r--r--src/declarative/util/qmlsystempalette_p.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/declarative/util/qmlsystempalette_p.h b/src/declarative/util/qmlsystempalette_p.h
index e87534e..6abbfe0 100644
--- a/src/declarative/util/qmlsystempalette_p.h
+++ b/src/declarative/util/qmlsystempalette_p.h
@@ -56,9 +56,10 @@ class QmlSystemPalettePrivate;
class Q_DECLARATIVE_EXPORT QmlSystemPalette : public QObject
{
Q_OBJECT
+ Q_ENUMS(ColorGroup)
Q_DECLARE_PRIVATE(QmlSystemPalette)
- Q_PROPERTY(QPalette::ColorGroup colorGroup READ colorGroup WRITE setColorGroup NOTIFY paletteChanged)
+ Q_PROPERTY(QmlSystemPalette::ColorGroup colorGroup READ colorGroup WRITE setColorGroup NOTIFY paletteChanged)
Q_PROPERTY(QColor window READ window NOTIFY paletteChanged)
Q_PROPERTY(QColor windowText READ windowText NOTIFY paletteChanged)
Q_PROPERTY(QColor base READ base NOTIFY paletteChanged)
@@ -78,6 +79,8 @@ public:
QmlSystemPalette(QObject *parent=0);
~QmlSystemPalette();
+ enum ColorGroup { Active = QPalette::Active, Inactive = QPalette::Inactive, Disabled = QPalette::Disabled };
+
QColor window() const;
QColor windowText() const;
@@ -97,12 +100,8 @@ public:
QColor highlight() const;
QColor highlightedText() const;
- QPalette::ColorGroup colorGroup() const;
- void setColorGroup(QPalette::ColorGroup);
-
- // FIXME: Move to utility class?
- Q_INVOKABLE QColor lighter(const QColor&) const;
- Q_INVOKABLE QColor darker(const QColor&) const;
+ QmlSystemPalette::ColorGroup colorGroup() const;
+ void setColorGroup(QmlSystemPalette::ColorGroup);
Q_SIGNALS:
void paletteChanged();