Jonathan White
6f9907a3cb
Fix clearing clipboad on Gnome
...
* Prefer clearing clipboard by explicitly setting the clipboard to an empty string. Qt's QClipboard::clear() method is unreliable under X11 environment.
* Fixes #4126
2020-01-16 10:54:04 -05:00
Gianluca Recchia
f31d65bdaf
Replace deprecated parts of the code ( #2419 )
...
Performing a dev build against the latest version of Qt failed
because of some deprecated members. They have been replaced
according to the Qt documentation.
Further, Q_OS_MACOS is now the only macro available to identify a
machine running macOS, the others are now deprecated.
See https://doc.qt.io/qt-5/qtglobal.html#Q_OS_OSX and
https://doc.qt.io/qt-5/qtglobal.html#Q_OS_MAC .
2018-10-26 15:19:04 +02:00
TheZ3ro
08a36b4d40
Prevent Klipper from storing secrets in clipboard history ( #1969 )
2018-08-29 11:13:55 -04:00
Louis-Bertrand Varin
8324d03f0a
Formatting the code.
2018-03-31 16:01:30 -04:00
Janek Bevendorff
ee8499f65c
Do not delete MacPasteboard instance on exit, resolves #1543
2018-03-03 02:33:43 +01:00
Weslly
afe48da4b1
Change MacPasteboard init object to QScopedPointer
2017-11-20 17:25:27 -02:00
Weslly
806248ebd4
Review fixes
2017-11-20 16:50:56 -02:00
Janek Bevendorff
8d487d31a4
Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords
2017-03-10 16:12:02 +01:00
Felix Geyer
d559db4fb1
Merge branch '2.0'
2015-09-21 23:23:51 +02:00
Felix Geyer
f236c32063
Clear clipboard when locking databases.
...
Closes #342
2015-09-13 12:38:19 +02:00
Felix Geyer
7fa0eddc5f
Make C++11 mandatory.
2015-09-12 13:55:50 +02:00
Felix Geyer
7137990a21
Clear clipboard only if copied text is still present.
...
Closes #198
2014-05-26 18:41:48 +02:00
Felix Geyer
6504b6f2bd
Drop Qt module name from include statements.
...
This is a preparation to be able to build KeePassX against Qt 5.
2013-10-03 15:18:16 +02:00
Felix Geyer
6e206704f9
Make sure the clipboard is cleared before the QApplication instance is destroyed.
...
Also add safety check so we don't try to use the clipboard if it's not available.
2012-08-04 22:06:41 +02:00
Felix Geyer
68155e8f89
Make use of Q_NULLPTR.
2012-06-29 14:15:16 +02:00
Felix Geyer
d3fcf2e0c4
Move singleton instance code to static member functions.
2012-05-31 14:51:44 +02:00
Felix Geyer
d707fb4760
Store clear clipboard settings.
2012-05-27 20:10:41 +02:00
Felix Geyer
50391e144d
Coding style fixes.
2012-05-26 16:47:58 +02:00
Felix Geyer
f43ad8d062
Support copying username and password to the clipboard.
2012-05-26 16:37:57 +02:00