summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/sendimages/plugin_sendimages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/sendimages/plugin_sendimages.cpp')
-rw-r--r--kipi-plugins/sendimages/plugin_sendimages.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kipi-plugins/sendimages/plugin_sendimages.cpp b/kipi-plugins/sendimages/plugin_sendimages.cpp
index f6441a0..09d5ffa 100644
--- a/kipi-plugins/sendimages/plugin_sendimages.cpp
+++ b/kipi-plugins/sendimages/plugin_sendimages.cpp
@@ -62,14 +62,14 @@ K_EXPORT_COMPONENT_FACTORY( kipiplugin_sendimages,
Factory("kipiplugin_sendimages"))
// -----------------------------------------------------------
-Plugin_SendImages::Plugin_SendImages(QObject *parent, const char*, const QStringList&)
- : KIPI::Plugin( Factory::instance(), parent, "SendImages")
+Plugin_SendImages::Plugin_SendImages(TQObject *tqparent, const char*, const TQStringList&)
+ : KIPI::Plugin( Factory::instance(), tqparent, "SendImages")
{
kdDebug( 51001 ) << "Plugin_SendImages plugin loaded" << endl;
}
-void Plugin_SendImages::setup( QWidget* widget )
+void Plugin_SendImages::setup( TQWidget* widget )
{
KIPI::Plugin::setup( widget );
@@ -77,13 +77,13 @@ void Plugin_SendImages::setup( QWidget* widget )
"mail_new", // Menu icon.
0,
this,
- SLOT(slotActivate()),
+ TQT_SLOT(slotActivate()),
actionCollection(),
"send_images");
addAction( m_action_sendimages );
- KIPI::Interface* interface = dynamic_cast< KIPI::Interface* >( parent() );
+ KIPI::Interface* interface = dynamic_cast< KIPI::Interface* >( tqparent() );
if ( !interface )
{
kdError( 51000 ) << "Kipi interface is null!" << endl;
@@ -94,8 +94,8 @@ void Plugin_SendImages::setup( QWidget* widget )
m_action_sendimages->setEnabled( selection.isValid() &&
!selection.images().isEmpty() );
- connect( interface, SIGNAL(selectionChanged(bool)),
- m_action_sendimages, SLOT(setEnabled(bool)));
+ connect( interface, TQT_SIGNAL(selectionChanged(bool)),
+ m_action_sendimages, TQT_SLOT(setEnabled(bool)));
}
Plugin_SendImages::~Plugin_SendImages()
@@ -106,7 +106,7 @@ void Plugin_SendImages::slotActivate()
{
m_progressDlg = 0;
- KIPI::Interface* interface = dynamic_cast<KIPI::Interface*>( parent() );
+ KIPI::Interface* interface = dynamic_cast<KIPI::Interface*>( tqparent() );
if ( !interface )
{
kdError( 51000 ) << "Kipi interface is null!" << endl;
@@ -119,7 +119,7 @@ void Plugin_SendImages::slotActivate()
return;
KStandardDirs dir;
- QString Tmp = dir.saveLocation("tmp", "kipi-sendimagesplugin-" + QString::number(getpid()) + "/");
+ TQString Tmp = dir.saveLocation("tmp", "kipi-sendimagesplugin-" + TQString::number(getpid()) + "/");
m_sendImagesOperation = new KIPISendimagesPlugin::SendImages( interface, Tmp, images, this );
@@ -139,16 +139,16 @@ void Plugin_SendImages::slotCancel()
m_sendImagesOperation->removeTmpFiles();
}
-void Plugin_SendImages::customEvent(QCustomEvent *event)
+void Plugin_SendImages::customEvent(TQCustomEvent *event)
{
if (!event) return;
if (!m_progressDlg)
{
- m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(), i18n("Preparing images to send"));
+ m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), i18n("Preparing images to send"));
- connect(m_progressDlg, SIGNAL(cancelClicked()),
- this, SLOT(slotCancel()));
+ connect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
+ this, TQT_SLOT(slotCancel()));
m_current = 0;
m_progressDlg->show();
@@ -160,7 +160,7 @@ void Plugin_SendImages::customEvent(QCustomEvent *event)
if (d->starting)
{
- QString text;
+ TQString text;
switch (d->action)
{
@@ -174,14 +174,14 @@ void Plugin_SendImages::customEvent(QCustomEvent *event)
case(KIPISendimagesPlugin::ResizeImages):
{
text = i18n("Resizing '%1' from Album '%2'...")
- .arg(d->fileName).arg(d->albumName);
+ .tqarg(d->fileName).tqarg(d->albumName);
break;
}
case(KIPISendimagesPlugin::Progress):
{
text = i18n("Using '%1' from Album '%2' without resizing...")
- .arg(d->fileName).arg(d->albumName);
+ .tqarg(d->fileName).tqarg(d->albumName);
break;
}
@@ -195,7 +195,7 @@ void Plugin_SendImages::customEvent(QCustomEvent *event)
}
else
{
- QString text;
+ TQString text;
if (!d->success)
{
@@ -204,7 +204,7 @@ void Plugin_SendImages::customEvent(QCustomEvent *event)
case(KIPISendimagesPlugin::ResizeImages):
{
text = i18n("Failed to resize '%1' from Album '%2'")
- .arg(d->fileName).arg(d->albumName);
+ .tqarg(d->fileName).tqarg(d->albumName);
break;
}
@@ -223,7 +223,7 @@ void Plugin_SendImages::customEvent(QCustomEvent *event)
case(KIPISendimagesPlugin::ResizeImages):
{
text = i18n("Resizing '%1' from Album '%2' completed.")
- .arg(d->fileName).arg(d->albumName);
+ .tqarg(d->fileName).tqarg(d->albumName);
break;
}
@@ -261,8 +261,8 @@ void Plugin_SendImages::customEvent(QCustomEvent *event)
m_progressDlg->setButtonCancelText( i18n("&Close") );
#endif
- disconnect(m_progressDlg, SIGNAL(cancelClicked()),
- this, SLOT(slotCancel()));
+ disconnect(m_progressDlg, TQT_SIGNAL(cancelClicked()),
+ this, TQT_SLOT(slotCancel()));
// Create a text file with images comments if necessary.