[qet] qet/qet: [5618] Force set dynamic text length to default -1 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5618
Author: scorpio810
Date: 2018-11-29 10:48:51 +0100 (Thu, 29 Nov 2018)
Log Message:
-----------
Force set dynamic text length to default -1
Modified Paths:
--------------
trunk/sources/editor/graphicspart/partdynamictextfield.cpp
trunk/sources/qetgraphicsitem/dynamicelementtextitem.cpp
Modified: trunk/sources/editor/graphicspart/partdynamictextfield.cpp
===================================================================
--- trunk/sources/editor/graphicspart/partdynamictextfield.cpp 2018-11-29 09:42:23 UTC (rev 5617)
+++ trunk/sources/editor/graphicspart/partdynamictextfield.cpp 2018-11-29 09:48:51 UTC (rev 5618)
@@ -34,7 +34,7 @@
setFont(QETApp::dynamicTextsItemFont());
QSettings settings;
setRotation(settings.value("dynamic_rotation", 0).toInt());
- setTextWidth(settings.value("dynamic_with", 0).toInt());
+ setTextWidth(settings.value("dynamic_with", -1).toInt());
setText("_");
setTextFrom(DynamicElementTextItem::UserText);
setFlags(QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemSendsGeometryChanges | QGraphicsItem::ItemIsMovable);
Modified: trunk/sources/qetgraphicsitem/dynamicelementtextitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/dynamicelementtextitem.cpp 2018-11-29 09:42:23 UTC (rev 5617)
+++ trunk/sources/qetgraphicsitem/dynamicelementtextitem.cpp 2018-11-29 09:48:51 UTC (rev 5618)
@@ -44,7 +44,7 @@
setParentItem(parent_element);
QSettings settings;
setRotation(settings.value("dynamic_rotation", 0).toInt());
- setTextWidth(settings.value("dynamic_with", 0).toInt());
+ setTextWidth(settings.value("dynamic_with", -1).toInt());
connect(this, &DynamicElementTextItem::textEdited, [this](const QString &old_str, const QString &new_str)
{
if(this->m_parent_element && this->m_parent_element->diagram())