X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fchatviewsearchbar.cpp;h=a8d468064734291dacca4cfa1e1bbef77c327bf7;hb=20745bd0cbae035b84913127dfec9e8433d1282d;hp=48e2bf6f1cdc4789cb752b04912c9dbaf8978d6f;hpb=0a43227b8cd44625f4881cc1545d42c8c8a4876c;p=quassel.git diff --git a/src/qtui/chatviewsearchbar.cpp b/src/qtui/chatviewsearchbar.cpp index 48e2bf6f..a8d46806 100644 --- a/src/qtui/chatviewsearchbar.cpp +++ b/src/qtui/chatviewsearchbar.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,19 +20,18 @@ #include "chatviewsearchbar.h" -#include - #include "action.h" #include "actioncollection.h" +#include "icon.h" #include "qtui.h" ChatViewSearchBar::ChatViewSearchBar(QWidget *parent) : QWidget(parent) { ui.setupUi(this); - ui.hideButton->setIcon(QIcon::fromTheme("dialog-close")); - ui.searchUpButton->setIcon(QIcon::fromTheme("go-up")); - ui.searchDownButton->setIcon(QIcon::fromTheme("go-down")); + ui.hideButton->setIcon(icon::get("dialog-close")); + ui.searchUpButton->setIcon(icon::get("go-up")); + ui.searchDownButton->setIcon(icon::get("go-down")); _searchDelayTimer.setSingleShot(true); layout()->setContentsMargins(0, 0, 0, 0); @@ -44,7 +43,7 @@ ChatViewSearchBar::ChatViewSearchBar(QWidget *parent) QAction *toggleSearchBar = coll->action("ToggleSearchBar"); connect(toggleSearchBar, SIGNAL(toggled(bool)), SLOT(setVisible(bool))); - Action *hideSearchBar = coll->add("HideSearchBar", toggleSearchBar, SLOT(setChecked(bool))); + auto *hideSearchBar = coll->add("HideSearchBar", toggleSearchBar, SLOT(setChecked(bool))); hideSearchBar->setShortcutConfigurable(false); hideSearchBar->setShortcut(Qt::Key_Escape);