summaryrefslogtreecommitdiffstats
path: root/konq-plugins/kimgalleryplugin
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/kimgalleryplugin')
-rw-r--r--konq-plugins/kimgalleryplugin/imgallerydialog.cpp4
-rw-r--r--konq-plugins/kimgalleryplugin/imgallerydialog.h2
-rw-r--r--konq-plugins/kimgalleryplugin/imgalleryplugin.cpp14
-rw-r--r--konq-plugins/kimgalleryplugin/imgalleryplugin.h2
4 files changed, 11 insertions, 11 deletions
diff --git a/konq-plugins/kimgalleryplugin/imgallerydialog.cpp b/konq-plugins/kimgalleryplugin/imgallerydialog.cpp
index 7e07835..671b90e 100644
--- a/konq-plugins/kimgalleryplugin/imgallerydialog.cpp
+++ b/konq-plugins/kimgalleryplugin/imgallerydialog.cpp
@@ -44,9 +44,9 @@ Boston, MA 02110-1301, USA.
#include "imgallerydialog.h"
#include "imgallerydialog.moc"
-KIGPDialog::KIGPDialog(TQWidget *tqparent, const TQString& path, const char *name )
+KIGPDialog::KIGPDialog(TQWidget *parent, const TQString& path, const char *name )
: KDialogBase( IconList, i18n("Configure"), Default|Ok|Cancel,
- Ok, tqparent, name, true, true ),
+ Ok, parent, name, true, true ),
m_dialogOk( false )
{
m_path = path;
diff --git a/konq-plugins/kimgalleryplugin/imgallerydialog.h b/konq-plugins/kimgalleryplugin/imgallerydialog.h
index f22c06b..a8e2a8d 100644
--- a/konq-plugins/kimgalleryplugin/imgallerydialog.h
+++ b/konq-plugins/kimgalleryplugin/imgallerydialog.h
@@ -42,7 +42,7 @@ class KIGPDialog : public KDialogBase
TQ_OBJECT
public:
- KIGPDialog(TQWidget *tqparent=0, const TQString& path=0, const char *name=0 );
+ KIGPDialog(TQWidget *parent=0, const TQString& path=0, const char *name=0 );
~KIGPDialog();
bool isDialogOk() const;
diff --git a/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp b/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp
index 2b33df4..fde2131 100644
--- a/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp
+++ b/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp
@@ -48,8 +48,8 @@ Boston, MA 02110-1301, USA.
typedef KGenericFactory<KImGalleryPlugin> KImGalleryPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libkimgallery, KImGalleryPluginFactory( "imgalleryplugin" ) )
-KImGalleryPlugin::KImGalleryPlugin( TQObject* tqparent, const char* name, const TQStringList & )
- : KParts::Plugin( tqparent, name ), m_commentMap(0)
+KImGalleryPlugin::KImGalleryPlugin( TQObject* parent, const char* name, const TQStringList & )
+ : KParts::Plugin( parent, name ), m_commentMap(0)
{
new KAction( i18n( "&Create Image Gallery..." ), "imagegallery", CTRL+Key_I, this,
TQT_SLOT( slotExecute() ), actionCollection(), "create_img_gallery" );
@@ -58,12 +58,12 @@ KImGalleryPlugin::KImGalleryPlugin( TQObject* tqparent, const char* name, const
void KImGalleryPlugin::slotExecute()
{
m_progressDlg=0L;
- if ( !tqparent() || !tqparent()->inherits("KonqDirPart"))
+ if ( !parent() || !parent()->inherits("KonqDirPart"))
{
KMessageBox::sorry( 0L, i18n("Could not create the plugin, please report a bug."));
return;
}
- m_part = static_cast<KonqDirPart *>(tqparent());
+ m_part = static_cast<KonqDirPart *>(parent());
if (!m_part->url().isLocalFile()) { //TODO support remote URLs too?
KMessageBox::sorry(m_part->widget(), i18n("Creating an image gallery works only on local folders."));
return;
@@ -249,9 +249,9 @@ bool KImGalleryPlugin::createHtml(const KURL& url, const TQString& sourceDirName
if(m_cancelled) return false;
- if( !tqparent() || !tqparent()->inherits("KonqDirPart"))
+ if( !parent() || !parent()->inherits("KonqDirPart"))
return false;
- KonqDirPart * part = static_cast<KonqDirPart *>(tqparent());
+ KonqDirPart * part = static_cast<KonqDirPart *>(parent());
TQStringList subDirList;
if (m_recurseSubDirectories && (recursionLevel >= 0)) { //recursionLevel == 0 means endless
@@ -431,7 +431,7 @@ bool KImGalleryPlugin::createThumb( const TQString& imgName, const TQString& sou
//kdDebug(90170) << "srcURL: " << srcURL << endl;
KURL destURL = KURL::fromPathOrURL(imgGalleryDir + TQString::tqfromLatin1("/images/") + imgName);
//kdDebug(90170) << "destURL: " << destURL << endl;
- KIO::NetAccess::copy(srcURL, destURL, static_cast<KParts::Part *>(tqparent())->widget());
+ KIO::NetAccess::copy(srcURL, destURL, static_cast<KParts::Part *>(parent())->widget());
}
const TQString imgNameFormat = imgName + extension(imageFormat);
diff --git a/konq-plugins/kimgalleryplugin/imgalleryplugin.h b/konq-plugins/kimgalleryplugin/imgalleryplugin.h
index 0139ae3..1a6cd1d 100644
--- a/konq-plugins/kimgalleryplugin/imgalleryplugin.h
+++ b/konq-plugins/kimgalleryplugin/imgalleryplugin.h
@@ -37,7 +37,7 @@ class KImGalleryPlugin : public KParts::Plugin
Q_OBJECT
TQ_OBJECT
public:
- KImGalleryPlugin( TQObject* tqparent, const char* name,
+ KImGalleryPlugin( TQObject* parent, const char* name,
const TQStringList & );
~KImGalleryPlugin() {}