From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kview/modules/scanner/kviewscanner.cpp | 6 +++--- kview/modules/scanner/kviewscanner.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'kview/modules/scanner') diff --git a/kview/modules/scanner/kviewscanner.cpp b/kview/modules/scanner/kviewscanner.cpp index bf99e282..9f8b370c 100644 --- a/kview/modules/scanner/kviewscanner.cpp +++ b/kview/modules/scanner/kviewscanner.cpp @@ -35,13 +35,13 @@ typedef KGenericFactory KViewScannerFactory; K_EXPORT_COMPONENT_FACTORY( kview_scannerplugin, KViewScannerFactory( "kviewscannerplugin" ) ) -KViewScanner::KViewScanner( TQObject* parent, const char* name, +KViewScanner::KViewScanner( TQObject* tqparent, const char* name, const TQStringList & ) - : Plugin( parent, name ), + : Plugin( tqparent, name ), m_pScandlg( 0 ), m_pViewer( 0 ) { - TQObjectList * viewerList = parent->queryList( 0, "KImageViewer Part", false, false ); + TQObjectList * viewerList = tqparent->queryList( 0, "KImageViewer Part", false, false ); m_pViewer = static_cast( viewerList->getFirst() ); delete viewerList; if( m_pViewer ) diff --git a/kview/modules/scanner/kviewscanner.h b/kview/modules/scanner/kviewscanner.h index 56b59472..2c5abc77 100644 --- a/kview/modules/scanner/kviewscanner.h +++ b/kview/modules/scanner/kviewscanner.h @@ -31,8 +31,9 @@ namespace KImageViewer { class Viewer; } class KViewScanner : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - KViewScanner( TQObject* parent, const char* name, const TQStringList & ); + KViewScanner( TQObject* tqparent, const char* name, const TQStringList & ); virtual ~KViewScanner(); //public slots: -- cgit v1.2.1