From f138d74fe16092003b06f5bde9663841929cde7f Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 17 Jun 2011 22:17:08 +0000 Subject: TQt4 port kdeaccessibility This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1237325 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksayit/src/docbookgenerator.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ksayit/src/docbookgenerator.cpp') diff --git a/ksayit/src/docbookgenerator.cpp b/ksayit/src/docbookgenerator.cpp index 4b792b2..a6f8a72 100644 --- a/ksayit/src/docbookgenerator.cpp +++ b/ksayit/src/docbookgenerator.cpp @@ -10,7 +10,7 @@ // // -// Qt includes +// TQt includes #include #include @@ -105,10 +105,10 @@ void DocbookGenerator::writeTitleOfBook(TQTextStream &doc, ListViewInterface *it if ( whoAmI != "BookInfo" ) return; - // Documents title is stored in root element (parent of BookInfo) - ListViewInterface *parent = static_cast(item->parent()); - if ( parent ){ - TQString title = parent->text(0); + // Documents title is stored in root element (tqparent of BookInfo) + ListViewInterface *tqparent = static_cast(item->tqparent()); + if ( tqparent ){ + TQString title = tqparent->text(0); // add node to document doc << "" << title << "" << endl; @@ -151,7 +151,7 @@ void DocbookGenerator::writeAuthor(TQTextStream &doc, ListViewInterface *item) if ( whoAmI != "Author" ) return; - TQString author = TQString::null; + TQString author = TQString(); author = ( item->getValue(KSayItGlobal::RAWDATA) ).toString(); // add node to document @@ -231,7 +231,7 @@ void DocbookGenerator::writeKeyword(TQTextStream &doc, ListViewInterface *item) return; // TQString keyword = item->text( 0 ); - TQString keyword = TQString::null; + TQString keyword = TQString(); keyword = (item->getValue(3)).toString(); // add node to document -- cgit v1.2.3