[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Tue Dec 28 00:29:02 UTC 2004
CVS commit by okellogg:
Use Qt::RichText for the editor text format. The rich text can be edited in the documentation window.
M +3 -4 notewidget.cpp 1.34
--- kdesdk/umbrello/umbrello/notewidget.cpp #1.33:1.34
@@ -42,4 +42,5 @@ NoteWidget::NoteWidget(UMLView * view, U
m_pEditor->setHScrollBarMode(QScrollView::AlwaysOff);
m_pEditor->setVScrollBarMode(QScrollView::AlwaysOff);
+ m_pEditor->setTextFormat(Qt::RichText);
m_pEditor->setShown(true);
setEditorGeometry();
@@ -67,6 +68,6 @@ void NoteWidget::setDiagramLink(Uml::IDT
}
m_pEditor->setUnderline(true);
- m_pEditor->insertAt("Diagram: " + view->getName(),
- 0 /*para*/, 0 /*index*/);
+ m_pEditor->insert("Diagram: " + view->getName());
+ m_pEditor->setUnderline(false);
m_DiagramLink = viewID;
}
@@ -211,6 +212,4 @@ bool NoteWidget::activate ( IDChangeLog*
void NoteWidget::mouseReleaseEvent( QMouseEvent * me ) {
UMLWidget::mouseReleaseEvent( me );
- kdDebug() << "NoteWidget::mouseReleaseEvent: m_bResizing="
- << m_bResizing << endl;
if ( m_bResizing ) {
m_bResizing = false;
More information about the umbrello-devel
mailing list