[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp
Zongyi Zhang
freebody.kst at gmail.com
Tue Apr 6 23:44:11 CEST 2010
SVN commit 1111881 by zhang:
remove klocale
M +3 -2 kstlogwidget.cpp
M +0 -1 kstviewlabel.cpp
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstlogwidget.cpp #1111880:1111881
@@ -19,7 +19,6 @@
#include "kst.h"
#include <kglobal.h>
-#include <klocale.h>
#include <QBitmap>
#include <QPainter>
@@ -66,7 +65,9 @@
return;
}
- append(QObject::tr("%1<b>%2</b> %3").arg(sym).arg(KGlobal::locale()->formatDateTime(msg.date)).arg(msg.msg));
+ QString format = "yyyy-mm-dd hh:mm";
+
+ append(QObject::tr("%1<b>%2</b> %3").arg(sym).arg(msg.date.QDateTime::toString(format)).arg(msg.msg));
}
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstviewlabel.cpp #1111880:1111881
@@ -36,7 +36,6 @@
#include <kdualcolorbutton.h>
#include <kfontcombo.h>
#include <kglobal.h>
-#include <klocale.h>
#include <knuminput.h>
#include <kpopupmenu.h>
*/
More information about the Kst
mailing list