diff options
Diffstat (limited to 'kipi-plugins/simpleviewerexport/simpleviewerexport.cpp')
-rw-r--r-- | kipi-plugins/simpleviewerexport/simpleviewerexport.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp b/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp index d9f95ba..c6665f4 100644 --- a/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp +++ b/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp @@ -87,7 +87,7 @@ void SimpleViewerExport::run(KIPI::Interface* interface, TQObject *parent) { if(!plugin->installSimpleViewer()) { - KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("SimpleViewer installation failed")); + KMessageBox::error(kapp->activeWindow(), i18n("SimpleViewer installation failed")); return; } } @@ -134,7 +134,7 @@ bool SimpleViewerExport::configure() m_canceled = false; if(!m_configDlg) - m_configDlg = new SVEDialog(m_interface, TQT_TQWIDGET(kapp->activeWindow())); + m_configDlg = new SVEDialog(m_interface, kapp->activeWindow()); bool configured = false; while(!configured) @@ -144,9 +144,9 @@ bool SimpleViewerExport::configure() configured = true; - if(TDEIO::NetAccess::exists(m_configDlg->exportURL(), false, TQT_TQWIDGET(kapp->activeWindow()))) + if(TDEIO::NetAccess::exists(m_configDlg->exportURL(), false, kapp->activeWindow())) { - int ret = KMessageBox::warningYesNoCancel(TQT_TQWIDGET(kapp->activeWindow()), + int ret = KMessageBox::warningYesNoCancel(kapp->activeWindow(), i18n("Target folder %1 already exists.\n" "Do you want to overwrite it (all data in this folder will be lost)") .arg(m_configDlg->exportURL())); @@ -154,9 +154,9 @@ bool SimpleViewerExport::configure() switch(ret) { case KMessageBox::Yes: - if(!TDEIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow()))) + if(!TDEIO::NetAccess::del(m_configDlg->exportURL(), kapp->activeWindow())) { - KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Could not delete %1\n" + KMessageBox::error(kapp->activeWindow(), i18n("Could not delete %1\n" "Please choose another export folder").arg(m_configDlg->exportURL())); configured = false; } @@ -181,7 +181,7 @@ void SimpleViewerExport::startExport() if(m_canceled) return; - m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), i18n("Flash Export")); + m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(), i18n("Flash Export")); connect(m_progressDlg, TQT_SIGNAL(cancelClicked()), this, TQT_SLOT(slotCancel())); @@ -264,13 +264,13 @@ void SimpleViewerExport::slotProcess() if(m_canceled) { - int ret = KMessageBox::warningYesNo(TQT_TQWIDGET(kapp->activeWindow()), + int ret = KMessageBox::warningYesNo(kapp->activeWindow(), i18n("Export was canceled.\n" "Do you want to delete the yet created files in %1 ?") .arg(m_configDlg->exportURL())); if(ret == KMessageBox::Yes) { - TDEIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow())); + TDEIO::NetAccess::del(m_configDlg->exportURL(), kapp->activeWindow()); } } @@ -286,7 +286,7 @@ bool SimpleViewerExport::createExportDirectories() m_progressDlg->addedAction(i18n("Creating directories..."), KIPI::StartingMessage); KURL root = m_configDlg->exportURL(); - if(!TDEIO::NetAccess::mkdir(root, TQT_TQWIDGET(kapp->activeWindow()))) + if(!TDEIO::NetAccess::mkdir(root, kapp->activeWindow())) { m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(root.url()), KIPI::ErrorMessage); @@ -295,7 +295,7 @@ bool SimpleViewerExport::createExportDirectories() KURL thumbsDir = m_tempDir->name(); thumbsDir.addPath("/thumbs"); - if(!TDEIO::NetAccess::mkdir(thumbsDir, TQT_TQWIDGET(kapp->activeWindow()))) + if(!TDEIO::NetAccess::mkdir(thumbsDir, kapp->activeWindow())) { m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(thumbsDir.url()), KIPI::ErrorMessage); @@ -304,7 +304,7 @@ bool SimpleViewerExport::createExportDirectories() KURL imagesDir = m_tempDir->name(); imagesDir.addPath("/images"); - if(!TDEIO::NetAccess::mkdir(imagesDir, TQT_TQWIDGET(kapp->activeWindow()))) + if(!TDEIO::NetAccess::mkdir(imagesDir, kapp->activeWindow())) { m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(imagesDir.url()), KIPI::ErrorMessage); @@ -628,7 +628,7 @@ bool SimpleViewerExport::checkSimpleViewer() const bool SimpleViewerExport::installSimpleViewer() { - FirstRunDlg *firstRunDlg = new FirstRunDlg(TQT_TQWIDGET(kapp->activeWindow())); + FirstRunDlg *firstRunDlg = new FirstRunDlg(kapp->activeWindow()); if(firstRunDlg->exec() == TQDialog::Accepted) { TQString url = firstRunDlg->getURL(); |