summaryrefslogtreecommitdiffstats
path: root/quanta/src/quanta_init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/src/quanta_init.cpp')
-rw-r--r--quanta/src/quanta_init.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/quanta/src/quanta_init.cpp b/quanta/src/quanta_init.cpp
index d188adee..15e1abdd 100644
--- a/quanta/src/quanta_init.cpp
+++ b/quanta/src/quanta_init.cpp
@@ -138,7 +138,7 @@ void QuantaInit::initQuanta()
tmpDir = tmpDirs[0];
for (uint i = 0; i < tmpDirs.count(); i++)
{
- if (tmpDirs[i].tqcontains("kde-"))
+ if (tmpDirs[i].contains("kde-"))
tmpDir = tmpDirs[i];
}
dir.mkdir(tmpDir + "quanta");
@@ -154,9 +154,9 @@ void QuantaInit::initQuanta()
//defaultDocType must be read before the Project object is created!!
m_config->setGroup("General Options");
qConfig.defaultDocType = m_config->readEntry("Default DTD",DEFAULT_DTD);
- if (! DTDs::ref()->tqfind(qConfig.defaultDocType))
+ if (! DTDs::ref()->find(qConfig.defaultDocType))
qConfig.defaultDocType = DEFAULT_DTD;
- DTDs::ref()->tqfind("dtd"); //load on startup
+ DTDs::ref()->find("dtd"); //load on startup
initView();
initDocument(); // after initView because of init of treeViews
@@ -296,10 +296,10 @@ void QuantaInit::initQuanta()
{
s = t.readLine();
charList << i18n(s.utf8()); // line excluding '\n'
- int begin = s.tqfind("(&") + 1;
+ int begin = s.find("(&") + 1;
if (begin == 1)
continue;
- int length = s.tqfind(";)") - begin + 1;
+ int length = s.find(";)") - begin + 1;
TQString s2 = s.mid(begin, length - 1);
replacementMap[s[0].tqunicode()] = s2;
}
@@ -307,7 +307,7 @@ void QuantaInit::initQuanta()
}
TQString infoCss = tmpDir;
- infoCss.tqreplace(TQRegExp("/quanta$"),"");
+ infoCss.replace(TQRegExp("/quanta$"),"");
infoCss += "/info.css";
QExtFileInfo::copy(KURL().fromPathOrURL(qConfig.globalDataDir + resourceDir + "scripts/info.css"), KURL().fromPathOrURL(infoCss));
@@ -772,7 +772,7 @@ void QuantaInit::initActions()
// Edit actions
(void) new KAction( i18n( "Find in Files..." ),
- SmallIcon("filetqfind"), CTRL+ALT+Key_F,
+ SmallIcon("filefind"), CTRL+ALT+Key_F,
TQT_TQOBJECT(m_quanta), TQT_SLOT( slotEditFindInFiles() ),
TQT_TQOBJECT(ac), "find_in_files" );
@@ -1140,7 +1140,7 @@ void QuantaInit::recoverCrashed(TQStringList& recoveredFileNameList)
{
// when quanta crashes and file autoreloading option is on
// then if user restarts quanta, the backup copies will reload
- TQString backedUpFileName = (*backedUpUrlsIt).left((*backedUpUrlsIt).tqfindRev(".")); //the filename without the PID
+ TQString backedUpFileName = (*backedUpUrlsIt).left((*backedUpUrlsIt).findRev(".")); //the filename without the PID
bool notFound;
TQString autosavedPath = searchPathListEntry(backedUpFileName, autosavedUrlsList, notFound);
if (!autosavedPath.isEmpty()) //the current item was autosaved and is not in use by another Quanta
@@ -1347,8 +1347,8 @@ void QuantaInit::recoverCrashed(TQStringList& recoveredFileNameList)
/** Retrieves hashed path from the name of a backup file */
TQString QuantaInit::retrieveHashedPath(const TQString& filename)
{
- int lastPoint = filename.tqfindRev(".");
- int Ppos = filename.tqfind("P", lastPoint);
+ int lastPoint = filename.findRev(".");
+ int Ppos = filename.find("P", lastPoint);
return filename.mid(lastPoint + 1,
Ppos - lastPoint);
}
@@ -1358,10 +1358,10 @@ TQString QuantaInit::retrieveHashedPath(const TQString& filename)
TQString QuantaInit::retrievePID(const TQString& filename)
{
TQString strPID = TQString();
- strPID = filename.mid(filename.tqfindRev("P") + 1);
+ strPID = filename.mid(filename.findRev("P") + 1);
if (strPID.isEmpty())
- strPID = filename.mid(filename.tqfindRev("N") + 1);
+ strPID = filename.mid(filename.findRev("N") + 1);
if (strPID.endsWith("U"))
strPID = strPID.left(strPID.length() - 1);
@@ -1569,7 +1569,7 @@ void QuantaInit::readAbbreviations()
TQStringList::Iterator it;
for (it = filenameList.begin(); it != filenameList.end(); ++it)
{
- int pos =(*it).tqfind('|');
+ int pos =(*it).find('|');
TQString dirName = (*it).mid(pos + 1);
TQString dtepName = (*it).left(pos);
KURL dirURL(dirName);