summaryrefslogtreecommitdiffstats
path: root/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit90363652674deb94cd07057428b24fcb1735dbce (patch)
tree35013223cb731f194f8584cc1c06a023c3c75c85 /konq-plugins/kimgalleryplugin/imgalleryplugin.cpp
parent627b091fad9df13695f249588e8a58f524eda0fa (diff)
downloadtdeaddons-90363652674deb94cd07057428b24fcb1735dbce.tar.gz
tdeaddons-90363652674deb94cd07057428b24fcb1735dbce.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/kimgalleryplugin/imgalleryplugin.cpp')
-rw-r--r--konq-plugins/kimgalleryplugin/imgalleryplugin.cpp14
1 files changed, 7 insertions, 7 deletions
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);