1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

In the words of Stephan Kulow <coolo@kde.org>:

"That's the penalty of using private interfaces".

Fix build with Qt 3.0.5 by using a patch committed to KDE CVS.  It was
backported to KDE_3_0_BRANCH so this patch will be removed with the upgrade
to KDE 3.0.3 (well, if it happens long enough before KDE 3.1).
This commit is contained in:
Will Andrews 2002-07-31 05:12:46 +00:00
parent ca5ca105b9
commit a3140d136a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63774
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,15 @@
--- knotes/knote.cpp 2002/06/17 20:23:11 1.61
+++ knotes/knote.cpp 2002/07/04 08:51:19 1.62
@@ -497,7 +497,11 @@
QTextDocument* textDoc = new QTextDocument( 0 );
textDoc->setFormatter( new QTextFormatterBreakWords );
- textDoc->setDefaultFont( font ); // only needed for the pointsize
+#if QT_VERSION > 304
+ textDoc->setDefaultFormat( font, Qt::black ); // only needed for the pointsize
+#else
+ textDoc->setDefaultFont( font ); // only needed for the pointsize
+#endif
textDoc->setUnderlineLinks( true );
textDoc->setStyleSheet( m_editor->styleSheet() );
textDoc->setMimeSourceFactory( m_editor->mimeSourceFactory() );

View File

@ -0,0 +1,15 @@
--- knotes/knote.cpp 2002/06/17 20:23:11 1.61
+++ knotes/knote.cpp 2002/07/04 08:51:19 1.62
@@ -497,7 +497,11 @@
QTextDocument* textDoc = new QTextDocument( 0 );
textDoc->setFormatter( new QTextFormatterBreakWords );
- textDoc->setDefaultFont( font ); // only needed for the pointsize
+#if QT_VERSION > 304
+ textDoc->setDefaultFormat( font, Qt::black ); // only needed for the pointsize
+#else
+ textDoc->setDefaultFont( font ); // only needed for the pointsize
+#endif
textDoc->setUnderlineLinks( true );
textDoc->setStyleSheet( m_editor->styleSheet() );
textDoc->setMimeSourceFactory( m_editor->mimeSourceFactory() );

View File

@ -0,0 +1,15 @@
--- knotes/knote.cpp 2002/06/17 20:23:11 1.61
+++ knotes/knote.cpp 2002/07/04 08:51:19 1.62
@@ -497,7 +497,11 @@
QTextDocument* textDoc = new QTextDocument( 0 );
textDoc->setFormatter( new QTextFormatterBreakWords );
- textDoc->setDefaultFont( font ); // only needed for the pointsize
+#if QT_VERSION > 304
+ textDoc->setDefaultFormat( font, Qt::black ); // only needed for the pointsize
+#else
+ textDoc->setDefaultFont( font ); // only needed for the pointsize
+#endif
textDoc->setUnderlineLinks( true );
textDoc->setStyleSheet( m_editor->styleSheet() );
textDoc->setMimeSourceFactory( m_editor->mimeSourceFactory() );