mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
[Qt] small notificator and style changes
- remove default arguments for notificator - re-order some calls to use same ordering in Qt files - style police changes (spaces, comments and such)
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
#include "notificator.h"
|
||||
|
||||
|
||||
#include <QApplication>
|
||||
#include <QByteArray>
|
||||
#include <QIcon>
|
||||
@@ -32,7 +31,7 @@
|
||||
// https://wiki.ubuntu.com/NotificationDevelopmentGuidelines recommends at least 128
|
||||
const int FREEDESKTOP_NOTIFICATION_ICON_SIZE = 128;
|
||||
|
||||
Notificator::Notificator(const QString &programName, QSystemTrayIcon *trayicon, QWidget *parent):
|
||||
Notificator::Notificator(const QString &programName, QSystemTrayIcon *trayicon, QWidget *parent) :
|
||||
QObject(parent),
|
||||
parent(parent),
|
||||
programName(programName),
|
||||
@@ -48,7 +47,7 @@ Notificator::Notificator(const QString &programName, QSystemTrayIcon *trayicon,
|
||||
}
|
||||
#ifdef USE_DBUS
|
||||
interface = new QDBusInterface("org.freedesktop.Notifications",
|
||||
"/org/freedesktop/Notifications", "org.freedesktop.Notifications");
|
||||
"/org/freedesktop/Notifications", "org.freedesktop.Notifications");
|
||||
if(interface->isValid())
|
||||
{
|
||||
mode = Freedesktop;
|
||||
|
||||
Reference in New Issue
Block a user