summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/kofficecore/KoFilterManager.cpp2
-rw-r--r--lib/kofficeui/KoTabBar.cpp1
-rw-r--r--lib/kotext/KoParagDia.cpp4
-rw-r--r--lib/kotext/KoRichText.cpp6
-rw-r--r--lib/kotext/KoTextBookmark.h2
-rw-r--r--lib/store/KoStoreDevice.h9
6 files changed, 2 insertions, 22 deletions
diff --git a/lib/kofficecore/KoFilterManager.cpp b/lib/kofficecore/KoFilterManager.cpp
index 06c7cf10..e22d5f3e 100644
--- a/lib/kofficecore/KoFilterManager.cpp
+++ b/lib/kofficecore/KoFilterManager.cpp
@@ -493,7 +493,7 @@ TQStringList KoFilterManager::mimeFilter( const TQCString& mimetype, Direction d
const TQStringList outMimes = connected( vertices, (*natit).latin1() );
//kdDebug(s_area) << k_funcinfo << "output formats connected to mime " << *natit << " : " << outMimes << endl;
for ( TQStringList::ConstIterator mit = outMimes.begin(); mit != outMimes.end(); ++mit )
- if ( lst.find( *mit ) == lst.end() ) // append only if not there already. TQt4: TQSet<TQString>?
+ if ( lst.find( *mit ) == lst.end() ) // append only if not there already.
lst.append( *mit );
}
return lst;
diff --git a/lib/kofficeui/KoTabBar.cpp b/lib/kofficeui/KoTabBar.cpp
index fe448916..c751e4e8 100644
--- a/lib/kofficeui/KoTabBar.cpp
+++ b/lib/kofficeui/KoTabBar.cpp
@@ -283,7 +283,6 @@ void KoTabBarPrivate::drawTab( TQPainter& painter, TQRect& rect, const TQString&
painter.setPen( tabbar->colorGroup().dark() );
if( !active )
painter.drawLine( rect.x()-25, rect.y(), rect.right()+25, rect.top() );
- // TQt4: painter.setRenderHint( TQPainter::Antialiasing );
painter.drawPolyline( polygon );
painter.setPen( tabbar->colorGroup().buttonText() );
diff --git a/lib/kotext/KoParagDia.cpp b/lib/kotext/KoParagDia.cpp
index b62a148f..5e038a98 100644
--- a/lib/kotext/KoParagDia.cpp
+++ b/lib/kotext/KoParagDia.cpp
@@ -616,9 +616,7 @@ void KPagePreview2::drawContents( TQPainter* p )
}
switch ( align ) {
-#ifndef USE_QT4
case TQt::AlignAuto:
-#endif // USE_QT4
case TQt::AlignLeft:
__x = _x + 6;
break;
@@ -1278,9 +1276,7 @@ void KoParagAlignWidget::display( const KoParagLayout & lay )
clearAligns();
switch ( align ) {
-#ifndef USE_QT4
case TQt::AlignAuto: // see KoView::setAlign
-#endif // USE_QT4
case TQt::AlignLeft:
rLeft->setChecked( true );
break;
diff --git a/lib/kotext/KoRichText.cpp b/lib/kotext/KoRichText.cpp
index 5d3e99d1..b6787b25 100644
--- a/lib/kotext/KoRichText.cpp
+++ b/lib/kotext/KoRichText.cpp
@@ -1243,11 +1243,6 @@ void KoTextString::checkBidi() const
const KoTextStringChar *end = start + length;
// determines the properties we need for layouting
-#ifdef USE_QT4
- #warning "KoTextString::checkBidi() for Qt4 partially implemented"
- printf("[WARNING] KoTextString::checkBidi() partially implemented\n");
- fflush(stdout);
-#else
TQTextEngine textEngine( toString(), 0 );
textEngine.direction = (TQChar::Direction) dir;
textEngine.itemize(TQTextEngine::SingleLine);
@@ -1286,7 +1281,6 @@ void KoTextString::checkBidi() const
} else {
that->rightToLeft = (textEngine.direction == TQChar::DirR);
}
-#endif // USE_QT4
}
TQMemArray<KoTextStringChar> KoTextString::subString( int start, int len ) const
diff --git a/lib/kotext/KoTextBookmark.h b/lib/kotext/KoTextBookmark.h
index eff1a353..10cfde27 100644
--- a/lib/kotext/KoTextBookmark.h
+++ b/lib/kotext/KoTextBookmark.h
@@ -33,7 +33,7 @@ class KoTextDocument;
*/
class KOTEXT_EXPORT KoTextBookmark {
public:
- KoTextBookmark( const TQString& name = TQString() /*for TQValueList; remove default value when going TQt4*/ );
+ KoTextBookmark( const TQString& name = TQString() );
KoTextBookmark( const TQString& name,
KoTextParag* startParag, KoTextParag* endParag,
int start, int end );
diff --git a/lib/store/KoStoreDevice.h b/lib/store/KoStoreDevice.h
index 9d62b21c..1f257dc9 100644
--- a/lib/store/KoStoreDevice.h
+++ b/lib/store/KoStoreDevice.h
@@ -46,11 +46,7 @@ public:
void close() { }
void flush() { }
-#ifdef USE_QT4
- qint64 size() const {
-#else // USE_QT4
Offset size() const {
-#endif // USE_QT4
if ( m_store->mode() == KoStore::Read )
return m_store->size();
else
@@ -62,11 +58,6 @@ public:
// Not virtual, only to uncover shadow
TQ_LONG writeBlock( const TQByteArray& data ) { return TQIODevice::writeBlock( data ); }
-#ifdef USE_QT4
- inline qint64 readData ( char * data, qint64 maxSize ) { return readBlock(data, maxSize); }
- inline qint64 writeData ( const char * data, qint64 maxSize ) { return writeBlock(data, maxSize); }
-#endif // USE_QT4
-
int getch() {
char c[2];
if ( m_store->read(c, 1) == -1)