projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Prefer default member init over ctor init
[quassel.git]
/
src
/
qtui
/
dockmanagernotificationbackend.cpp
diff --git
a/src/qtui/dockmanagernotificationbackend.cpp
b/src/qtui/dockmanagernotificationbackend.cpp
index
5654776
..
510abd2
100644
(file)
--- a/
src/qtui/dockmanagernotificationbackend.cpp
+++ b/
src/qtui/dockmanagernotificationbackend.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2013
by the Quassel Project
*
+ * Copyright (C) 2013
-2018 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-30,7
+30,7
@@
#include "clientbacklogmanager.h"
DockManagerNotificationBackend::DockManagerNotificationBackend(QObject *parent)
#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();
{
NotificationSettings notificationSettings;
_enabled = notificationSettings.value("DockManager/Enabled", false).toBool();
@@
-110,7
+110,7
@@
void DockManagerNotificationBackend::updateProgress(int done, int total)
int perc = 0;
if (done == total) {
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;
perc = -1;
} else
perc = (done * 100) / total;
@@
-182,7
+182,7
@@
DockManagerNotificationBackend::ConfigWidget::ConfigWidget(bool enabled, QWidget
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->addWidget(enabledBox = new QCheckBox(tr("Mark dockmanager entry"), this));
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->addWidget(enabledBox = new QCheckBox(tr("Mark dockmanager entry"), this));
- enabledBox->set
Enabled
(enabled);
+ enabledBox->set
Visible
(enabled);
connect(enabledBox, SIGNAL(toggled(bool)), SLOT(widgetChanged()));
}
connect(enabledBox, SIGNAL(toggled(bool)), SLOT(widgetChanged()));
}