[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Dec 5 03:24:01 UTC 2004


CVS commit by okellogg: 

setFont(): Reimplement for setting the font at the editor.


  M +5 -0      notewidget.cpp   1.31
  M +5 -0      notewidget.h   1.18


--- kdesdk/umbrello/umbrello/notewidget.cpp  #1.30:1.31
@@ -60,4 +60,9 @@ void NoteWidget::slotViewScrolled(int x,
 }
 
+void NoteWidget::setFont(QFont font) {
+        UMLWidget::setFont(font);
+        m_pEditor->setFont(font);
+}
+
 void NoteWidget::setEditorGeometry(int dx /*=0*/, int dy /*=0*/) {
         const QRect editorGeometry( UMLWidget::getX() - dx + 6,

--- kdesdk/umbrello/umbrello/notewidget.h  #1.17:1.18
@@ -114,4 +114,9 @@ public:
          * Override method from UMLWidget.
          */
+        void setFont(QFont font);
+
+        /**
+         * Override method from UMLWidget.
+         */
         void setX(int x);
 






More information about the umbrello-devel mailing list