Cherry-picking upstream version 0.9.0+20151029.
This commit is contained in:
parent
9153436fff
commit
8a8ae06cce
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,8 +1,9 @@
|
||||
lxqt-powermanagement (0.9.0+20151024-1) experimental; urgency=medium
|
||||
lxqt-powermanagement (0.9.0+20151029-1) experimental; urgency=medium
|
||||
|
||||
* Cherry-picking upstream version 0.9.0+20151024.
|
||||
* Cherry-picking upstream version 0.9.0+20151029.
|
||||
* Set minimum version for libqtxdg and liblxqt
|
||||
|
||||
-- Alf Gaida <agaida@siduction.org> Sat, 24 Oct 2015 12:16:06 +0200
|
||||
-- Alf Gaida <agaida@siduction.org> Fri, 30 Oct 2015 23:50:16 +0100
|
||||
|
||||
lxqt-powermanagement (0.9.0+20150914-1) experimental; urgency=medium
|
||||
|
||||
|
8
debian/control
vendored
8
debian/control
vendored
@ -9,14 +9,14 @@ Build-Depends: cmake (>= 3.0.2),
|
||||
debhelper (>= 9),
|
||||
libkf5solid-dev,
|
||||
libkf5windowsystem-dev,
|
||||
liblxqt0-dev (>= 0.9.0+20150911),
|
||||
liblxqt0-dev (>= 0.9.0+20151026),
|
||||
libqt5svg5-dev,
|
||||
libqt5x11extras5-dev,
|
||||
libqt5xdg-dev (>= 1.3.0),
|
||||
libx11-dev,
|
||||
libx11-xcb-dev,
|
||||
libxcb-dpms0-dev,
|
||||
libxcb-screensaver0-dev,
|
||||
libqt5svg5-dev,
|
||||
libqt5x11extras5-dev,
|
||||
libqt5xdg-dev,
|
||||
pkg-config,
|
||||
qtbase5-private-dev,
|
||||
qttools5-dev,
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "trayicon.h"
|
||||
#include "batteryhelper.h"
|
||||
#include "../config/powermanagementsettings.h"
|
||||
#include <LXQt/Notification>
|
||||
|
||||
TrayIcon::TrayIcon(Solid::Battery *battery, QObject *parent)
|
||||
: QSystemTrayIcon(parent),
|
||||
@ -107,6 +108,15 @@ void TrayIcon::onAboutTriggered()
|
||||
|
||||
void TrayIcon::onDisableIconTriggered()
|
||||
{
|
||||
auto notification = new LXQt::Notification{tr("LXQt Power Management info"), nullptr};
|
||||
notification->setBody(tr("The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i>"));
|
||||
notification->setIcon("preferences-system-power-management");
|
||||
notification->setActions({tr("Configure now")});
|
||||
notification->setUrgencyHint(LXQt::Notification::UrgencyLow);
|
||||
connect(notification, &LXQt::Notification::actionActivated, [notification] { notification->close(); QProcess::startDetached("lxqt-config-powermanagement"); });
|
||||
connect(notification, &LXQt::Notification::notificationClosed, notification, &QObject::deleteLater);
|
||||
notification->update();
|
||||
|
||||
PowerManagementSettings().setShowIcon(false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user