+
+void VerticalDock::showTitle(bool show) {
+ QWidget *oldDockTitle = titleBarWidget();
+ QWidget *newDockTitle = 0;
+
+ if(show)
+ newDockTitle = new VerticalDockTitle(this);
+ else
+ newDockTitle = new EmptyDockTitle(this);
+
+ setTitleBarWidget(newDockTitle);
+ if(oldDockTitle)
+ oldDockTitle->deleteLater();
+}