diff options
Diffstat (limited to 'src/Authoring/Studio/Palettes/Inspector/InspectorControlView.h')
-rw-r--r-- | src/Authoring/Studio/Palettes/Inspector/InspectorControlView.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.h b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.h index a5661d74..400a26b4 100644 --- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.h +++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.h @@ -144,6 +144,35 @@ private: QSize m_preferredSize; QColor m_currentColor; + + class ActiveBrowserData + { + public: + void setData(QWidget *browser, int handle, int instance) + { + m_activeBrowser = browser; + m_handle = handle; + m_instance = instance; + } + void clear() + { + if (isActive()) + m_activeBrowser->close(); + m_activeBrowser.clear(); + m_handle = -1; + m_instance = -1; + } + bool isActive() const + { + return !m_activeBrowser.isNull() && m_activeBrowser->isVisible(); + } + + QPointer<QWidget> m_activeBrowser = nullptr; + int m_handle = -1; + int m_instance = -1; + }; + + ActiveBrowserData m_activeBrowser; }; #endif // INSPECTORCONTROLVIEW_H |