Show tool name in options title.
--HG-- branch : feature
This commit is contained in:
parent
fa4a7fb7b8
commit
5d12122325
|
@ -78,8 +78,7 @@ void VToolOptionsPropertyBrowser::itemClicked(QGraphicsItem *item)
|
||||||
|
|
||||||
if (currentItem == nullptr)
|
if (currentItem == nullptr)
|
||||||
{
|
{
|
||||||
QDockWidget *parent = qobject_cast<QDockWidget *>(this->parent());
|
TreeView->setTitle(tr(""));
|
||||||
parent->setWindowTitle(tr("Tool options"));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,10 +121,6 @@ void VToolOptionsPropertyBrowser::userChangedData(VProperty *property)
|
||||||
{
|
{
|
||||||
currentItem->setPos(variant.toPointF());
|
currentItem->setPos(variant.toPointF());
|
||||||
}
|
}
|
||||||
// else if (id == QLatin1String("list"))
|
|
||||||
// {
|
|
||||||
// qDebug()<<prop->data(VProperty::DPC_Data, Qt::DisplayRole);
|
|
||||||
// }
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case VToolEndLine::Type:
|
case VToolEndLine::Type:
|
||||||
|
@ -265,8 +260,7 @@ 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());
|
TreeView->setTitle(tr("Base point"));
|
||||||
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());
|
||||||
|
@ -281,8 +275,7 @@ void VToolOptionsPropertyBrowser::ShowItemOptions(QGraphicsItem *item)
|
||||||
case VToolEndLine::Type:
|
case VToolEndLine::Type:
|
||||||
{
|
{
|
||||||
VToolEndLine *i = qgraphicsitem_cast<VToolEndLine *>(item);
|
VToolEndLine *i = qgraphicsitem_cast<VToolEndLine *>(item);
|
||||||
QDockWidget *parent = qobject_cast<QDockWidget *>(this->parent());
|
TreeView->setTitle(tr("Point at distance and angle"));
|
||||||
parent->setWindowTitle(tr("Tool options (Point at distance and angle)"));
|
|
||||||
|
|
||||||
VProperty* itemName = new VProperty(tr("Point name"));
|
VProperty* itemName = new VProperty(tr("Point name"));
|
||||||
itemName->setValue(i->name());
|
itemName->setValue(i->name());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user