19 #include "ClickableDockWidget.h"
26 Qt::WindowFlags flags)
27 : QDockWidget(title, parent, flags)
29 setFocusPolicy(Qt::StrongFocus);
31 connect(
this, SIGNAL(visibilityChanged(
bool)),
32 this, SLOT(visibilityHasChange(
bool)));
34 connect(
this, SIGNAL(topLevelChanged(
bool)),
35 this, SLOT(topLevelHasChanged(
bool)));
38 bool ClickableQDockWidget::event(QEvent *event)
40 if(event->type() == QEvent::MouseButtonPress)
45 return QDockWidget::event(event);
48 void ClickableQDockWidget::visibilityHasChange(
bool visible)
54 void ClickableQDockWidget::topLevelHasChanged(
bool a)