From 21de5e22e4bd67fc467dc8175b739ea7c2c6e11d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 17 Oct 2019 22:14:58 +0200 Subject: [PATCH] Fixed QT4 build --- src/GUI/popup.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GUI/popup.cpp b/src/GUI/popup.cpp index 4a0c2d69..45b7dda0 100644 --- a/src/GUI/popup.cpp +++ b/src/GUI/popup.cpp @@ -36,7 +36,10 @@ Label *Label::_instance = 0; Label::Label(const QString &text, QWidget *parent) : QLabel(text, parent, Qt::ToolTip | Qt::BypassGraphicsProxyWidget - | Qt::WindowDoesNotAcceptFocus) +#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) + | Qt::WindowDoesNotAcceptFocus +#endif // QT5 +) { delete _instance; _instance = this;