summaryrefslogtreecommitdiffstats
path: root/parts/appwizard/appwizarddlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/appwizard/appwizarddlg.cpp')
-rw-r--r--parts/appwizard/appwizarddlg.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/parts/appwizard/appwizarddlg.cpp b/parts/appwizard/appwizarddlg.cpp
index 4a54d195..bfcdc91b 100644
--- a/parts/appwizard/appwizarddlg.cpp
+++ b/parts/appwizard/appwizarddlg.cpp
@@ -148,7 +148,7 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *tqparent, const
info->fileTemplates = templateConfig.readEntry("FileTemplates");
info->openFilesAfterGeneration = templateConfig.readListEntry("ShowFilesAfterGeneration");
TQString destDir = templateConfig.readPathEntry("DefaultDestinatonDir", defaultProjectsDir);
- destDir.tqreplace(TQRegExp("HOMEDIR"), TQDir::homeDirPath());
+ destDir.replace(TQRegExp("HOMEDIR"), TQDir::homeDirPath());
info->defaultDestDir = destDir;
TQString category = templateConfig.readEntry("Category");
// format category to a unique status
@@ -266,7 +266,7 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *tqparent, const
// Insert items into list view
TQPtrListIterator<ApplicationInfo> ait(m_appsInfo);
for (; ait.current(); ++ait) {
- TQListViewItem *item = m_categoryMap.tqfind(ait.current()->category);
+ TQListViewItem *item = m_categoryMap.find(ait.current()->category);
if (item)
{
item = new KListViewItem(item, ait.current()->name);
@@ -630,9 +630,9 @@ void AppWizardDialog::accept()
for( ; mapIt != m_pCurrentAppInfo->subMap.end(); ++mapIt )
{
TQString escaped( mapIt.data() );
- escaped.tqreplace( "&", "&amp;" );
- escaped.tqreplace( "<", "&lt;" );
- escaped.tqreplace( ">", "&gt;" );
+ escaped.replace( "&", "&amp;" );
+ escaped.replace( "<", "&lt;" );
+ escaped.replace( ">", "&gt;" );
m_pCurrentAppInfo->subMapXML.insert( mapIt.key(), escaped );
}
@@ -968,7 +968,7 @@ void AppWizardDialog::insertCategoryIntoTreeView(const TQString &completeCategor
TQStringList::ConstIterator it;
for (it = categories.begin(); it != categories.end(); ++it) {
category = category + "/" + *it;
- TQListViewItem *item = m_categoryMap.tqfind(category);
+ TQListViewItem *item = m_categoryMap.find(category);
if (!item) { // not found, create it
if (!pParentItem)
pParentItem = new KListViewItem(templates_listview,*it);
@@ -1290,7 +1290,7 @@ void AppWizardDialog::loadLicenses()
{
TQString licPath( dirs->findResource( "licenses", *it ) );
kdDebug(9010) << "Loading license file: " << licPath << endl;
- TQString licName = licPath.mid( licPath.tqfindRev('/') + 1 );
+ TQString licName = licPath.mid( licPath.findRev('/') + 1 );
KDevLicense* lic = new KDevLicense( licName, licPath );
m_licenses.insert( licName, lic );
}
@@ -1342,7 +1342,7 @@ void AppWizardDialog::checkAndHideItems(TQListView *view)
TQListViewItem *item = view->firstChild();
while (item)
{
- if (!m_categoryItems.tqcontains(item))
+ if (!m_categoryItems.contains(item))
continue;
checkAndHideItems(item);
item = item->nextSibling();
@@ -1351,7 +1351,7 @@ void AppWizardDialog::checkAndHideItems(TQListView *view)
bool AppWizardDialog::checkAndHideItems(TQListViewItem *item)
{
- if (!m_categoryItems.tqcontains(item))
+ if (!m_categoryItems.contains(item))
return !item->isVisible();
TQListViewItem *child = item->firstChild();
bool hide = true;
@@ -1371,4 +1371,4 @@ bool AppWizardDialog::checkAndHideItems(TQListViewItem *item)
#include "appwizarddlg.moc"
-// kate: indent-width 4; tqreplace-tabs off; tab-width 4; space-indent off;
+// kate: indent-width 4; replace-tabs off; tab-width 4; space-indent off;