Lines 495-501
Link Here
|
495 |
|
495 |
|
496 |
QTextDocument* textDoc = new QTextDocument( 0 ); |
496 |
QTextDocument* textDoc = new QTextDocument( 0 ); |
497 |
textDoc->setFormatter( new QTextFormatterBreakWords ); |
497 |
textDoc->setFormatter( new QTextFormatterBreakWords ); |
498 |
textDoc->setDefaultFont( font ); // only needed for the pointsize |
498 |
// setDefaultFont was removed in QT 3.05 !!! |
|
|
499 |
// textDoc->setDefaultFont( font ); // only needed for the pointsize |
499 |
textDoc->setUnderlineLinks( true ); |
500 |
textDoc->setUnderlineLinks( true ); |
500 |
textDoc->setStyleSheet( m_editor->styleSheet() ); |
501 |
textDoc->setStyleSheet( m_editor->styleSheet() ); |
501 |
textDoc->setMimeSourceFactory( m_editor->mimeSourceFactory() ); |
502 |
textDoc->setMimeSourceFactory( m_editor->mimeSourceFactory() ); |