Show tool name in dock widget title.

--HG--
branch : feature
This commit is contained in:
dismine 2014-08-27 10:24:41 +03:00
parent 670e185465
commit 4356861f78

View File

@ -75,6 +75,8 @@ void VToolOptionsPropertyBrowser::itemClicked(QGraphicsItem *item)
if (currentItem == nullptr) if (currentItem == nullptr)
{ {
QDockWidget *parent = qobject_cast<QDockWidget *>(this->parent());
parent->setWindowTitle(tr("Tool options"));
return; return;
} }
@ -188,6 +190,8 @@ void VToolOptionsPropertyBrowser::ShowItemOptions(QGraphicsItem *item)
case VToolSinglePoint::Type: case VToolSinglePoint::Type:
{ {
VToolSinglePoint *i = qgraphicsitem_cast<VToolSinglePoint *>(item); VToolSinglePoint *i = qgraphicsitem_cast<VToolSinglePoint *>(item);
QDockWidget *parent = qobject_cast<QDockWidget *>(this->parent());
parent->setWindowTitle(tr("Tool options (Base point)"));
VProperty* itemName = new VProperty(tr("Point name")); VProperty* itemName = new VProperty(tr("Point name"));
itemName->setValue(i->name()); itemName->setValue(i->name());