From 9099ce294c82799f3550f13393a90963055e0ba5 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 10 May 2017 12:47:51 +0200 Subject: Implement defaultPalette() Change-Id: I4345f6a3b61476287b6161d89b752735757f3a7e Reviewed-by: Mitch Curtis --- src/quicktemplates2/qquickswitch.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/quicktemplates2/qquickswitch.cpp') diff --git a/src/quicktemplates2/qquickswitch.cpp b/src/quicktemplates2/qquickswitch.cpp index ece9802d..ae447de8 100644 --- a/src/quicktemplates2/qquickswitch.cpp +++ b/src/quicktemplates2/qquickswitch.cpp @@ -229,4 +229,10 @@ void QQuickSwitch::buttonChange(ButtonChange change) QQuickAbstractButton::buttonChange(change); } +QPalette QQuickSwitch::defaultPalette() const +{ + // ### TODO: add QPlatformTheme::SwitchPalette + return QQuickControlPrivate::themePalette(QPlatformTheme::CheckBoxPalette); +} + QT_END_NAMESPACE -- cgit v1.2.3