ADS: Properly initialize DockOverlay

Change-Id: I3aa43624617858858cd6b27ead506c299d0c0a47
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2020-03-02 10:40:40 +01:00
committed by Tim Jenssen
parent 5fe479002a
commit 2642f8537d

View File

@@ -64,7 +64,7 @@ namespace ADS {
public:
DockOverlay *q;
DockWidgetAreas m_allowedAreas = InvalidDockWidgetArea;
DockOverlayCross *m_cross;
DockOverlayCross *m_cross = nullptr;
QPointer<QWidget> m_targetWidget;
DockWidgetArea m_lastLocation = InvalidDockWidgetArea;
bool m_dropPreviewEnabled = true;
@@ -87,9 +87,9 @@ namespace ADS {
public:
DockOverlayCross *q;
DockOverlay::eMode m_mode = DockOverlay::ModeDockAreaOverlay;
DockOverlay *m_dockOverlay;
DockOverlay *m_dockOverlay = nullptr;
QHash<DockWidgetArea, QWidget *> m_dropIndicatorWidgets;
QGridLayout *m_gridLayout;
QGridLayout *m_gridLayout = nullptr;
QColor m_iconColors[5];
bool m_updateRequired = false;
double m_lastDevicePixelRatio = 0.1;