[Uml-devel] branches/work/isi-umbrello/umbrello/umbrello

Pierre Pettera ppmakusu at gmail.com
Mon Feb 12 23:56:31 UTC 2007


SVN commit 633052 by pettera:

Undo / Redo commit:

-Pb with compilation, I change one thing in order to make umbrello running.

 M  +5 -3      floatingtextwidget.cpp  


--- branches/work/isi-umbrello/umbrello/umbrello/floatingtextwidget.cpp #633051:633052
@@ -36,9 +36,12 @@
 #include "dialogs/assocpropdlg.h"
 #include "dialogs/selectopdlg.h"
 
+// own header
+#include "uml.h"
+
 #include "cmds.h"
+using namespace Uml;
 
-using namespace Uml;
 FloatingTextWidget::FloatingTextWidget(UMLView * view, Uml::Text_Role role,
                                        const QString& text, Uml::IDType id)
   : UMLWidget(view, id, new FloatingTextWidgetController(this))
@@ -228,8 +231,7 @@
 }
 
 void FloatingTextWidget::setText(const QString &t) {
-      UMLDoc* m_doc = UMLApp::app()->getDocument();
-      m_doc->executeCommand(new cmdSetTxt(this,t));
+      UMLApp::app()->executeCommand(new cmdSetTxt(this,t));
 }
 
 void FloatingTextWidget::setTextcmd(const QString &t) {




More information about the umbrello-devel mailing list