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
Link type can be changed to PRIVATE. Only Qt Core will remain
as PUBLIC linking.
It looks like that Qt Widgets is not needed and can be removed.
On Qt6, Qt6::Gui is strictly needed.
Remove the hardcode to the 'include' directory in the CMake
exported target.
This will let the user correctly access the headers when
building a client application with a QHotkey package that
is installed with a CMAKE_INSTALL_INCLUDEDIR different
than 'include'.
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.