diff options
Diffstat (limited to 'plugins/scan')
-rw-r--r-- | plugins/scan/scan.cpp | 16 | ||||
-rw-r--r-- | plugins/scan/scan.h | 7 |
2 files changed, 12 insertions, 11 deletions
diff --git a/plugins/scan/scan.cpp b/plugins/scan/scan.cpp index 5929f3bd..a6d64634 100644 --- a/plugins/scan/scan.cpp +++ b/plugins/scan/scan.cpp @@ -33,12 +33,12 @@ typedef KGenericFactory<Scan> ScanFactory; K_EXPORT_COMPONENT_FACTORY( kofficescan, ScanFactory( "kscan_plugin" ) ) -Scan::Scan(QObject *parent, const char *name, const QStringList &) - : KParts::Plugin(parent, name), scanDialog( 0 ) +Scan::Scan(TQObject *tqparent, const char *name, const TQStringList &) + : KParts::Plugin(tqparent, name), scanDialog( 0 ) { setInstance(ScanFactory::instance()); - (void) new KAction(i18n("&Scan Image..."), SmallIcon("scanner"), 0, this, SLOT(slotScan()), actionCollection(), "scan_image"); + (void) new KAction(i18n("&Scan Image..."), SmallIcon("scanner"), 0, this, TQT_SLOT(slotScan()), actionCollection(), "scan_image"); } Scan::~Scan() @@ -50,13 +50,13 @@ void Scan::slotScan() { if ( !scanDialog ) { - scanDialog = KScanDialog::getScanDialog( dynamic_cast<QWidget*>( parent() ) ); + scanDialog = KScanDialog::getScanDialog( dynamic_cast<TQWidget*>( tqparent() ) ); if ( scanDialog ) { scanDialog->setMinimumSize(300, 300); - connect(scanDialog, SIGNAL(finalImage(const QImage &, int)), - this, SLOT(slotShowImage(const QImage &))); + connect(scanDialog, TQT_SIGNAL(finalImage(const TQImage &, int)), + this, TQT_SLOT(slotShowImage(const TQImage &))); } else { @@ -71,12 +71,12 @@ void Scan::slotScan() scanDialog->show(); } -void Scan::slotShowImage(const QImage &img) +void Scan::slotShowImage(const TQImage &img) { KTempFile temp(locateLocal("tmp", "scandialog"), ".png"); img.save(temp.name(), "PNG"); - KoView *view = dynamic_cast<KoView *>(parent()); + KoView *view = dynamic_cast<KoView *>(tqparent()); if(!view) return; diff --git a/plugins/scan/scan.h b/plugins/scan/scan.h index ffb9792c..34cebdc3 100644 --- a/plugins/scan/scan.h +++ b/plugins/scan/scan.h @@ -21,20 +21,21 @@ #define SCAN_H #include <kparts/plugin.h> -#include <qimage.h> +#include <tqimage.h> class KScanDialog; class Scan : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - Scan(QObject *parent, const char *name, const QStringList &); + Scan(TQObject *tqparent, const char *name, const TQStringList &); virtual ~Scan(); private slots: void slotScan(); - void slotShowImage(const QImage &img); + void slotShowImage(const TQImage &img); private: KScanDialog *scanDialog; |