Skycoder42 / QHotkey

A global shortcut/hotkey for Desktop Qt-Applications
BSD 3-Clause "New" or "Revised" License
548 stars 161 forks source link

Qt6 support for Windows and Mac #54

Closed dbermond closed 2 years ago

dbermond commented 2 years ago

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

After this change, it also works fine for me on Arch Linux x86_64 with Qt 6.2.0.

Mac changes are untested.

Shatur commented 2 years ago

Added CI to prevent situations like this: #56. But I need to merge your PR first.