mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
Fixed locale
This commit is contained in:
parent
9f77e83685
commit
10511a8715
Binary file not shown.
@ -9,7 +9,6 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES})
|
||||
|
||||
set (CMAKE_CXX_FLAGS "-fexceptions")
|
||||
set (extsysmon_engine_SRCS extsysmon.cpp)
|
||||
|
||||
# Now make sure all files get to the right place
|
||||
|
@ -1,12 +1,18 @@
|
||||
#include "extsysmon.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Plasma/DataContainer>
|
||||
|
||||
#include <locale.h>
|
||||
#include <stdio.h>
|
||||
|
||||
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
||||
: Plasma::DataEngine(parent, args)
|
||||
{
|
||||
Q_UNUSED(args)
|
||||
|
||||
QLocale::setDefault(QLocale::C);
|
||||
setlocale (LC_ALL, "C");
|
||||
|
||||
setMinimumPollingInterval(333);
|
||||
|
||||
FILE *f_out;
|
||||
@ -49,8 +55,6 @@ bool ExtendedSysMon::sourceRequestEvent(const QString &name)
|
||||
|
||||
bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
||||
{
|
||||
QLocale::setDefault(QLocale::C);
|
||||
|
||||
FILE *f_out;
|
||||
QString key, out, tmp_out, value;
|
||||
bool ok = false;
|
||||
|
Loading…
Reference in New Issue
Block a user