Commit Graph

16 Commits

Author SHA1 Message Date
Magnus Groß
5174f8dc1b Allow notification to be dragged and dropped (#473)
* Set x-kde-urls for notifications

The x-kde-urls field in the hints map allows us to provide a direct URL
to the saved screenshot. The notification server may then use this hint
to provide extra functionality, such as drag and drop support and
thumbnails.

For more information see https://community.kde.org/Plasma/Notifications#File_Path

Fixes #256

Note that other notification servers may ignore this hint.

* Avoid branching twice for ok
2019-03-20 22:41:55 +01:00
Alfredo Ramos
ee2f583acd Fix some issues detected by Clazy (#384)
* Fix old style connect

* Fix unneeded QString memory allocations
2018-10-24 01:04:42 +02:00
Alfredo Ramos
7ba02666d1 Fix most of the issues reported by cppcheck (#290) 2018-07-29 00:17:50 +02:00
Danilo Egêa Gondolfo
df3958e43a Use defined(Q_OS_LINUX) || defined(Q_OS_UNIX) where applicable to support BSD OSs. (#264) 2018-07-01 13:45:49 +02:00
lupoDharkael
1047aa0058 Make SysNotification title string translatable 2018-04-11 20:00:05 +02:00
Boyuan Yang
986b774142 systemnotification: Fix wrong icon name (#174)
Current implementation of SystemNotification::sendMessage()
is wrongly using "flameshot.png" as icon name.

We should strip the suffix and directly use "flameshot" to comply
with Desktop Notification Specification.

This commit does so and indeed makes notifications show flameshot
icon on GNOME Shell again.

See also https://developer.gnome.org/notification-spec/ .
2018-03-26 13:17:24 +02:00
lupoDharkael
ae9b8c062c Fast draw colors are now loaded from config 2018-01-23 18:58:19 +01:00
lupoDharkael
d721dcd560 Prefer prefer QVector over QList 2018-01-23 18:14:17 +01:00
lupoDharkael
89ac281033 Fix whitespace consistency 2018-01-19 00:58:40 +01:00
lupoDharkael
c019e19109 Use tray notifications in Windows 2017-12-26 14:23:29 +01:00
lupoDharkael
16c959c826 Add timeout using tray notification 2017-12-26 02:06:57 +01:00
lupoDharkael
77aa604127 Remove dbus from Windows build 2017-12-26 02:00:07 +01:00
lupoDharkael
11b101570f Use QStringLiteral 2017-12-15 18:34:05 +01:00
lupoDharkael
924d467c53 general cleanup
-use of the override keyword
-delete unused code
-const correctness
-more uniform code style
-for each with const references when possible
-getters no longer use the word 'get'
-others
2017-08-09 13:20:07 +02:00
lupoDharkael
260561f074 Fix condition for desktop notifications 2017-07-28 23:04:17 +02:00
lupoDharkael
bd4b5b0def Add base system notifications class 2017-07-28 18:53:17 +02:00