aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquicktextfield_p_p.h
diff options
context:
space:
mode:
authorVitaly Fanaskov <vitaly.fanaskov@qt.io>2019-08-06 15:50:22 +0200
committerVitaly Fanaskov <vitaly.fanaskov@qt.io>2020-03-18 17:29:24 +0100
commit31f5c21ddb571d744efd1885c0687816b3a12225 (patch)
tree1e7ccb81c2db278ed265638eb25a69c546430575 /src/quicktemplates2/qquicktextfield_p_p.h
parentfccd63d1296a611a282ae15d0c437eb4b09e6eb1 (diff)
Remove old QQuickPalette implementation
The existing implementation was removed in order to reduce massive code duplication and simplify color resolving process. Unit tests were fixed accordingly. See related changes in the qtdeclarative module for the further details. [ChangeLog][General] the palette API is a part of QQuickItem now. Change-Id: Ic94ab4632e626c11d9b26f035e2a8a119c9088ef Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicktextfield_p_p.h')
-rw-r--r--src/quicktemplates2/qquicktextfield_p_p.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/quicktemplates2/qquicktextfield_p_p.h b/src/quicktemplates2/qquicktextfield_p_p.h
index 3389d3dc..a816614d 100644
--- a/src/quicktemplates2/qquicktextfield_p_p.h
+++ b/src/quicktemplates2/qquicktextfield_p_p.h
@@ -53,6 +53,7 @@
#include <QtQuick/private/qquickitemchangelistener_p.h>
#include <QtQuickTemplates2/private/qquickpresshandler_p_p.h>
#include <QtQuickTemplates2/private/qquickdeferredpointer_p_p.h>
+#include <QtQuickTemplates2/private/qquicktheme_p.h>
#include <QtQuickTemplates2/private/qquicktextfield_p.h>
@@ -98,15 +99,6 @@ public:
updateFont(font);
}
- void resolvePalette();
- void inheritPalette(const QPalette &palette);
- void updatePalette(const QPalette &palette);
- inline void setPalette_helper(const QPalette &palette) {
- if (resolvedPalette.resolve() == palette.resolve() && resolvedPalette == palette)
- return;
- updatePalette(palette);
- }
-
#if QT_CONFIG(quicktemplates2_hover)
void updateHoverEnabled(bool h, bool e);
#endif
@@ -133,6 +125,8 @@ public:
void itemImplicitHeightChanged(QQuickItem *item) override;
void itemDestroyed(QQuickItem *item) override;
+ QPalette defaultPalette() const override;
+
#if QT_CONFIG(quicktemplates2_hover)
bool hovered = false;
bool explicitHoverEnabled = false;
@@ -150,12 +144,10 @@ public:
qreal rightInset = 0;
qreal bottomInset = 0;
QFont requestedFont;
- QPalette requestedPalette;
};
QLazilyAllocated<ExtraData> extra;
bool resizingBackground = false;
- QPalette resolvedPalette;
QQuickDeferredPointer<QQuickItem> background;
QString placeholder;
QColor placeholderColor;