aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-01-29 12:52:14 +1100
committerNeil <nyamatongwe@gmail.com>2019-01-29 12:52:14 +1100
commit04968f507b4aa3406cf6213d37ec8fbeae18779b (patch)
treea9bfa886c3dfda000f3555805d7f72077b841d48
parent1d136228bb4394f8dba6ab9139217d4d64078159 (diff)
downloadscintilla-mirror-04968f507b4aa3406cf6213d37ec8fbeae18779b.tar.gz
Bug [#1548]. Avoid call implemented in Qt 5.9 with earlier versions of Qt.
This restores functioning of Scintilla on versions of Qt before 5.9.
-rw-r--r--qt/ScintillaEditBase/ScintillaQt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp
index dcdd7e314..98a8000fa 100644
--- a/qt/ScintillaEditBase/ScintillaQt.cpp
+++ b/qt/ScintillaEditBase/ScintillaQt.cpp
@@ -619,7 +619,9 @@ public:
: QWidget(nullptr, Qt::ToolTip),
pct(pct_)
{
+#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
setWindowFlag(Qt::WindowTransparentForInput);
+#endif
}
void paintEvent(QPaintEvent *) override