From 25794f504692e5a36c490438814e9dfda8aaa2dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 29 May 2011 19:00:37 +0000 Subject: TQt4 port kchmviewer This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/kde/kchmdcopiface.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/kde/kchmdcopiface.cpp') diff --git a/src/kde/kchmdcopiface.cpp b/src/kde/kchmdcopiface.cpp index 967380e..2054d69 100644 --- a/src/kde/kchmdcopiface.cpp +++ b/src/kde/kchmdcopiface.cpp @@ -26,8 +26,8 @@ #include "kchmsearchwindow.h" -KCHMDCOPIface::KCHMDCOPIface(QObject *parent, const char *name) - : QObject(parent, name), DCOPObject( "KCHMDCOPIface" ) +KCHMDCOPIface::KCHMDCOPIface(TQObject *tqparent, const char *name) + : TQObject(tqparent, name), DCOPObject( "KCHMDCOPIface" ) { } @@ -37,50 +37,50 @@ KCHMDCOPIface::~KCHMDCOPIface() } -void KCHMDCOPIface::loadHelpFile( const QString & filename, const QString & page2open ) +void KCHMDCOPIface::loadHelpFile( const TQString & filename, const TQString & page2open ) { - QStringList args; + TQStringList args; args.push_back( filename ); args.push_back( page2open ); - qApp->postEvent( ::mainWindow, new KCHMUserEvent( "loadAndOpen", args ) ); + tqApp->postEvent( ::mainWindow, new KCHMUserEvent( "loadAndOpen", args ) ); } -void KCHMDCOPIface::openPage( const QString & page2open ) +void KCHMDCOPIface::openPage( const TQString & page2open ) { - QStringList args; + TQStringList args; args.push_back( page2open ); - qApp->postEvent( ::mainWindow, new KCHMUserEvent( "openPage", args ) ); + tqApp->postEvent( ::mainWindow, new KCHMUserEvent( "openPage", args ) ); } -void KCHMDCOPIface::guiFindInIndex( const QString & word ) +void KCHMDCOPIface::guiFindInIndex( const TQString & word ) { - QStringList args; + TQStringList args; args.push_back( word ); - qApp->postEvent( ::mainWindow, new KCHMUserEvent( "findInIndex", args ) ); + tqApp->postEvent( ::mainWindow, new KCHMUserEvent( "findInIndex", args ) ); } -void KCHMDCOPIface::guiSearchQuery( const QString & query ) +void KCHMDCOPIface::guiSearchQuery( const TQString & query ) { - QStringList args; + TQStringList args; args.push_back( query ); - qApp->postEvent( ::mainWindow, new KCHMUserEvent( "searchQuery", args ) ); + tqApp->postEvent( ::mainWindow, new KCHMUserEvent( "searchQuery", args ) ); } -QStringList KCHMDCOPIface::searchQuery( const QString & query ) +TQStringList KCHMDCOPIface::searchQuery( const TQString & query ) { - QStringList results; + TQStringList results; if ( ::mainWindow->searchWindow()->searchQuery( query, &results ) ) return results; else - return QStringList(); + return TQStringList(); } -- cgit v1.2.3