From 4356861f78994fcd63fe19b263396cf727b00923 Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 27 Aug 2014 10:24:41 +0300 Subject: [PATCH] Show tool name in dock widget title. --HG-- branch : feature --- src/app/widgets/vtooloptionspropertybrowser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/widgets/vtooloptionspropertybrowser.cpp b/src/app/widgets/vtooloptionspropertybrowser.cpp index d050e37d2..91972430e 100644 --- a/src/app/widgets/vtooloptionspropertybrowser.cpp +++ b/src/app/widgets/vtooloptionspropertybrowser.cpp @@ -75,6 +75,8 @@ void VToolOptionsPropertyBrowser::itemClicked(QGraphicsItem *item) if (currentItem == nullptr) { + QDockWidget *parent = qobject_cast(this->parent()); + parent->setWindowTitle(tr("Tool options")); return; } @@ -188,6 +190,8 @@ void VToolOptionsPropertyBrowser::ShowItemOptions(QGraphicsItem *item) case VToolSinglePoint::Type: { VToolSinglePoint *i = qgraphicsitem_cast(item); + QDockWidget *parent = qobject_cast(this->parent()); + parent->setWindowTitle(tr("Tool options (Base point)")); VProperty* itemName = new VProperty(tr("Point name")); itemName->setValue(i->name());