perl -pi -e 's/KGlobal::locale/KLocale::global/' ...

This commit is contained in:
David Faure 2012-08-30 18:31:53 +02:00
parent 39b38d1632
commit 3d0d287103
5 changed files with 6 additions and 6 deletions

View File

@ -449,7 +449,7 @@ void AbstractRunnerPrivate::setupScriptSupport()
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KGlobal::locale()->insertCatalog(runnerDescription.pluginName());
KLocale::global()->insertCatalog(runnerDescription.pluginName());
}
}

View File

@ -608,7 +608,7 @@ void AppletPrivate::setupScriptSupport()
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KGlobal::locale()->insertCatalog(appletDescription.pluginName());
KLocale::global()->insertCatalog(appletDescription.pluginName());
}
const QString xmlPath = package->filePath("mainconfigxml");

View File

@ -551,7 +551,7 @@ void WallpaperPrivate::setupScriptSupport()
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KGlobal::locale()->insertCatalog(wallpaperDescription.pluginName());
KLocale::global()->insertCatalog(wallpaperDescription.pluginName());
}
}

View File

@ -1252,7 +1252,7 @@ void IconWidget::drawActionButtonBase(QPainter *painter, const QSize &size, int
void IconWidget::setText(const QString &text)
{
d->text = KGlobal::locale()->removeAcceleratorMarker(text);
d->text = KLocale::global()->removeAcceleratorMarker(text);
// cause a relayout
d->currentSize = QSizeF(-1, -1);
//try to relayout, needed if an icon was never shown before

View File

@ -1076,7 +1076,7 @@ void SignalPlotter::drawAxisText(QPainter *p, int top, int h)
value = d->niceVertMax / d->scaledBy - y * stepsize;
}
QString number = KGlobal::locale()->formatNumber(value, d->precision);
QString number = KLocale::global()->formatNumber(value, d->precision);
val = QString("%1 %2").arg(number, d->unit);
p->drawText(6, y_coord - 3, val);
}
@ -1106,7 +1106,7 @@ QString SignalPlotter::lastValueAsString(uint i) const
return QString();
}
double value = d->plotData.first()[i] / d->scaledBy; // retrieve the newest value for this plot then scale it correct
QString number = KGlobal::locale()->formatNumber(value, (value >= 100)?0:2);
QString number = KLocale::global()->formatNumber(value, (value >= 100)?0:2);
return QString("%1 %2").arg(number, d->unit);
}