projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cmake: avoid de-duplication of user's CXXFLAGS
[quassel.git]
/
src
/
qtui
/
dockmanagernotificationbackend.h
diff --git
a/src/qtui/dockmanagernotificationbackend.h
b/src/qtui/dockmanagernotificationbackend.h
index
70efb00
..
9216e93
100644
(file)
--- a/
src/qtui/dockmanagernotificationbackend.h
+++ b/
src/qtui/dockmanagernotificationbackend.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2013
by the Quassel Project
*
+ * Copyright (C) 2013
-2022 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 *
@@
-34,14
+34,14
@@
class DockManagerNotificationBackend : public AbstractNotificationBackend
Q_OBJECT
public:
Q_OBJECT
public:
- DockManagerNotificationBackend(QObject
*parent = 0
);
+ DockManagerNotificationBackend(QObject
* parent = nullptr
);
- void notify(const Notification
&)
;
- void close(uint notificationId);
-
virtual SettingsPage *createConfigWidget() const
;
+ void notify(const Notification
&) override
;
+ void close(uint notificationId)
override
;
+
SettingsPage* createConfigWidget() const override
;
private slots:
private slots:
- void enabledChanged(const QVariant
&);
+ void enabledChanged(const QVariant&);
void updateProgress(int progress);
void updateProgress(int done, int total);
void itemAdded(QDBusObjectPath);
void updateProgress(int progress);
void updateProgress(int done, int total);
void itemAdded(QDBusObjectPath);
@@
-50,32
+50,31
@@
private slots:
private:
class ConfigWidget;
bool _enabled;
private:
class ConfigWidget;
bool _enabled;
+ bool _available;
QDBusConnection _bus;
QDBusConnection _bus;
- QDBusInterface
*_dock
;
- QDBusInterface
*_item
;
- int _count;
+ QDBusInterface
* _dock{nullptr}
;
+ QDBusInterface
* _item{nullptr}
;
+ int _count
{0}
;
};
};
-
class DockManagerNotificationBackend::ConfigWidget : public SettingsPage
{
Q_OBJECT
public:
class DockManagerNotificationBackend::ConfigWidget : public SettingsPage
{
Q_OBJECT
public:
- ConfigWidget(
QWidget *parent = 0
);
+ ConfigWidget(
bool enabled, QWidget* parent = nullptr
);
- void save();
- void load();
- bool hasDefaults() const;
- void defaults();
+ void save()
override
;
+ void load()
override
;
+ bool hasDefaults() const
override
;
+ void defaults()
override
;
private slots:
void widgetChanged();
private:
private slots:
void widgetChanged();
private:
- QCheckBox
*
enabledBox;
+ QCheckBox
*
enabledBox;
bool enabled;
};
bool enabled;
};
-
#endif
#endif