Rename KStandard for enhanced compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent a30d06da0a
commit ab53bd0c4c

@ -224,7 +224,7 @@ TQString DictionaryCreationWizard::createDictionary() {
filename = TQString("wordcompletion%1.dict").arg(dictnumber);
dictionaryFile = TDEApplication::kApplication()->dirs()->findResource("appdata", filename);
}
while (KStandardDirs::exists(dictionaryFile));
while (TDEStandardDirs::exists(dictionaryFile));
dictionaryFile = TDEApplication::kApplication()->dirs()->saveLocation ("appdata", "/") + filename;
if (WordList::saveWordList (map, dictionaryFile))

@ -47,7 +47,7 @@ SelectEvent::SelectEvent(TQWidget* parent, const char* name, WFlags fl, const TQ
for ( ; it != fullpaths.end(); ++it)
{
TQString relativePath = *it;
if ( relativePath.at(0) == '/' && KStandardDirs::exists( relativePath ) )
if ( relativePath.at(0) == '/' && TDEStandardDirs::exists( relativePath ) )
{
relativePath = makeRelative( relativePath );
relativePaths.append(relativePath);

@ -498,7 +498,7 @@ void Speaker::doUtterances()
// See if synthesis is completed.
if (it->plugin->getState() == psFinished)
{
it->audioUrl = KStandardDirs::realFilePath(it->plugin->getFilename());
it->audioUrl = TDEStandardDirs::realFilePath(it->plugin->getFilename());
// kdDebug() << "Speaker::doUtterances: synthesized filename: " << it->audioUrl << endl;
it->plugin->ackFinished();
it->state = usSynthed;
@ -1507,7 +1507,7 @@ TQString Speaker::makeSuggestedFilename()
tempFile.close();
TQFile::remove(waveFile);
// kdDebug() << "Speaker::makeSuggestedFilename: Suggesting filename: " << waveFile << endl;
return KStandardDirs::realFilePath(waveFile);
return TDEStandardDirs::realFilePath(waveFile);
}
/**

@ -57,7 +57,7 @@ TQString findExecutable (const TQStringList &names, const TQString &possiblePath
TQStringList::ConstIterator it;
TQStringList::ConstIterator itEnd = names.constEnd();
for (it = names.constBegin(); it != itEnd; ++it) {
TQString executable = KStandardDirs::findExe (*it);
TQString executable = TDEStandardDirs::findExe (*it);
if (!executable.isNull() && !executable.isEmpty())
return executable;
}

Loading…
Cancel
Save