From 04766b207afba7961d4d802313e426f5a2fbef63 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- plugins/scan/scan.cpp | 8 ++++---- plugins/scan/scan.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/scan') diff --git a/plugins/scan/scan.cpp b/plugins/scan/scan.cpp index a6d64634..5478744b 100644 --- a/plugins/scan/scan.cpp +++ b/plugins/scan/scan.cpp @@ -33,8 +33,8 @@ typedef KGenericFactory ScanFactory; K_EXPORT_COMPONENT_FACTORY( kofficescan, ScanFactory( "kscan_plugin" ) ) -Scan::Scan(TQObject *tqparent, const char *name, const TQStringList &) - : KParts::Plugin(tqparent, name), scanDialog( 0 ) +Scan::Scan(TQObject *parent, const char *name, const TQStringList &) + : KParts::Plugin(parent, name), scanDialog( 0 ) { setInstance(ScanFactory::instance()); @@ -50,7 +50,7 @@ void Scan::slotScan() { if ( !scanDialog ) { - scanDialog = KScanDialog::getScanDialog( dynamic_cast( tqparent() ) ); + scanDialog = KScanDialog::getScanDialog( dynamic_cast( parent() ) ); if ( scanDialog ) { scanDialog->setMinimumSize(300, 300); @@ -76,7 +76,7 @@ void Scan::slotShowImage(const TQImage &img) KTempFile temp(locateLocal("tmp", "scandialog"), ".png"); img.save(temp.name(), "PNG"); - KoView *view = dynamic_cast(tqparent()); + KoView *view = dynamic_cast(parent()); if(!view) return; diff --git a/plugins/scan/scan.h b/plugins/scan/scan.h index 34cebdc3..2cec0fce 100644 --- a/plugins/scan/scan.h +++ b/plugins/scan/scan.h @@ -30,7 +30,7 @@ class Scan : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - Scan(TQObject *tqparent, const char *name, const TQStringList &); + Scan(TQObject *parent, const char *name, const TQStringList &); virtual ~Scan(); private slots: -- cgit v1.2.1