Do not include QHotKey header on non-Mac system

QHotKey is only used on macOS. As a result, do not unconditionally
include QHotKey headers.
This commit is contained in:
Boyuan Yang
2021-02-20 08:01:01 -05:00
parent 96cfd44047
commit ee2ef05178

View File

@@ -16,7 +16,11 @@
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#include "controller.h"
#if defined(Q_OS_MACOS)
#include "external/QHotkey/QHotkey"
#endif
#include "src/config/configwindow.h"
#include "src/core/qguiappcurrentscreen.h"
#include "src/utils/confighandler.h"