[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeaccessibility/kmouth
From: Thomas Häber <thomas () haeber ! de>
Date: 2006-09-23 3:37:06
Message-ID: 1158982626.715369.8984.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 587527 by haeber:
changed single chars from QString to QChar -> faster (with help of English Breakfast Network)
M +4 -4 phrasebook/phrasebookdialog.cpp
M +2 -2 speech.cpp
M +1 -2 texttospeechconfigurationwidget.cpp
M +1 -2 wordcompletion/dictionarycreationwizard.cpp
M +1 -1 wordcompletion/wordcompletionwidget.cpp
--- trunk/KDE/kdeaccessibility/kmouth/phrasebook/phrasebookdialog.cpp #587526:587527
@@ -418,9 +418,9 @@
delete dirDesc;
if (name.isNull() || name.isEmpty())
- dispPath += "/" + file.fileName ();
+ dispPath += '/' + file.fileName ();
else
- dispPath += "/" + name;
+ dispPath += '/' + name;
path = file.path();
}
@@ -442,8 +442,8 @@
book.path = displayPath(*it);
book.filename = *it;
- bookNames += book.path + "/" + book.name;
- bookMap [book.path + "/" + book.name] = book;
+ bookNames += book.path + '/' + book.name;
+ bookMap [book.path + '/' + book.name] = book;
}
}
--- trunk/KDE/kdeaccessibility/kmouth/speech.cpp #587526:587527
@@ -223,10 +223,10 @@
}
void Speech::receivedStdout (KProcess *, char *buffer, int buflen) {
- kDebug() << QString::fromLatin1(buffer, buflen) + "\n";
+ kDebug() << QString::fromLatin1(buffer, buflen) + '\n';
}
void Speech::receivedStderr (KProcess *, char *buffer, int buflen) {
- kDebug() << QString::fromLatin1(buffer, buflen) + "\n";
+ kDebug() << QString::fromLatin1(buffer, buflen) + '\n';
}
void Speech::wroteStdin(KProcess *) {
--- trunk/KDE/kdeaccessibility/kmouth/texttospeechconfigurationwidget.cpp #587526:587527
@@ -46,8 +46,7 @@
void TextToSpeechConfigurationWidget::buildCodecList () {
QString local = i18n("Local")+" (";
- local += QTextCodec::codecForLocale()->name();
- local += ")";
+ local += QTextCodec::codecForLocale()->name() + ')';
characterCodingBox->addItem (local, Speech::Local);
characterCodingBox->addItem (i18n("Latin1"), Speech::Latin1);
characterCodingBox->addItem (i18n("Unicode"), Speech::Unicode);
--- trunk/KDE/kdeaccessibility/kmouth/wordcompletion/dictionarycreationwizard.cpp #587526:587527
@@ -100,8 +100,7 @@
void DictionaryCreationWizard::buildCodecCombo (QComboBox *combo) {
QString local = i18n("Local")+" (";
- local += QTextCodec::codecForLocale()->name();
- local += ")";
+ local += QTextCodec::codecForLocale()->name() + ')';
combo->addItem (local, 0);
combo->addItem (i18n("Latin1"), 1);
combo->addItem (i18n("Unicode"), 2);
--- trunk/KDE/kdeaccessibility/kmouth/wordcompletion/wordcompletionwidget.cpp #587526:587527
@@ -77,7 +77,7 @@
KSimpleConfig entry(filename);
entry.setGroup(QString::fromLatin1("KCM Locale"));
QString name = entry.readEntry(QString::fromLatin1("Name"), i18n("without name"));
- setLanguage (name + " (" + languageCode + ")", languageCode);
+ setLanguage (name + " (" + languageCode + ')', languageCode);
}
void setLanguage (QString name, QString languageCode) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic