aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-02-15 15:33:23 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2018-02-15 18:13:09 +0000
commit3d13b2cd00200d74105432d2baadc58e877a5ab3 (patch)
treee31751507bedf080e67cc485161f2192a7a5e494 /tests/auto
parent77a693cb41ac6b24ef6a4d8af0d041e26b862563 (diff)
Tests: cleanup QPlatformTheme references
Change-Id: I061f99250ea462b002444de33bc0ae0d80dbf4d5 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/font/tst_font.cpp103
-rw-r--r--tests/auto/palette/tst_palette.cpp127
2 files changed, 114 insertions, 116 deletions
diff --git a/tests/auto/font/tst_font.cpp b/tests/auto/font/tst_font.cpp
index da8f3a2c..a585e970 100644
--- a/tests/auto/font/tst_font.cpp
+++ b/tests/auto/font/tst_font.cpp
@@ -38,14 +38,13 @@
#include "../shared/visualtestutil.h"
#include <QtGui/qfont.h>
-#include <QtGui/qpa/qplatformtheme.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtQml/qqmlengine.h>
#include <QtQml/qqmlcomponent.h>
#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
#include <QtQuickTemplates2/private/qquickcontrol_p.h>
#include <QtQuickTemplates2/private/qquickpopup_p.h>
-#include <QtQuickTemplates2/private/qquickproxytheme_p.h>
+#include <QtQuickTemplates2/private/qquicktheme_p.h>
using namespace QQuickVisualTestUtil;
@@ -186,9 +185,9 @@ class TestFontTheme : public QQuickProxyTheme
public:
TestFontTheme(QPlatformTheme *theme) : QQuickProxyTheme(theme)
{
- std::fill(fonts, fonts + QPlatformTheme::NFonts, static_cast<QFont *>(0));
+ std::fill(fonts, fonts + QQuickTheme::NFonts, static_cast<QFont *>(0));
- for (int i = QPlatformTheme::SystemFont; i < QPlatformTheme::NFonts; ++i) {
+ for (int i = QQuickTheme::SystemFont; i < QQuickTheme::NFonts; ++i) {
QFont font = QFont();
font.setPixelSize(i + 10);
fonts[i] = new QFont(font);
@@ -203,65 +202,65 @@ public:
}
private:
- QFont *fonts[QPlatformTheme::NFonts];
+ QFont *fonts[QQuickTheme::NFonts];
};
-Q_DECLARE_METATYPE(QPlatformTheme::Font)
+Q_DECLARE_METATYPE(QQuickTheme::Font)
void tst_font::defaultFont_data()
{
QTest::addColumn<QString>("control");
- QTest::addColumn<QPlatformTheme::Font>("fontType");
-
- QTest::newRow("AbstractButton") << "AbstractButton" << QPlatformTheme::SystemFont;
- QTest::newRow("ApplicationWindow") << "ApplicationWindow" << QPlatformTheme::SystemFont;
- QTest::newRow("Button") << "Button" << QPlatformTheme::PushButtonFont;
- QTest::newRow("CheckBox") << "CheckBox" << QPlatformTheme::CheckBoxFont;
- QTest::newRow("CheckDelegate") << "CheckDelegate" << QPlatformTheme::ListViewFont;
- QTest::newRow("ComboBox") << "ComboBox" << QPlatformTheme::ComboMenuItemFont;
- QTest::newRow("Container") << "Container" << QPlatformTheme::SystemFont;
- QTest::newRow("Control") << "Control" << QPlatformTheme::SystemFont;
- QTest::newRow("Dial") << "Dial" << QPlatformTheme::SystemFont;
- QTest::newRow("Dialog") << "Dialog" << QPlatformTheme::SystemFont;
- QTest::newRow("DialogButtonBox") << "DialogButtonBox" << QPlatformTheme::SystemFont;
- QTest::newRow("Drawer") << "Drawer" << QPlatformTheme::SystemFont;
- QTest::newRow("Frame") << "Frame" << QPlatformTheme::SystemFont;
- QTest::newRow("GroupBox") << "GroupBox" << QPlatformTheme::GroupBoxTitleFont;
- QTest::newRow("ItemDelegate") << "ItemDelegate" << QPlatformTheme::ItemViewFont;
- QTest::newRow("Label") << "Label" << QPlatformTheme::LabelFont;
- QTest::newRow("Menu") << "Menu" << QPlatformTheme::MenuFont;
- QTest::newRow("MenuItem") << "MenuItem" << QPlatformTheme::MenuItemFont;
- QTest::newRow("MenuSeparator") << "MenuSeparator" << QPlatformTheme::SystemFont;
- QTest::newRow("Page") << "Page" << QPlatformTheme::SystemFont;
- QTest::newRow("Pane") << "Pane" << QPlatformTheme::SystemFont;
- QTest::newRow("Popup") << "Popup" << QPlatformTheme::SystemFont;
- QTest::newRow("ProgressBar") << "ProgressBar" << QPlatformTheme::SystemFont;
- QTest::newRow("RadioButton") << "RadioButton" << QPlatformTheme::RadioButtonFont;
- QTest::newRow("RadioDelegate") << "RadioDelegate" << QPlatformTheme::ListViewFont;
- QTest::newRow("RangeSlider") << "RangeSlider" << QPlatformTheme::SystemFont;
- QTest::newRow("RoundButton") << "RoundButton" << QPlatformTheme::PushButtonFont;
- QTest::newRow("ScrollBar") << "ScrollBar" << QPlatformTheme::SystemFont;
- QTest::newRow("ScrollIndicator") << "ScrollIndicator" << QPlatformTheme::SystemFont;
- QTest::newRow("Slider") << "Slider" << QPlatformTheme::SystemFont;
- QTest::newRow("SpinBox") << "SpinBox" << QPlatformTheme::EditorFont;
- QTest::newRow("SwipeDelegate") << "SwipeDelegate" << QPlatformTheme::ListViewFont;
- QTest::newRow("Switch") << "Switch" << QPlatformTheme::SystemFont; // ### TODO: add QPlatformTheme::SwitchFont
- QTest::newRow("SwitchDelegate") << "SwitchDelegate" << QPlatformTheme::ListViewFont;
- QTest::newRow("TabBar") << "TabBar" << QPlatformTheme::SystemFont;
- QTest::newRow("TabButton") << "TabButton" << QPlatformTheme::TabButtonFont;
- QTest::newRow("TextArea") << "TextArea" << QPlatformTheme::EditorFont;
- QTest::newRow("TextField") << "TextField" << QPlatformTheme::EditorFont;
- QTest::newRow("ToolBar") << "ToolBar" << QPlatformTheme::SystemFont;
- QTest::newRow("ToolButton") << "ToolButton" << QPlatformTheme::ToolButtonFont;
- QTest::newRow("ToolSeparator") << "ToolSeparator" << QPlatformTheme::SystemFont;
- QTest::newRow("ToolTip") << "ToolTip" << QPlatformTheme::TipLabelFont;
- QTest::newRow("Tumbler") << "Tumbler" << QPlatformTheme::ItemViewFont;
+ QTest::addColumn<QQuickTheme::Font>("fontType");
+
+ QTest::newRow("AbstractButton") << "AbstractButton" << QQuickTheme::SystemFont;
+ QTest::newRow("ApplicationWindow") << "ApplicationWindow" << QQuickTheme::SystemFont;
+ QTest::newRow("Button") << "Button" << QQuickTheme::PushButtonFont;
+ QTest::newRow("CheckBox") << "CheckBox" << QQuickTheme::CheckBoxFont;
+ QTest::newRow("CheckDelegate") << "CheckDelegate" << QQuickTheme::ListViewFont;
+ QTest::newRow("ComboBox") << "ComboBox" << QQuickTheme::ComboMenuItemFont;
+ QTest::newRow("Container") << "Container" << QQuickTheme::SystemFont;
+ QTest::newRow("Control") << "Control" << QQuickTheme::SystemFont;
+ QTest::newRow("Dial") << "Dial" << QQuickTheme::SystemFont;
+ QTest::newRow("Dialog") << "Dialog" << QQuickTheme::SystemFont;
+ QTest::newRow("DialogButtonBox") << "DialogButtonBox" << QQuickTheme::SystemFont;
+ QTest::newRow("Drawer") << "Drawer" << QQuickTheme::SystemFont;
+ QTest::newRow("Frame") << "Frame" << QQuickTheme::SystemFont;
+ QTest::newRow("GroupBox") << "GroupBox" << QQuickTheme::GroupBoxTitleFont;
+ QTest::newRow("ItemDelegate") << "ItemDelegate" << QQuickTheme::ItemViewFont;
+ QTest::newRow("Label") << "Label" << QQuickTheme::LabelFont;
+ QTest::newRow("Menu") << "Menu" << QQuickTheme::MenuFont;
+ QTest::newRow("MenuItem") << "MenuItem" << QQuickTheme::MenuItemFont;
+ QTest::newRow("MenuSeparator") << "MenuSeparator" << QQuickTheme::SystemFont;
+ QTest::newRow("Page") << "Page" << QQuickTheme::SystemFont;
+ QTest::newRow("Pane") << "Pane" << QQuickTheme::SystemFont;
+ QTest::newRow("Popup") << "Popup" << QQuickTheme::SystemFont;
+ QTest::newRow("ProgressBar") << "ProgressBar" << QQuickTheme::SystemFont;
+ QTest::newRow("RadioButton") << "RadioButton" << QQuickTheme::RadioButtonFont;
+ QTest::newRow("RadioDelegate") << "RadioDelegate" << QQuickTheme::ListViewFont;
+ QTest::newRow("RangeSlider") << "RangeSlider" << QQuickTheme::SystemFont;
+ QTest::newRow("RoundButton") << "RoundButton" << QQuickTheme::PushButtonFont;
+ QTest::newRow("ScrollBar") << "ScrollBar" << QQuickTheme::SystemFont;
+ QTest::newRow("ScrollIndicator") << "ScrollIndicator" << QQuickTheme::SystemFont;
+ QTest::newRow("Slider") << "Slider" << QQuickTheme::SystemFont;
+ QTest::newRow("SpinBox") << "SpinBox" << QQuickTheme::EditorFont;
+ QTest::newRow("SwipeDelegate") << "SwipeDelegate" << QQuickTheme::ListViewFont;
+ QTest::newRow("Switch") << "Switch" << QQuickTheme::SystemFont; // ### TODO: add QQuickTheme::SwitchFont
+ QTest::newRow("SwitchDelegate") << "SwitchDelegate" << QQuickTheme::ListViewFont;
+ QTest::newRow("TabBar") << "TabBar" << QQuickTheme::SystemFont;
+ QTest::newRow("TabButton") << "TabButton" << QQuickTheme::TabButtonFont;
+ QTest::newRow("TextArea") << "TextArea" << QQuickTheme::EditorFont;
+ QTest::newRow("TextField") << "TextField" << QQuickTheme::EditorFont;
+ QTest::newRow("ToolBar") << "ToolBar" << QQuickTheme::SystemFont;
+ QTest::newRow("ToolButton") << "ToolButton" << QQuickTheme::ToolButtonFont;
+ QTest::newRow("ToolSeparator") << "ToolSeparator" << QQuickTheme::SystemFont;
+ QTest::newRow("ToolTip") << "ToolTip" << QQuickTheme::TipLabelFont;
+ QTest::newRow("Tumbler") << "Tumbler" << QQuickTheme::ItemViewFont;
}
void tst_font::defaultFont()
{
QFETCH(QString, control);
- QFETCH(QPlatformTheme::Font, fontType);
+ QFETCH(QQuickTheme::Font, fontType);
QQmlEngine engine;
QQmlComponent component(&engine);
diff --git a/tests/auto/palette/tst_palette.cpp b/tests/auto/palette/tst_palette.cpp
index 5c1d7cd9..356162a0 100644
--- a/tests/auto/palette/tst_palette.cpp
+++ b/tests/auto/palette/tst_palette.cpp
@@ -38,7 +38,6 @@
#include "../shared/visualtestutil.h"
#include <QtGui/qpalette.h>
-#include <QtGui/qpa/qplatformtheme.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtQml/qqmlengine.h>
#include <QtQml/qqmlcomponent.h>
@@ -222,56 +221,56 @@ class TestTheme : public QQuickProxyTheme
public:
TestTheme(QPlatformTheme *theme) : QQuickProxyTheme(theme)
{
- std::fill(palettes, palettes + QPlatformTheme::NPalettes, static_cast<QPalette *>(0));
+ std::fill(palettes, palettes + QQuickTheme::NPalettes, static_cast<QPalette *>(0));
QPalette palette = QPalette();
palette.setColor(QPalette::Window, Qt::gray);
- palettes[QPlatformTheme::SystemPalette] = new QPalette(palette);
+ palettes[QQuickTheme::SystemPalette] = new QPalette(palette);
palette.setColor(QPalette::ToolTipBase, Qt::yellow);
- palettes[QPlatformTheme::ToolTipPalette] = new QPalette(palette);
+ palettes[QQuickTheme::ToolTipPalette] = new QPalette(palette);
palette.setColor(QPalette::ButtonText, Qt::blue);
- palettes[QPlatformTheme::ToolButtonPalette] = new QPalette(palette);
+ palettes[QQuickTheme::ToolButtonPalette] = new QPalette(palette);
palette.setColor(QPalette::Button, Qt::red);
- palettes[QPlatformTheme::ButtonPalette] = new QPalette(palette);
+ palettes[QQuickTheme::ButtonPalette] = new QPalette(palette);
palette.setColor(QPalette::Text, Qt::green);
- palettes[QPlatformTheme::CheckBoxPalette] = new QPalette(palette);
+ palettes[QQuickTheme::CheckBoxPalette] = new QPalette(palette);
palette.setColor(QPalette::Text, Qt::blue);
- palettes[QPlatformTheme::RadioButtonPalette] = new QPalette(palette);
+ palettes[QQuickTheme::RadioButtonPalette] = new QPalette(palette);
// HeaderPalette unused
palette.setColor(QPalette::Base, Qt::darkGray);
- palettes[QPlatformTheme::ComboBoxPalette] = new QPalette(palette);
+ palettes[QQuickTheme::ComboBoxPalette] = new QPalette(palette);
palette.setColor(QPalette::Base, Qt::lightGray);
- palettes[QPlatformTheme::ItemViewPalette] = new QPalette(palette);
+ palettes[QQuickTheme::ItemViewPalette] = new QPalette(palette);
// MessageBoxLabelPalette unused
palette.setColor(QPalette::ButtonText, Qt::white);
- palettes[QPlatformTheme::TabBarPalette] = new QPalette(palette);
+ palettes[QQuickTheme::TabBarPalette] = new QPalette(palette);
palette.setColor(QPalette::WindowText, Qt::darkGray);
- palettes[QPlatformTheme::LabelPalette] = new QPalette(palette);
+ palettes[QQuickTheme::LabelPalette] = new QPalette(palette);
palette.setColor(QPalette::Mid, Qt::gray);
- palettes[QPlatformTheme::GroupBoxPalette] = new QPalette(palette);
+ palettes[QQuickTheme::GroupBoxPalette] = new QPalette(palette);
palette.setColor(QPalette::Shadow, Qt::darkYellow);
- palettes[QPlatformTheme::MenuPalette] = new QPalette(palette);
+ palettes[QQuickTheme::MenuPalette] = new QPalette(palette);
// MenuBarPalette unused
palette.setColor(QPalette::Base, Qt::cyan);
- palettes[QPlatformTheme::TextEditPalette] = new QPalette(palette);
+ palettes[QQuickTheme::TextEditPalette] = new QPalette(palette);
palette.setColor(QPalette::Base, Qt::magenta);
- palettes[QPlatformTheme::TextLineEditPalette] = new QPalette(palette);
+ palettes[QQuickTheme::TextLineEditPalette] = new QPalette(palette);
QGuiApplicationPrivate::platform_theme = this;
}
@@ -282,65 +281,65 @@ public:
}
private:
- QPalette *palettes[QPlatformTheme::NPalettes];
+ QPalette *palettes[QQuickTheme::NPalettes];
};
-Q_DECLARE_METATYPE(QPlatformTheme::Palette)
+Q_DECLARE_METATYPE(QQuickTheme::Palette)
void tst_palette::defaultPalette_data()
{
QTest::addColumn<QString>("control");
- QTest::addColumn<QPlatformTheme::Palette>("paletteType");
-
- QTest::newRow("AbstractButton") << "AbstractButton" << QPlatformTheme::SystemPalette;
- QTest::newRow("ApplicationWindow") << "ApplicationWindow" << QPlatformTheme::SystemPalette;
- QTest::newRow("Button") << "Button" << QPlatformTheme::ButtonPalette;
- QTest::newRow("CheckBox") << "CheckBox" << QPlatformTheme::CheckBoxPalette;
- QTest::newRow("CheckDelegate") << "CheckDelegate" << QPlatformTheme::ItemViewPalette;
- QTest::newRow("ComboBox") << "ComboBox" << QPlatformTheme::ComboBoxPalette;
- QTest::newRow("Container") << "Container" << QPlatformTheme::SystemPalette;
- QTest::newRow("Control") << "Control" << QPlatformTheme::SystemPalette;
- QTest::newRow("Dial") << "Dial" << QPlatformTheme::SystemPalette;
- QTest::newRow("Dialog") << "Dialog" << QPlatformTheme::SystemPalette;
- QTest::newRow("DialogButtonBox") << "DialogButtonBox" << QPlatformTheme::SystemPalette;
- QTest::newRow("Drawer") << "Drawer" << QPlatformTheme::SystemPalette;
- QTest::newRow("Frame") << "Frame" << QPlatformTheme::SystemPalette;
- QTest::newRow("GroupBox") << "GroupBox" << QPlatformTheme::GroupBoxPalette;
- QTest::newRow("ItemDelegate") << "ItemDelegate" << QPlatformTheme::ItemViewPalette;
- QTest::newRow("Label") << "Label" << QPlatformTheme::LabelPalette;
- QTest::newRow("Menu") << "Menu" << QPlatformTheme::MenuPalette;
- QTest::newRow("MenuItem") << "MenuItem" << QPlatformTheme::MenuPalette;
- QTest::newRow("MenuSeparator") << "MenuSeparator" << QPlatformTheme::MenuPalette;
- QTest::newRow("Page") << "Page" << QPlatformTheme::SystemPalette;
- QTest::newRow("Pane") << "Pane" << QPlatformTheme::SystemPalette;
- QTest::newRow("Popup") << "Popup" << QPlatformTheme::SystemPalette;
- QTest::newRow("ProgressBar") << "ProgressBar" << QPlatformTheme::SystemPalette;
- QTest::newRow("RadioButton") << "RadioButton" << QPlatformTheme::RadioButtonPalette;
- QTest::newRow("RadioDelegate") << "RadioDelegate" << QPlatformTheme::ItemViewPalette;
- QTest::newRow("RangeSlider") << "RangeSlider" << QPlatformTheme::SystemPalette;
- QTest::newRow("RoundButton") << "RoundButton" << QPlatformTheme::ButtonPalette;
- QTest::newRow("ScrollBar") << "ScrollBar" << QPlatformTheme::SystemPalette;
- QTest::newRow("ScrollIndicator") << "ScrollIndicator" << QPlatformTheme::SystemPalette;
- QTest::newRow("Slider") << "Slider" << QPlatformTheme::SystemPalette;
- QTest::newRow("SpinBox") << "SpinBox" << QPlatformTheme::TextLineEditPalette;
- QTest::newRow("SwipeDelegate") << "SwipeDelegate" << QPlatformTheme::ItemViewPalette;
- QTest::newRow("Switch") << "Switch" << QPlatformTheme::CheckBoxPalette; // ### TODO: add QPlatformTheme::SwitchPalette
- QTest::newRow("SwitchDelegate") << "SwitchDelegate" << QPlatformTheme::ItemViewPalette;
- QTest::newRow("TabBar") << "TabBar" << QPlatformTheme::TabBarPalette;
- QTest::newRow("TabButton") << "TabButton" << QPlatformTheme::TabBarPalette;
- QTest::newRow("TextArea") << "TextArea" << QPlatformTheme::TextEditPalette;
- QTest::newRow("TextField") << "TextField" << QPlatformTheme::TextLineEditPalette;
- QTest::newRow("ToolBar") << "ToolBar" << QPlatformTheme::ToolButtonPalette;
- QTest::newRow("ToolButton") << "ToolButton" << QPlatformTheme::ToolButtonPalette;
- QTest::newRow("ToolSeparator") << "ToolSeparator" << QPlatformTheme::ToolButtonPalette;
- QTest::newRow("ToolTip") << "ToolTip" << QPlatformTheme::ToolTipPalette;
- QTest::newRow("Tumbler") << "Tumbler" << QPlatformTheme::ItemViewPalette;
+ QTest::addColumn<QQuickTheme::Palette>("paletteType");
+
+ QTest::newRow("AbstractButton") << "AbstractButton" << QQuickTheme::SystemPalette;
+ QTest::newRow("ApplicationWindow") << "ApplicationWindow" << QQuickTheme::SystemPalette;
+ QTest::newRow("Button") << "Button" << QQuickTheme::ButtonPalette;
+ QTest::newRow("CheckBox") << "CheckBox" << QQuickTheme::CheckBoxPalette;
+ QTest::newRow("CheckDelegate") << "CheckDelegate" << QQuickTheme::ItemViewPalette;
+ QTest::newRow("ComboBox") << "ComboBox" << QQuickTheme::ComboBoxPalette;
+ QTest::newRow("Container") << "Container" << QQuickTheme::SystemPalette;
+ QTest::newRow("Control") << "Control" << QQuickTheme::SystemPalette;
+ QTest::newRow("Dial") << "Dial" << QQuickTheme::SystemPalette;
+ QTest::newRow("Dialog") << "Dialog" << QQuickTheme::SystemPalette;
+ QTest::newRow("DialogButtonBox") << "DialogButtonBox" << QQuickTheme::SystemPalette;
+ QTest::newRow("Drawer") << "Drawer" << QQuickTheme::SystemPalette;
+ QTest::newRow("Frame") << "Frame" << QQuickTheme::SystemPalette;
+ QTest::newRow("GroupBox") << "GroupBox" << QQuickTheme::GroupBoxPalette;
+ QTest::newRow("ItemDelegate") << "ItemDelegate" << QQuickTheme::ItemViewPalette;
+ QTest::newRow("Label") << "Label" << QQuickTheme::LabelPalette;
+ QTest::newRow("Menu") << "Menu" << QQuickTheme::MenuPalette;
+ QTest::newRow("MenuItem") << "MenuItem" << QQuickTheme::MenuPalette;
+ QTest::newRow("MenuSeparator") << "MenuSeparator" << QQuickTheme::MenuPalette;
+ QTest::newRow("Page") << "Page" << QQuickTheme::SystemPalette;
+ QTest::newRow("Pane") << "Pane" << QQuickTheme::SystemPalette;
+ QTest::newRow("Popup") << "Popup" << QQuickTheme::SystemPalette;
+ QTest::newRow("ProgressBar") << "ProgressBar" << QQuickTheme::SystemPalette;
+ QTest::newRow("RadioButton") << "RadioButton" << QQuickTheme::RadioButtonPalette;
+ QTest::newRow("RadioDelegate") << "RadioDelegate" << QQuickTheme::ItemViewPalette;
+ QTest::newRow("RangeSlider") << "RangeSlider" << QQuickTheme::SystemPalette;
+ QTest::newRow("RoundButton") << "RoundButton" << QQuickTheme::ButtonPalette;
+ QTest::newRow("ScrollBar") << "ScrollBar" << QQuickTheme::SystemPalette;
+ QTest::newRow("ScrollIndicator") << "ScrollIndicator" << QQuickTheme::SystemPalette;
+ QTest::newRow("Slider") << "Slider" << QQuickTheme::SystemPalette;
+ QTest::newRow("SpinBox") << "SpinBox" << QQuickTheme::TextLineEditPalette;
+ QTest::newRow("SwipeDelegate") << "SwipeDelegate" << QQuickTheme::ItemViewPalette;
+ QTest::newRow("Switch") << "Switch" << QQuickTheme::CheckBoxPalette; // ### TODO: add QQuickTheme::SwitchPalette
+ QTest::newRow("SwitchDelegate") << "SwitchDelegate" << QQuickTheme::ItemViewPalette;
+ QTest::newRow("TabBar") << "TabBar" << QQuickTheme::TabBarPalette;
+ QTest::newRow("TabButton") << "TabButton" << QQuickTheme::TabBarPalette;
+ QTest::newRow("TextArea") << "TextArea" << QQuickTheme::TextEditPalette;
+ QTest::newRow("TextField") << "TextField" << QQuickTheme::TextLineEditPalette;
+ QTest::newRow("ToolBar") << "ToolBar" << QQuickTheme::ToolButtonPalette;
+ QTest::newRow("ToolButton") << "ToolButton" << QQuickTheme::ToolButtonPalette;
+ QTest::newRow("ToolSeparator") << "ToolSeparator" << QQuickTheme::ToolButtonPalette;
+ QTest::newRow("ToolTip") << "ToolTip" << QQuickTheme::ToolTipPalette;
+ QTest::newRow("Tumbler") << "Tumbler" << QQuickTheme::ItemViewPalette;
}
void tst_palette::defaultPalette()
{
QFETCH(QString, control);
- QFETCH(QPlatformTheme::Palette, paletteType);
+ QFETCH(QQuickTheme::Palette, paletteType);
TestTheme theme(QGuiApplicationPrivate::platform_theme);