Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KAlarm
Commits
88d9170a
Commit
88d9170a
authored
Jan 26, 2017
by
David Jarvie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix system tray icon used for "some alarms disabled"
parent
32527543
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
Changelog
Changelog
+4
-0
src/kalarm.h
src/kalarm.h
+1
-1
src/traywindow.cpp
src/traywindow.cpp
+4
-9
src/traywindow.h
src/traywindow.h
+0
-1
No files found.
Changelog
View file @
88d9170a
KAlarm Change Log
=== Version 2.11.13 --- 26 January 2017 ===
+ Fix system tray icon used for "some alarms disabled"
+ Improved system tray icons (requires Plasma 5.9) [KDE Bug 362631]
=== Version 2.11.12 (KDE Applications 16.12.1) --- 1 January 2017 ===
+ Fix Export Alarms file save error [KDE Bug 374337]
+ Fix arrow/page up/down keys not working in date edit control
...
...
src/kalarm.h
View file @
88d9170a
...
...
@@ -24,7 +24,7 @@
#undef QT3_SUPPORT
#define VERSION_SUFFIX "-5"
#define KALARM_VERSION "2.11.1
2
" VERSION_SUFFIX
#define KALARM_VERSION "2.11.1
3
" VERSION_SUFFIX
#define KALARM_NAME "KAlarm"
#define KALARM_DBUS_SERVICE "org.kde.kalarm" // D-Bus service name of KAlarm application
...
...
src/traywindow.cpp
View file @
88d9170a
/*
* traywindow.cpp - the KDE system tray applet
* Program: kalarm
* Copyright © 2002-201
6
by David Jarvie <djarvie@kde.org>
* Copyright © 2002-201
7
by David Jarvie <djarvie@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -43,7 +43,6 @@
#include <kstandardguiitem.h>
#include <kiconeffect.h>
#include <kconfig.h>
#include <KIconLoader>
#include <KAboutData>
#include <QMenu>
...
...
@@ -80,9 +79,6 @@ TrayWindow::TrayWindow(MainWindow* parent)
setToolTipIconByName
(
QStringLiteral
(
"kalarm"
));
setToolTipTitle
(
KAboutData
::
applicationData
().
displayName
());
setIconByName
(
QStringLiteral
(
"kalarm"
));
// Load the disabled icon for use by setIconByPixmap()
// - setIconByName() doesn't work for this one!
mIconDisabled
.
addPixmap
(
KIconLoader
::
global
()
->
loadIcon
(
QStringLiteral
(
"kalarm-disabled"
),
KIconLoader
::
Panel
));
setStatus
(
KStatusNotifierItem
::
Active
);
// Set up the context menu
mActionEnabled
=
KAlarm
::
createAlarmEnableAction
(
this
);
...
...
@@ -329,10 +325,9 @@ void TrayWindow::updateToolTip()
*/
void
TrayWindow
::
updateIcon
()
{
if
(
theApp
()
->
alarmsEnabled
())
setIconByName
(
mHaveDisabledAlarms
?
QStringLiteral
(
"kalarm-partdisabled"
)
:
QStringLiteral
(
"kalarm"
));
else
setIconByPixmap
(
mIconDisabled
);
setIconByName
(
!
theApp
()
->
alarmsEnabled
()
?
QStringLiteral
(
"kalarm-disabled"
)
:
mHaveDisabledAlarms
?
QStringLiteral
(
"kalarm-partdisabled"
)
:
QStringLiteral
(
"kalarm"
));
}
/******************************************************************************
...
...
src/traywindow.h
View file @
88d9170a
...
...
@@ -67,7 +67,6 @@ class TrayWindow : public KStatusNotifierItem
void
updateIcon
();
MainWindow
*
mAssocMainWindow
;
// main window associated with this, or null
QIcon
mIconDisabled
;
KToggleAction
*
mActionEnabled
;
NewAlarmAction
*
mActionNew
;
mutable
AlarmListModel
*
mAlarmsModel
;
// active alarms sorted in time order
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment