[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue Jul 15 01:47:18 CEST 2003
CVS commit by staikos:
clean some sprintf()
M +1 -3 ksteqdialog_i.cpp 1.25
M +1 -4 ksthsdialog_i.cpp 1.25
M +1 -4 kstpsddialog_i.cpp 1.19
--- kdeextragear-2/kst/kst/ksteqdialog_i.cpp #1.24:1.25
@@ -119,7 +119,5 @@ void KstEqDialogI::update(int new_index)
if (isNew) {
QString new_label;
- new_label.sprintf("C%d-", curves.count()+1);
- new_label += i18n("<New_Equation>");
-
+ new_label = QString("C%1-").arg(curves.count()+1) + i18n("<New_Equation>");
Select->insertItem(new_label);
}
--- kdeextragear-2/kst/kst/ksthsdialog_i.cpp #1.24:1.25
@@ -118,8 +118,5 @@ void KstHsDialogI::update(int new_index)
if (isNew) {
- QString new_label;
- new_label.sprintf("C%d-", _curves.count()+1);
- new_label += i18n("<New_Histogram>");
-
+ QString new_label = QString("C%d-").arg(_curves.count()+1) + i18n("<New_Histogram>");
Select->insertItem(new_label);
}
--- kdeextragear-2/kst/kst/kstpsddialog_i.cpp #1.18:1.19
@@ -115,7 +115,5 @@ void KstPsdDialogI::update(int new_index
if (isNew) {
QString new_label;
- new_label.sprintf("C%d-", _curves.count()+1);
- new_label += i18n("<New_PSD>");
-
+ new_label = QString("C%d-").arg(_curves.count()+1) + i18n("<New_PSD>");
Select->insertItem(new_label);
}
More information about the Kst
mailing list