summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2015-06-29 17:25:03 +0200
committerRalf Habacker <[email protected]>2015-06-29 17:25:03 +0200
commit739f263d374ebe09b192bb7e08beff17ee585838 (patch)
treec31943d1719e43fbf8e9bd8328593c9677e448da
parentd88e403dfb08bf98d1b32437ba122ea01155f72e (diff)
Fix bug not updating classifier widget size after editing documention through the doc window.
CCBUG:349622
-rw-r--r--umbrello/widgets/classifierwidget.cpp6
-rw-r--r--umbrello/widgets/classifierwidget.h2
-rw-r--r--umbrello/widgets/widgetbase.h2
3 files changed, 9 insertions, 1 deletions
diff --git a/umbrello/widgets/classifierwidget.cpp b/umbrello/widgets/classifierwidget.cpp
index b8382af..12f524a 100644
--- a/umbrello/widgets/classifierwidget.cpp
+++ b/umbrello/widgets/classifierwidget.cpp
@@ -1080,6 +1080,12 @@ UMLWidget* ClassifierWidget::widgetWithID(Uml::ID::Type id)
return NULL;
}
+void ClassifierWidget::setDocumentation(const QString &doc)
+{
+ WidgetBase::setDocumentation(doc);
+ updateGeometry();
+}
+
/**
* Sets whether to draw as circle.
* Only applies when m_umlObject->getBaseType() is ot_Interface.
diff --git a/umbrello/widgets/classifierwidget.h b/umbrello/widgets/classifierwidget.h
index 5c661ac..b845339 100644
--- a/umbrello/widgets/classifierwidget.h
+++ b/umbrello/widgets/classifierwidget.h
@@ -96,6 +96,8 @@ public:
UMLWidget* onWidget(const QPointF& p);
UMLWidget* widgetWithID(Uml::ID::Type id);
+ virtual void setDocumentation(const QString& doc);
+
QSizeF calculateSize(bool withExtensions = true) const;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
diff --git a/umbrello/widgets/widgetbase.h b/umbrello/widgets/widgetbase.h
index 7e4915f..c90872b 100644
--- a/umbrello/widgets/widgetbase.h
+++ b/umbrello/widgets/widgetbase.h
@@ -94,7 +94,7 @@ public:
QString documentation() const;
bool hasDocumentation();
- void setDocumentation(const QString& doc);
+ virtual void setDocumentation(const QString& doc);
QString name() const;
virtual void setName(const QString &strName);