17 #ifndef QGSDOCKWIDGET_H 18 #define QGSDOCKWIDGET_H 20 #include <QDockWidget> 58 bool isUserVisible()
const;
67 void setToggleVisibilityAction( QAction *action );
75 QAction *toggleVisibilityAction();
93 void setUserVisible(
bool visible );
104 void toggleUserVisible();
108 void closeEvent( QCloseEvent * )
override;
109 void showEvent( QShowEvent *event )
override;
126 void closedStateChanged(
bool wasClosed );
141 void openedStateChanged(
bool wasOpened );
145 void handleVisibilityChanged(
bool visible );
149 bool mVisibleAndActive =
false;
151 QAction *mAction =
nullptr;
154 #endif //QGSDOCKWIDGET_H