Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a47e8f70 authored by Kåre Särs's avatar Kåre Särs

S&R: Use same workaround icon for advanced-search as built-in search

And use fromTheme("foo", fromTheme("fall-back"))
parent 213846cb
......@@ -260,10 +260,10 @@ m_mainWindow (mainWin)
KAcceleratorManager::setNoAccel(m_ui.resultTabWidget);
// Gnome does not seem to have all icons we want, so we use fall-back icons for those that are missing.
QIcon dispOptIcon = QIcon::hasThemeIcon(QStringLiteral("games-config-options")) ? QIcon::fromTheme(QStringLiteral("games-config-options")) : QIcon::fromTheme(QStringLiteral("preferences-system"));
QIcon matchCaseIcon = QIcon::hasThemeIcon(QStringLiteral("format-text-superscript")) ? QIcon::fromTheme(QStringLiteral("format-text-superscript")) : QIcon::fromTheme(QStringLiteral("format-text-bold"));
QIcon useRegExpIcon = QIcon::hasThemeIcon(QStringLiteral("code-context")) ? QIcon::fromTheme(QStringLiteral("code-context")) : QIcon::fromTheme(QStringLiteral("edit-find-replace"));
QIcon expandResultsIcon = QIcon::hasThemeIcon(QStringLiteral("view-list-tree")) ? QIcon::fromTheme(QStringLiteral("view-list-tree")) : QIcon::fromTheme(QStringLiteral("format-indent-more"));
QIcon dispOptIcon = QIcon::fromTheme(QStringLiteral("games-config-options"), QIcon::fromTheme(QStringLiteral("preferences-system")));
QIcon matchCaseIcon = QIcon::fromTheme(QStringLiteral("format-text-superscript"), QIcon::fromTheme(QStringLiteral("format-text-bold")));
QIcon useRegExpIcon = QIcon::fromTheme(QStringLiteral("code-context"), QIcon::fromTheme(QStringLiteral("edit-find-replace")));
QIcon expandResultsIcon = QIcon::fromTheme(QStringLiteral("view-list-tree"), QIcon::fromTheme(QStringLiteral("format-indent-more")));
m_ui.displayOptions->setIcon(dispOptIcon);
m_ui.searchButton->setIcon(QIcon::fromTheme(QStringLiteral("edit-find")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment