aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickpageindicator.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-29 17:13:52 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-30 08:18:50 +0000
commit390fb0d4a8e4f308b225a86b48205b14633cf0e2 (patch)
tree873c89575197999773950aaa7748a72e4c4abb3f /src/templates/qquickpageindicator.cpp
parentdeac7d30a51d785ed01994b5cb0239a9f6b3f12e (diff)
Remove PageIndicator::color
The color property was added in e828b9514. The idea was that it would be convenient to match the indicator against a specific background color, and that the property would be designable. However, the color property is basically impossible to support for styles that have specific color palettes for dark and light themes. => Implement a custom delegate if customization is required. Change-Id: I044bbe560a59362c585c801271cd2852456287b7 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickpageindicator.cpp')
-rw-r--r--src/templates/qquickpageindicator.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/templates/qquickpageindicator.cpp b/src/templates/qquickpageindicator.cpp
index c8518b6f..31fe28db 100644
--- a/src/templates/qquickpageindicator.cpp
+++ b/src/templates/qquickpageindicator.cpp
@@ -81,7 +81,6 @@ public:
bool interactive;
QQmlComponent *delegate;
QQuickItem *pressedItem;
- QColor color;
};
QQuickItem *QQuickPageIndicatorPrivate::itemAt(const QPoint &pos) const
@@ -200,8 +199,6 @@ void QQuickPageIndicator::setInteractive(bool interactive)
\row \li \b index : int \li The index of the item
\row \li \b pressed : bool \li Whether the item is pressed
\endtable
-
- \sa color
*/
QQmlComponent *QQuickPageIndicator::delegate() const
{
@@ -218,28 +215,6 @@ void QQuickPageIndicator::setDelegate(QQmlComponent *delegate)
}
}
-/*!
- \qmlproperty color Qt.labs.controls::PageIndicator::color
-
- This property holds the color of the indicator.
-
- \sa delegate
-*/
-QColor QQuickPageIndicator::color() const
-{
- Q_D(const QQuickPageIndicator);
- return d->color;
-}
-
-void QQuickPageIndicator::setColor(const QColor &color)
-{
- Q_D(QQuickPageIndicator);
- if (d->color != color) {
- d->color = color;
- emit colorChanged();
- }
-}
-
void QQuickPageIndicator::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
{
Q_D(QQuickPageIndicator);