summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-25 11:21:54 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-25 11:21:54 +0900
commite0df02598b8e19d8b6ddf07fdbca661489ab2e99 (patch)
treec71373a4969af9527789666f0ff31d24ff175671
parenta7ea84c97639f635d798348432f355e3ac496a1d (diff)
downloadkoffice-e0df02598b8e19d8b6ddf07fdbca661489ab2e99.tar.gz
koffice-e0df02598b8e19d8b6ddf07fdbca661489ab2e99.zip
Drop USE_TQT4 code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--README.APPS3
-rw-r--r--chalk/ui/kis_qpaintdevice_canvas_painter.cpp20
-rw-r--r--karbon/TODO3
-rw-r--r--kdgantt/KDGanttView.cpp3
-rw-r--r--kexi/core/kexiblobbuffer.cpp2
-rw-r--r--kexi/core/kexiblobbuffer.h1
-rw-r--r--kexi/kexiutils/utils.h1
-rw-r--r--kexi/plugins/forms/kexiformview.cpp6
-rw-r--r--kexi/plugins/forms/widgets/kexidbcombobox.cpp1
-rw-r--r--kexi/plugins/forms/widgets/kexidbform.cpp20
-rw-r--r--kexi/plugins/importexport/csv/kexicsvimportdialog.cpp1
-rw-r--r--kexi/widget/utils/kexiflowlayout.cpp36
-rw-r--r--kexi/widget/utils/kexiflowlayout.h4
-rw-r--r--kivio/kiviopart/kivio_view.cpp2
-rw-r--r--kword/KWDocument.cpp10
-rw-r--r--kword/KWFrame.h2
-rw-r--r--kword/KWFrameViewManager.h2
-rw-r--r--kword/KWTextFrameSet.cpp1
-rw-r--r--kword/KWView.cpp2
-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
25 files changed, 14 insertions, 130 deletions
diff --git a/README.APPS b/README.APPS
index 7901ebbf..b70d2a2d 100644
--- a/README.APPS
+++ b/README.APPS
@@ -8,9 +8,6 @@ between 1.5 and 2.0. For all the rest of the programs, bugfixes that
are committed in the 1.5 branch will be forward ported to 1.6 at the
time of the release.
-The real development will happen in trunk, and will eventually lead to
-KOffice version 2.0, which will be based on Qt4 and tdelibs4.
-
Here is the list of applications and libraries that will be developed
in the 1.6 cycle:
diff --git a/chalk/ui/kis_qpaintdevice_canvas_painter.cpp b/chalk/ui/kis_qpaintdevice_canvas_painter.cpp
index 07f78eb9..e0836bf6 100644
--- a/chalk/ui/kis_qpaintdevice_canvas_painter.cpp
+++ b/chalk/ui/kis_qpaintdevice_canvas_painter.cpp
@@ -596,22 +596,12 @@ void KisTQPaintDeviceCanvasPainter::drawText(const TQPoint& point, const TQStrin
void KisTQPaintDeviceCanvasPainter::drawText(int x, int y, int w, int h, int flags, const TQString& text, int len, TQRect *br, TQTextParag **intern)
{
-#ifdef USE_QT4
- printf("[WARNING] KisTQPaintDeviceCanvasPainter::drawText partially implemented\n");
- m_painter.drawText(x, y, w, h, flags, text, len, br);
-#else // USE_QT4
m_painter.drawText(x, y, w, h, flags, text, len, br, intern);
-#endif // USE_QT4
}
void KisTQPaintDeviceCanvasPainter::drawText(const TQRect& r, int flags, const TQString& text, int len, TQRect *br, TQTextParag **intern)
{
-#ifdef USE_QT4
- printf("[WARNING] KisTQPaintDeviceCanvasPainter::drawText partially implemented\n");
- m_painter.drawText(r, flags, text, len, br);
-#else // USE_QT4
m_painter.drawText(r, flags, text, len, br, intern);
-#endif // USE_QT4
}
void KisTQPaintDeviceCanvasPainter::drawTextItem(int x, int y, const TQTextItem& ti, int textflags)
@@ -626,22 +616,12 @@ void KisTQPaintDeviceCanvasPainter::drawTextItem(const TQPoint& p, const TQTextI
TQRect KisTQPaintDeviceCanvasPainter::boundingRect(int x, int y, int w, int h, int flags, const TQString& text, int len, TQTextParag **intern)
{
-#ifdef USE_QT4
- printf("[WARNING] KisTQPaintDeviceCanvasPainter::boundingRect partially implemented\n");
- return m_painter.boundingRect(x, y, w, h, flags, text, len);
-#else // USE_QT4
return m_painter.boundingRect(x, y, w, h, flags, text, len, intern);
-#endif // USE_QT4
}
TQRect KisTQPaintDeviceCanvasPainter::boundingRect(const TQRect& r, int flags, const TQString& text, int len, TQTextParag **intern)
{
-#ifdef USE_QT4
- printf("[WARNING] KisTQPaintDeviceCanvasPainter::boundingRect partially implemented\n");
- return m_painter.boundingRect(r, flags, text, len);
-#else // USE_QT4
return m_painter.boundingRect(r, flags, text, len, intern);
-#endif // USE_QT4
}
int KisTQPaintDeviceCanvasPainter::tabStops() const
diff --git a/karbon/TODO b/karbon/TODO
index d63ee979..c472335c 100644
--- a/karbon/TODO
+++ b/karbon/TODO
@@ -61,8 +61,7 @@ TODO:
- VImage
- VPattern like VImage with embedded binaries instead of paths
- bring text support back, ideally using fontconfig and freetype, and no xft.
-- improve printing (specifically printing of gradient and pattern fill),
- should go along with porting to qt4/the new rendering framework
+- improve printing (specifically printing of gradient and pattern fill).
- select first/last segment's knot if one of each other's knot is selected
- allow for multiple strokes and fills in VPath which get rendered in the order they occur.
- use inside/intersection tests in vpath::combine() for changing winding.
diff --git a/kdgantt/KDGanttView.cpp b/kdgantt/KDGanttView.cpp
index 62c29b73..4269e533 100644
--- a/kdgantt/KDGanttView.cpp
+++ b/kdgantt/KDGanttView.cpp
@@ -979,8 +979,7 @@ TQSize KDGanttView::drawContents( TQPainter* p,
temp = thY;
p->translate( 0, temp );
//HACK: Only draw list headers if we draw timeline, else
- // there is no room for it. This will most probably be changed
- // with qt4 anyway, so I think we can live with it atm.
+ // there is no room for it.
myListView->drawToPainter( p, drawTimeLine );
p->translate( lvX, -temp);
}
diff --git a/kexi/core/kexiblobbuffer.cpp b/kexi/core/kexiblobbuffer.cpp
index aeb621c4..6cb91e7b 100644
--- a/kexi/core/kexiblobbuffer.cpp
+++ b/kexi/core/kexiblobbuffer.cpp
@@ -306,7 +306,7 @@ KexiBLOBBuffer::Handle KexiBLOBBuffer::objectForId(Id_t id, bool stored)
rowData[1].toString(),
rowData[2].toString(),
rowData[3].toString(),
- (Id_t)rowData[4].toInt() //!< @todo folder id: fix Id_t for TQt4
+ (Id_t)rowData[4].toInt()
);
insertItem(item);
diff --git a/kexi/core/kexiblobbuffer.h b/kexi/core/kexiblobbuffer.h
index 5207818e..4299bbb1 100644
--- a/kexi/core/kexiblobbuffer.h
+++ b/kexi/core/kexiblobbuffer.h
@@ -86,7 +86,6 @@ class KEXICORE_EXPORT KexiBLOBBuffer : public TQObject
class Item;
public:
//! long integer for unique identifying blobs
-//! @todo TQt4: will be changed
typedef long Id_t;
//! Access to KexiBLOBBuffer singleton
diff --git a/kexi/kexiutils/utils.h b/kexi/kexiutils/utils.h
index e244f02e..7ad11324 100644
--- a/kexi/kexiutils/utils.h
+++ b/kexi/kexiutils/utils.h
@@ -250,7 +250,6 @@ namespace KexiUtils
Copies @p src file to @p dest file.
@return CopySuccess on success, CopyReadError on source file error,
CopyWriteError on destination file error.
- @todo remove: TQFile in TQt4 provides this.
*/
KEXIUTILS_EXPORT CopyFileResult copyFile(const TQString& src, const TQString& dest);
}
diff --git a/kexi/plugins/forms/kexiformview.cpp b/kexi/plugins/forms/kexiformview.cpp
index 47021959..6ea8bd15 100644
--- a/kexi/plugins/forms/kexiformview.cpp
+++ b/kexi/plugins/forms/kexiformview.cpp
@@ -374,7 +374,7 @@ static void setUnsavedBLOBIdsForDataViewMode(
if (-1 != widget->metaObject()->findProperty("pixmapId")) {
const KexiBLOBBuffer::Id_t blobID = unsavedLocalBLOBsByName[ widget->name() ];
if (blobID > 0)
- widget->setProperty("pixmapId", (uint /* KexiBLOBBuffer::Id_t is unsafe and unsupported by TQVariant - will be fixed in TQt4*/)blobID);
+ widget->setProperty("pixmapId", (uint)blobID);
}
const TQObjectList list = widget->childrenListObject();
if (list.isEmpty())
@@ -803,11 +803,11 @@ KexiFormView::storeData(bool dontAsk)
return false;
}
kexipluginsdbg << " storedDataID=" << storedBLOBID << endl;
- h.setStoredWidthID((KexiBLOBBuffer::Id_t /*unsafe - will be fixed in TQt4*/)storedBLOBID);
+ h.setStoredWidthID((KexiBLOBBuffer::Id_t)storedBLOBID);
//set widget's internal property so it can be saved...
const TQVariant oldStoredPixmapId( it.key()->property("storedPixmapId") );
it.key()->setProperty("storedPixmapId",
- TQVariant((uint /* KexiBLOBBuffer::Id_t is unsafe and unsupported by TQVariant - will be fixed in TQt4*/)storedBLOBID));
+ TQVariant((uint)storedBLOBID));
KFormDesigner::ObjectTreeItem *widgetItem = designFormView->form()->objectTree()->lookup(it.key()->name()); //form()->objectTree()->lookup(it.key()->name());
if (widgetItem)
widgetItem->addModifiedProperty( "storedPixmapId", oldStoredPixmapId );
diff --git a/kexi/plugins/forms/widgets/kexidbcombobox.cpp b/kexi/plugins/forms/widgets/kexidbcombobox.cpp
index e315e752..26ba8ebe 100644
--- a/kexi/plugins/forms/widgets/kexidbcombobox.cpp
+++ b/kexi/plugins/forms/widgets/kexidbcombobox.cpp
@@ -186,7 +186,6 @@ void KexiDBComboBox::createEditor()
m_subwidget->setGeometry( editorGeometry() );
if (!d->isEditable) {
m_subwidget->setCursor(TQCursor(TQt::ArrowCursor)); // widgets like listedit have IbeamCursor, we don't want that
-//! @todo TQt4: set transparent background, for now we're setting button color
TQPalette subwidgetPalette( m_subwidget->palette() );
subwidgetPalette.setColor(TQPalette::Active, TQColorGroup::Base,
subwidgetPalette.color(TQPalette::Active, TQColorGroup::Button));
diff --git a/kexi/plugins/forms/widgets/kexidbform.cpp b/kexi/plugins/forms/widgets/kexidbform.cpp
index 4669fa40..106e465b 100644
--- a/kexi/plugins/forms/widgets/kexidbform.cpp
+++ b/kexi/plugins/forms/widgets/kexidbform.cpp
@@ -691,24 +691,4 @@ void KexiDBForm::setCursor( const TQCursor & cursor )
KexiDBFormBase::setCursor(cursor);
}
-//! @todo: TQt4? XORed resize rectangles instead of black widgets
-/*
-void KexiDBForm::paintEvent( TQPaintEvent *e )
-{
- TQPainter p;
- p.begin(this, true);
- bool unclipped = testWFlags( WPaintUnclipped );
- setWFlags( WPaintUnclipped );
-
- p.setPen(white);
- p.setRasterOp(XorROP);
- p.drawLine(e->rect().topLeft(), e->rect().bottomRight());
-
- if (!unclipped)
- clearWFlags( WPaintUnclipped );
- p.end();
- KexiDBFormBase::paintEvent(e);
-}
-*/
-
#include "kexidbform.moc"
diff --git a/kexi/plugins/importexport/csv/kexicsvimportdialog.cpp b/kexi/plugins/importexport/csv/kexicsvimportdialog.cpp
index 29e404b6..cccc5f8b 100644
--- a/kexi/plugins/importexport/csv/kexicsvimportdialog.cpp
+++ b/kexi/plugins/importexport/csv/kexicsvimportdialog.cpp
@@ -708,7 +708,6 @@ tristate KexiCSVImportDialog::loadRows(TQString &field, int &row, int &column, i
if (offset==0 && x.unicode()==0xfeff) {
// Ignore BOM, the "Byte Order Mark"
// (http://en.wikipedia.org/wiki/Byte_Order_Mark, // http://www.unicode.org/charts/PDF/UFFF0.pdf)
- // Probably fixed in TQt4.
continue;
}
diff --git a/kexi/widget/utils/kexiflowlayout.cpp b/kexi/widget/utils/kexiflowlayout.cpp
index 38259277..14e5e959 100644
--- a/kexi/widget/utils/kexiflowlayout.cpp
+++ b/kexi/widget/utils/kexiflowlayout.cpp
@@ -113,13 +113,7 @@ KexiFlowLayout::addSpacing(int size)
TQLayoutIterator
KexiFlowLayout::iterator()
{
- // [FIXME]
-#ifdef USE_QT4
- #warning [FIXME] ContainerAreaLayout iterators may not function correctly under Qt4
- return TQLayoutIterator( this ); // [FIXME]
-#else // USE_QT4
return TQLayoutIterator( new KexiFlowLayoutIterator(&m_list) );
-#endif // USE_QT4
}
TQPtrList<TQWidget>*
@@ -455,33 +449,3 @@ KexiFlowLayout::doVerticalLayout(const TQRect &r, bool testOnly)
// return our width
return x + w - r.x();
}
-
-#ifdef USE_QT4
-/*!
- \reimp
-*/
-int KexiFlowLayout::count() const {
- return m_list.count();
-}
-
-/*!
- \reimp
-*/
-TQLayoutItem* KexiFlowLayout::itemAt(int index) const {
- return index >= 0 && index < m_list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(m_list).at(index)) : 0;
-}
-
-/*!
- \reimp
-*/
-TQLayoutItem* KexiFlowLayout::takeAt(int index) {
- if (index < 0 || index >= m_list.count())
- return 0;
- TQLayoutItem *item = m_list.at(index);
- m_list.remove(m_list.at(index));
- delete item;
-
- invalidate();
- return item;
-}
-#endif // USE_QT4
diff --git a/kexi/widget/utils/kexiflowlayout.h b/kexi/widget/utils/kexiflowlayout.h
index 7353f16f..fa48df6f 100644
--- a/kexi/widget/utils/kexiflowlayout.h
+++ b/kexi/widget/utils/kexiflowlayout.h
@@ -59,10 +59,6 @@ class KEXIGUIUTILS_EXPORT KexiFlowLayout : public TQLayout
virtual bool isEmpty();
-#ifdef USE_QT4
- QLAYOUT_REQUIRED_METHOD_DECLARATIONS
-#endif // USE_QT4
-
protected:
virtual void setGeometry(const TQRect&);
int simulateLayout(const TQRect &r);
diff --git a/kivio/kiviopart/kivio_view.cpp b/kivio/kiviopart/kivio_view.cpp
index 63326efc..b4a3db8f 100644
--- a/kivio/kiviopart/kivio_view.cpp
+++ b/kivio/kiviopart/kivio_view.cpp
@@ -1960,11 +1960,9 @@ void KivioView::textSubScript()
void KivioView::showAlign( int align )
{
switch ( align ) {
-#ifndef USE_QT4
case TQt::AlignAuto: // In left-to-right mode it's align left. TODO: alignright if text->isRightToLeft()
kdWarning(43000) << k_funcinfo << "shouldn't be called with AlignAuto" << endl;
// fallthrough
-#endif // USE_QT4
case TQt::AlignLeft:
m_textAlignLeft->setChecked( true );
break;
diff --git a/kword/KWDocument.cpp b/kword/KWDocument.cpp
index 2c446210..0453407a 100644
--- a/kword/KWDocument.cpp
+++ b/kword/KWDocument.cpp
@@ -2877,7 +2877,7 @@ bool KWDocument::saveOasisHelper( KoStore* store, KoXmlWriter* manifestWriter, S
}
}
- // Add trailing '0' (TQt4: remove)
+ // Add trailing '0'
headerFooterContent.resize( headerFooterContent.size() + 1 );
headerFooterContent[headerFooterContent.size()-1] = '\0';
@@ -4435,10 +4435,10 @@ void KWDocument::recalcVariables( int type )
if ( m_bGeneratingPreview )
return;
- TQMap<KoTextDocument *, bool> modifiedTextDocuments; // TQt4: TQSet
+ TQMap<KoTextDocument *, bool> modifiedTextDocuments;
for ( TQValueList<KoVariable *>::const_iterator it = modifiedVariables.begin(), end = modifiedVariables.end() ; it != end ; ++it ) {
KoTextDocument* textdoc = (*it)->textDocument();
- if ( modifiedTextDocuments.find( textdoc ) != modifiedTextDocuments.end() ) // TQt4: !contains
+ if ( modifiedTextDocuments.find( textdoc ) != modifiedTextDocuments.end() )
{
modifiedTextDocuments.insert( textdoc, true );
KWTextFrameSet * textfs = static_cast<KWTextDocument *>(textdoc)->textFrameSet();
@@ -5042,7 +5042,7 @@ void KWDocument::displayFootNoteFieldCode()
void KWDocument::changeFootNoteConfig()
{
- TQMap<KoTextDocument *, bool> modifiedTextDocuments; // TQt4: TQSet
+ TQMap<KoTextDocument *, bool> modifiedTextDocuments;
TQPtrListIterator<KoVariable> it( m_varColl->getVariables() );
for ( ; it.current() ; ++it )
{
@@ -5062,7 +5062,7 @@ void KWDocument::changeFootNoteConfig()
parag->setChanged( true );
}
KoTextDocument* textdoc = parag->textDocument();
- if ( modifiedTextDocuments.find( textdoc ) != modifiedTextDocuments.end() ) // TQt4: !contains
+ if ( modifiedTextDocuments.find( textdoc ) != modifiedTextDocuments.end() )
modifiedTextDocuments.insert( textdoc, true );
}
}
diff --git a/kword/KWFrame.h b/kword/KWFrame.h
index 76e17da2..a85bf8dd 100644
--- a/kword/KWFrame.h
+++ b/kword/KWFrame.h
@@ -49,8 +49,6 @@ class TQDomElement;
*
* Deprecated, use TQValueVector<KWFrame*> from now on, and sort it with
* std::sort(frames.begin(),frames.end(),KWFrame::compareFrameZOrder);
- *
- * With TQt4 we'll be able to use qSort for lists.
*/
class ZOrderedFrameList : public TQPtrList<KWFrame>
{
diff --git a/kword/KWFrameViewManager.h b/kword/KWFrameViewManager.h
index ad948301..028e3739 100644
--- a/kword/KWFrameViewManager.h
+++ b/kword/KWFrameViewManager.h
@@ -97,7 +97,7 @@ public:
*/
KWFrameView* selectedFrame() const;
- // this should be changed to a real iterator when TQt4 is used.
+ // this should be changed to a real iterator
const TQValueList<KWFrameView*> frameViewsIterator() const { return m_frames; }
/**
diff --git a/kword/KWTextFrameSet.cpp b/kword/KWTextFrameSet.cpp
index 756cf576..c2e668be 100644
--- a/kword/KWTextFrameSet.cpp
+++ b/kword/KWTextFrameSet.cpp
@@ -1795,7 +1795,6 @@ void KWTextFrameSet::saveOasisContent( KoXmlWriter& writer, KoSavingContext& con
}
- // I want TQt4's TQMap/TQHash::value()!
KoSavingContext::BookmarkPositions bookmarkStarts, bookmarkEnds;
TQMap<const KoTextParag*, KoTextBookmarkList>::const_iterator bkit = bookmarksPerParagraph.find( parag );
if ( bkit != bookmarksPerParagraph.end() ) {
diff --git a/kword/KWView.cpp b/kword/KWView.cpp
index 7d5bbf7f..fb96aa8d 100644
--- a/kword/KWView.cpp
+++ b/kword/KWView.cpp
@@ -2002,11 +2002,9 @@ void KWView::showRulerIndent( double leftMargin, double firstLine, double rightM
void KWView::showAlign( int align ) {
switch ( align ) {
-#ifndef USE_QT4
case TQt::AlignAuto: // In left-to-right mode it's align left. TODO: alignright if text->isRightToLeft()
kdWarning() << k_funcinfo << "shouldn't be called with AlignAuto" << endl;
// fallthrough
-#endif // USE_QT4
case TQt::AlignLeft:
m_actionFormatAlignLeft->setChecked( TRUE );
break;
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)