summaryrefslogtreecommitdiffstats
path: root/plugins/scan/scan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/scan/scan.cpp')
-rw-r--r--plugins/scan/scan.cpp8
1 files changed, 4 insertions, 4 deletions
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<Scan> 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<TQWidget*>( tqparent() ) );
+ scanDialog = KScanDialog::getScanDialog( dynamic_cast<TQWidget*>( 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<KoView *>(tqparent());
+ KoView *view = dynamic_cast<KoView *>(parent());
if(!view)
return;