* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include "taskbarnotificationbackend.h"
+
#include <QApplication>
#include <QCheckBox>
#include <QHBoxLayout>
-#include <QIcon>
#include <QSpinBox>
-#include "taskbarnotificationbackend.h"
-
#include "clientsettings.h"
+#include "icon.h"
#include "mainwin.h"
#include "qtui.h"
TaskbarNotificationBackend::ConfigWidget::ConfigWidget(QWidget *parent) : SettingsPage("Internal", "TaskbarNotification", parent)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
+ auto *layout = new QHBoxLayout(this);
#ifdef Q_OS_MAC
layout->addWidget(enabledBox = new QCheckBox(tr("Activate dock entry, timeout:"), this));
#else
layout->addWidget(enabledBox = new QCheckBox(tr("Mark taskbar entry, timeout:"), this));
#endif
- enabledBox->setIcon(QIcon::fromTheme("flag-blue"));
+ enabledBox->setIcon(icon::get("flag-blue"));
enabledBox->setEnabled(true);
timeoutBox = new QSpinBox(this);
layout->addWidget(timeoutBox);
layout->addStretch(20);
- connect(enabledBox, SIGNAL(toggled(bool)), SLOT(widgetChanged()));
- connect(enabledBox, SIGNAL(toggled(bool)), timeoutBox, SLOT(setEnabled(bool)));
- connect(timeoutBox, SIGNAL(valueChanged(int)), SLOT(widgetChanged()));
+ connect(enabledBox, &QAbstractButton::toggled, this, &ConfigWidget::widgetChanged);
+ connect(enabledBox, &QAbstractButton::toggled, timeoutBox, &QWidget::setEnabled);
+ connect(timeoutBox, selectOverload<int>(&QSpinBox::valueChanged), this, &ConfigWidget::widgetChanged);
}