X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.cpp;h=138364cbef1ddbf1f94c0d9a0db4dd6be3a95314;hp=a0f00d80dc74d54dd355c547808fb39f85cc6c8e;hb=98144aaad0cd747f186edcd0e36a1d67326ac766;hpb=ba8a7d67ff9815f480531acab4a16cfa133929a5 diff --git a/src/qtui/systraynotificationbackend.cpp b/src/qtui/systraynotificationbackend.cpp index a0f00d80..138364cb 100644 --- a/src/qtui/systraynotificationbackend.cpp +++ b/src/qtui/systraynotificationbackend.cpp @@ -18,24 +18,23 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ +#include "systraynotificationbackend.h" + #include #include #include -#include #include -#include "systraynotificationbackend.h" - #include "client.h" #include "clientsettings.h" +#include "icon.h" #include "mainwin.h" #include "networkmodel.h" #include "qtui.h" #include "systemtray.h" SystrayNotificationBackend::SystrayNotificationBackend(QObject *parent) - : AbstractNotificationBackend(parent), - _blockActivation(false) + : AbstractNotificationBackend(parent) { NotificationSettings notificationSettings; notificationSettings.initAndNotify("Systray/ShowBubble", this, SLOT(showBubbleChanged(QVariant)), true); @@ -144,9 +143,9 @@ SettingsPage *SystrayNotificationBackend::createConfigWidget() const SystrayNotificationBackend::ConfigWidget::ConfigWidget(QWidget *parent) : SettingsPage("Internal", "SystrayNotification", parent) { _showBubbleBox = new QCheckBox(tr("Show a message in a popup")); - _showBubbleBox->setIcon(QIcon::fromTheme("dialog-information")); + _showBubbleBox->setIcon(icon::get("dialog-information")); connect(_showBubbleBox, SIGNAL(toggled(bool)), this, SLOT(widgetChanged())); - QHBoxLayout *layout = new QHBoxLayout(this); + auto *layout = new QHBoxLayout(this); layout->addWidget(_showBubbleBox); }