Commit Graph
26 Commits
Author SHA1 Message Date
Daniel Bermond 6c0e98492c Add compatibility with QT_NO_KEYWORDS macro (#104)
The Qt documentation recommends[1] not using Qt keywords in the
public API of Qt libraries, specially the 'signals' and 'slots'
Qt keywords.

Without this, client applications that are compiled with the
'QT_NO_KEYWORDS'[2] macro (or that are compiled in conjunction
with other libraries that also defines the same Qt keywords)
will fail to build.

The 'QT_NO_SIGNALS_SLOTS_KEYWORDS'[1] macro assures that
the library is not using 'signals' and 'slots' Qt keywords,
since it will fail to build when they are used. Useful for
code sanity and for avoiding future pull requests that may
try to use these Qt keywords.

[1] https://doc.qt.io/qt-6/signalsandslots.html#signals-and-slots-in-qt-based-libraries
[2] https://doc.qt.io/qt-6/qtglobal.html#QT_NO_KEYWORDS
2025-07-06 13:48:54 +03:00
Hennadii Chernyshchyk e0bc2a9b9f Fix shared library build 2021-10-05 19:07:12 +03:00
Daniel Bermond 7b10ea6d64 Qt6 support for Windows and Mac (#54)
This follows commit 25f2184.

On Windows, changing the return value of the qHash() variant that
takes one argument fixes the following warning on MSVC 2019:

qhotkey.cpp:(371,45): warning C4267: 'return': conversion from
'size_t' to 'uint', possible loss of data
2021-10-03 14:18:23 +03:00
Daniel Bermond 25f21849b3 Add support for Qt6 (#51)
CMake:
The 'QT_MAJOR' CMake variable controls which major version
of Qt is used for building. Defaults to '5', so nothing
changes when using the default 'cmake' invocation, as it
will default to search/build for Qt5.

qmake:
Just build in the usual way with 'qmake6 && make' or
'qmake-qt5 && make'.

When building with Qt6 on GNU/Linux and similar UNIXes,
the minimium required Qt version is 6.2.0, as Qt 6.1
and 6.0 lacks support for getting the X11 display.
2021-09-30 20:46:35 +03:00
Shatur95 4bb901a41e Pass NativeShortcut by value (trivially copyable) 2020-10-17 01:07:57 +03:00
Shatur95 2a87965ed6 Add mising override 2020-10-15 22:12:11 +03:00
Alexandre Vicente e113ace9a1 Indentation fix 2020-04-21 22:10:49 -03:00
Alexandre Vicente 5b507a84df Hotkey release signal 2020-04-21 12:45:10 -03:00
Hennadii Chernyshchyk 9583eafe76 Add isPlatformSupported() (#28)
* Add isPlatformSupported()
* Remove extra semicolons
* Add newlines before new methods
2020-01-07 09:31:37 +01:00
Skycoder42 700367d132 updated readme and documentation 2018-03-11 00:06:42 +01:00
Skycoder42 fc259100b2 added addGlobalMapping method
Enables overrides for specific key sequences, fixes #11
2017-12-21 18:12:48 +01:00
Skycoder42 0943bb0494 lib fixup 2017-10-23 15:36:25 +02:00
Skycoder42 53bd8cdd14 code cleanup 2017-04-18 16:31:05 +02:00
Skycoder42 898e3b9b6d updated doc 2016-12-04 17:28:37 +01:00
Skycoder42 686abe219a added native shortcut support (win) 2016-12-04 16:49:53 +01:00
Skycoder42 5d770d60a0 modified native hotkey to allow 0 as valid key 2016-12-04 16:03:12 +01:00
Skycoder42 49da8b1c5c updated 0 to nullptr 2016-11-01 16:28:53 +01:00
Skycoder42 3c40d30190 doc ready and add QPrivateSignal to activated 2016-02-08 15:33:52 +01:00
Skycoder42 1007dd07bc added doxyfile and begin doc 2016-02-08 14:25:59 +01:00
Skycoder42 8eb1ad543a shutdown thread fail repaired (test) 2016-02-08 13:45:40 +01:00
Skycoder42 c53a5dbcbe logging update
use QLoggingCategory now to provides improved logging
2016-02-08 12:57:35 +01:00
Skycoder42 e5d4d103be changed private part completly -> rdy win 2016-02-06 13:54:20 +01:00
Skycoder42 a5eb16973d update for mac (working?) 2016-02-06 11:33:11 +01:00
Skycoder42 45efa316a5 made NativeShortcut private, some mods 2016-02-06 10:23:12 +01:00
Skycoder42 3fe92f4859 Added test (passed windows) 2016-02-05 23:25:36 +01:00
Skycoder42 4d71726f03 init commit 2016-02-05 22:03:36 +01:00