Changeset View
Changeset View
Standalone View
Standalone View
autotests/khintssettings_unittest.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 34 | { | |||
---|---|---|---|---|---|
46 | QCOMPARE(hints.hint(QPlatformTheme::ToolBarIconSize).toInt(), 22); | 46 | QCOMPARE(hints.hint(QPlatformTheme::ToolBarIconSize).toInt(), 22); | ||
47 | QCOMPARE(hints.hint(QPlatformTheme::ItemViewActivateItemOnSingleClick).toBool(), true); | 47 | QCOMPARE(hints.hint(QPlatformTheme::ItemViewActivateItemOnSingleClick).toBool(), true); | ||
48 | 48 | | |||
49 | QCOMPARE(hints.hint(QPlatformTheme::SystemIconThemeName).toString(), QStringLiteral("breeze")); | 49 | QCOMPARE(hints.hint(QPlatformTheme::SystemIconThemeName).toString(), QStringLiteral("breeze")); | ||
50 | QCOMPARE(hints.hint(QPlatformTheme::SystemIconFallbackThemeName).toString(), QStringLiteral("hicolor")); | 50 | QCOMPARE(hints.hint(QPlatformTheme::SystemIconFallbackThemeName).toString(), QStringLiteral("hicolor")); | ||
51 | QCOMPARE(hints.hint(QPlatformTheme::IconThemeSearchPaths).toStringList(), hints.xdgIconThemePaths()); | 51 | QCOMPARE(hints.hint(QPlatformTheme::IconThemeSearchPaths).toStringList(), hints.xdgIconThemePaths()); | ||
52 | 52 | | |||
53 | const QStringList expectedStyles = QStringList{QStringLiteral(BREEZE_STYLE_NAME), QStringLiteral("oxygen"), QStringLiteral("fusion"), QStringLiteral("windows")}; | 53 | const QStringList expectedStyles = QStringList{QStringLiteral(BREEZE_STYLE_NAME), QStringLiteral("oxygen"), QStringLiteral("fusion"), QStringLiteral("windows")}; | ||
54 | QEXPECT_FAIL("", "Empty entry included", Continue); | | |||
55 | QCOMPARE(hints.hint(QPlatformTheme::StyleNames).toStringList(), expectedStyles); | 54 | QCOMPARE(hints.hint(QPlatformTheme::StyleNames).toStringList(), expectedStyles); | ||
56 | 55 | | |||
57 | QCOMPARE(hints.hint(QPlatformTheme::DialogButtonBoxLayout).toInt(), int(QDialogButtonBox::KdeLayout)); | 56 | QCOMPARE(hints.hint(QPlatformTheme::DialogButtonBoxLayout).toInt(), int(QDialogButtonBox::KdeLayout)); | ||
58 | QCOMPARE(hints.hint(QPlatformTheme::DialogButtonBoxButtonsHaveIcons).toBool(), true); | 57 | QCOMPARE(hints.hint(QPlatformTheme::DialogButtonBoxButtonsHaveIcons).toBool(), true); | ||
59 | QCOMPARE(hints.hint(QPlatformTheme::UseFullScreenForPopupMenu).toBool(), true); | 58 | QCOMPARE(hints.hint(QPlatformTheme::UseFullScreenForPopupMenu).toBool(), true); | ||
60 | QCOMPARE(hints.hint(QPlatformTheme::KeyboardScheme).toInt(), int(QPlatformTheme::KdeKeyboardScheme)); | 59 | QCOMPARE(hints.hint(QPlatformTheme::KeyboardScheme).toInt(), int(QPlatformTheme::KdeKeyboardScheme)); | ||
61 | QCOMPARE(hints.hint(QPlatformTheme::UiEffects).toInt(), 0); | 60 | QCOMPARE(hints.hint(QPlatformTheme::UiEffects).toInt(), 0); | ||
62 | QCOMPARE(hints.hint(QPlatformTheme::IconPixmapSizes).value<QList<int>>(), QList<int>({512, 256, 128, 64, 32, 22, 16, 8})); | 61 | QCOMPARE(hints.hint(QPlatformTheme::IconPixmapSizes).value<QList<int>>(), QList<int>({512, 256, 128, 64, 32, 22, 16, 8})); | ||
63 | QCOMPARE(hints.hint(QPlatformTheme::WheelScrollLines).toInt(), 3); | 62 | QCOMPARE(hints.hint(QPlatformTheme::WheelScrollLines).toInt(), 3); | ||
64 | } | 63 | } | ||
65 | 64 | | |||
66 | QTEST_GUILESS_MAIN(KHintsSettingsTest) | 65 | QTEST_GUILESS_MAIN(KHintsSettingsTest) | ||
67 | 66 | | |||
68 | #include "khintssettings_unittest.moc" | 67 | #include "khintssettings_unittest.moc" |