#include "clientbacklogmanager.h"
DockManagerNotificationBackend::DockManagerNotificationBackend(QObject *parent)
- : AbstractNotificationBackend(parent), _bus(QDBusConnection::sessionBus()), _dock(0), _item(0), _count(0)
+ : AbstractNotificationBackend(parent), _bus(QDBusConnection::sessionBus())
{
NotificationSettings notificationSettings;
_enabled = notificationSettings.value("DockManager/Enabled", false).toBool();
int perc = 0;
if (done == total) {
- disconnect(Client::backlogManager(), 0, this, 0);
+ disconnect(Client::backlogManager(), nullptr, this, nullptr);
perc = -1;
} else
perc = (done * 100) / total;
DockManagerNotificationBackend::ConfigWidget::ConfigWidget(bool enabled, QWidget *parent)
: SettingsPage("Internal", "DockManagerNotification", parent)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
+ auto *layout = new QHBoxLayout(this);
layout->addWidget(enabledBox = new QCheckBox(tr("Mark dockmanager entry"), this));
- enabledBox->setEnabled(enabled);
+ enabledBox->setVisible(enabled);
connect(enabledBox, SIGNAL(toggled(bool)), SLOT(widgetChanged()));
}