summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/templatestreeview.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
commit6c79d50fa9fbdff7f69ca57a8ab5fcc942375593 (patch)
treef47737d56c3239a0d8bc600674f0ca04b6e30d6e /quanta/treeviews/templatestreeview.cpp
parent36c36b53a129509d56fdaa0a7c9fcbcacd0c5826 (diff)
downloadtdewebdev-6c79d50fa9fbdff7f69ca57a8ab5fcc942375593.tar.gz
tdewebdev-6c79d50fa9fbdff7f69ca57a8ab5fcc942375593.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/treeviews/templatestreeview.cpp')
-rw-r--r--quanta/treeviews/templatestreeview.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/quanta/treeviews/templatestreeview.cpp b/quanta/treeviews/templatestreeview.cpp
index 51928bcf..ae828dcb 100644
--- a/quanta/treeviews/templatestreeview.cpp
+++ b/quanta/treeviews/templatestreeview.cpp
@@ -79,22 +79,22 @@ TQMap<TQString, TQString> i18nToType;
//TemplatesTreeBranch implementation
-TemplatesTreeBranch::TemplatesTreeBranch(KFileTreeView *tqparent, const KURL& url,
+TemplatesTreeBranch::TemplatesTreeBranch(KFileTreeView *parent, const KURL& url,
const TQString& name, const TQPixmap& pix,
bool showHidden,
KFileTreeViewItem *branchRoot)
- : BaseTreeBranch(tqparent, url, name, pix, showHidden, branchRoot)
+ : BaseTreeBranch(parent, url, name, pix, showHidden, branchRoot)
{
}
-KFileTreeViewItem* TemplatesTreeBranch::createTreeViewItem(KFileTreeViewItem *tqparent,
+KFileTreeViewItem* TemplatesTreeBranch::createTreeViewItem(KFileTreeViewItem *parent,
KFileItem *fileItem )
{
BaseTreeViewItem *tvi = 0;
- if( tqparent && fileItem )
+ if( parent && fileItem )
{
KURL url = fileItem->url();
- tvi = new BaseTreeViewItem( tqparent, fileItem, this );
+ tvi = new BaseTreeViewItem( parent, fileItem, this );
if (tvi && fileItem->isDir())
{
if (url.isLocalFile())
@@ -106,7 +106,7 @@ KFileTreeViewItem* TemplatesTreeBranch::createTreeViewItem(KFileTreeViewItem *tq
}
} else
{
- url = static_cast<BaseTreeViewItem*>(tqparent)->url();
+ url = static_cast<BaseTreeViewItem*>(parent)->url();
}
TQFileInfo dotFileInfo(url.path() + "/.dirinfo");
while ((!dotFileInfo.exists()) && (dotFileInfo.dirPath() != "/"))
@@ -123,14 +123,14 @@ KFileTreeViewItem* TemplatesTreeBranch::createTreeViewItem(KFileTreeViewItem *tq
}
else
- kdDebug(24000) << "TemplatesTreeBranch::createTreeViewItem: Have no tqparent" << endl;
+ kdDebug(24000) << "TemplatesTreeBranch::createTreeViewItem: Have no parent" << endl;
return tvi;
}
-TemplatesTreeView::TemplatesTreeView(KMainWindow *tqparent, const char *name )
- : BaseTreeView(tqparent,name), m_projectDir(0), m_mainWindow(tqparent)
+TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
+ : BaseTreeView(parent,name), m_projectDir(0), m_mainWindow(parent)
{
typeToi18n["text/all"] = i18n("Text Snippet");
typeToi18n["file/all"] = i18n("Binary File");
@@ -383,10 +383,10 @@ void TemplatesTreeView::slotNewDir()
if (m_dirInfo.mimeType.isEmpty())
{
- createDirDlg->parentAttr->setText(i18n("&Inherit tqparent attribute (nothing)"));
+ createDirDlg->parentAttr->setText(i18n("&Inherit parent attribute (nothing)"));
} else
{
- createDirDlg->parentAttr->setText(i18n("&Inherit tqparent attribute (%1)").tqarg(typeToi18n[m_dirInfo.mimeType]));
+ createDirDlg->parentAttr->setText(i18n("&Inherit parent attribute (%1)").tqarg(typeToi18n[m_dirInfo.mimeType]));
}
if (createDirDlg->exec())
{
@@ -616,10 +616,10 @@ void TemplatesTreeView::slotProperties()
}
if (m_parentDirInfo.mimeType.isEmpty())
{
- m_quantaProperties->parentAttr->setText(i18n("&Inherit tqparent attribute (nothing)"));
+ m_quantaProperties->parentAttr->setText(i18n("&Inherit parent attribute (nothing)"));
} else
{
- m_quantaProperties->parentAttr->setText(i18n("&Inherit tqparent attribute (%1)").tqarg(typeToi18n[m_parentDirInfo.mimeType]));
+ m_quantaProperties->parentAttr->setText(i18n("&Inherit parent attribute (%1)").tqarg(typeToi18n[m_parentDirInfo.mimeType]));
}
m_quantaProperties->preTextEdit->setText(m_dirInfo.preText);
m_quantaProperties->postTextEdit->setText(m_dirInfo.postText);
@@ -709,10 +709,10 @@ void TemplatesTreeView::slotPropertiesApplied()
bool result = writeDirInfo();
KFileTreeViewItem *item = currentKFileTreeViewItem();
if (item && !item->isDir())
- item = static_cast<KFileTreeViewItem *>(item->tqparent());
+ item = static_cast<KFileTreeViewItem *>(item->parent());
if (result && item && !typeString.isEmpty())
{
- if (item->tqparent() && item->isDir())
+ if (item->parent() && item->isDir())
item->setText(1, typeString);
updateTypeDescription(item, typeString);
}
@@ -723,7 +723,7 @@ void TemplatesTreeView::slotPropertiesApplied()
void TemplatesTreeView::updateTypeDescription(KFileTreeViewItem *item, const TQString &typeString)
{
- if (item->tqparent() && item->isDir())
+ if (item->parent() && item->isDir())
item->setText(1, typeString);
KFileTreeViewItem *curItem = static_cast<KFileTreeViewItem *>(item->firstChild());
while (curItem && curItem != static_cast<KFileTreeViewItem *>(item->nextSibling()))