File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -1030,6 +1030,21 @@ void CDockAreaWidget::onDockWidgetFeaturesChanged()
1030
1030
}
1031
1031
1032
1032
1033
+ #ifdef Q_OS_WIN
1034
+ // ============================================================================
1035
+ bool CDockAreaWidget::event (QEvent *e)
1036
+ {
1037
+ switch (e->type ())
1038
+ {
1039
+ case QEvent::PlatformSurface: return true ;
1040
+ default :
1041
+ break ;
1042
+ }
1043
+
1044
+ return Super::event (e);
1045
+ }
1046
+ #endif
1047
+
1033
1048
} // namespace ads
1034
1049
1035
1050
// ---------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -77,6 +77,17 @@ private Q_SLOTS:
77
77
void reorderDockWidget (int fromIndex, int toIndex);
78
78
79
79
protected:
80
+
81
+ #ifdef Q_OS_WIN
82
+ /* *
83
+ * Reimplements QWidget::event to handle QEvent::PlatformSurface
84
+ * This is here to fix issue #294 Tab refresh problem with a QGLWidget
85
+ * that exists since Qt version 5.12.7. So this function is here to
86
+ * work around a Qt issue.
87
+ */
88
+ virtual bool event (QEvent *event) override ;
89
+ #endif
90
+
80
91
/* *
81
92
* Inserts a dock widget into dock area.
82
93
* All dockwidgets in the dock area tabified in a stacked layout with tabs.
You can’t perform that action at this time.
0 commit comments