[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat Jul 10 17:51:22 UTC 2004


CVS commit by okellogg: 

Resolve bugs.kde.org/84515 (turn off params on seq.diagram messages)


  M +11 -3     floatingtext.cpp   1.52


--- kdesdk/umbrello/umbrello/floatingtext.cpp  #1.51:1.52
@@ -10,7 +10,8 @@
 
 // system includes
-#include <kdebug.h>
-#include <klocale.h>
+#include <qregexp.h>
 #include <qpainter.h>
+#include <klocale.h>
+#include <kdebug.h>
 
 // local includes
@@ -177,5 +178,8 @@ void FloatingText::slotMenuSelection(int
                         if (umlObj) {
                                 UMLOperation* newOperation = static_cast<UMLOperation*>( umlObj );
-                                QString opText = newOperation->toString(st_SigNoScope);
+                                // It should perhaps be configurable whether the
+                                // operation is displayed with or without its signature.
+                                // For the time being, we don't display the signature.
+                                QString opText = newOperation->toString(st_NoSigNoScope);
                                 m_pLink->setOperationText(this, opText);
                         }
@@ -333,5 +337,9 @@ void FloatingText::showOpDlg() {
         }
         seqNum = selectDlg.getSeqNumber();
+        // It should perhaps be configurable whether the operation
+        // is displayed with or without its signature.
+        // Here, we just discard the signature.
         op = selectDlg.getOpText();
+        op.replace( QRegExp("\\(.*\\)"), "()" );
         m_pLink->setSeqNumAndOp(seqNum, op);
         setMessageText();






More information about the umbrello-devel mailing list