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}
|
${CMAKE_BINARY_DIR}
|
||||||
${KDE4_INCLUDES})
|
${KDE4_INCLUDES})
|
||||||
|
|
||||||
set (CMAKE_CXX_FLAGS "-fexceptions")
|
|
||||||
set (extsysmon_engine_SRCS extsysmon.cpp)
|
set (extsysmon_engine_SRCS extsysmon.cpp)
|
||||||
|
|
||||||
# Now make sure all files get to the right place
|
# Now make sure all files get to the right place
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
#include "extsysmon.h"
|
#include "extsysmon.h"
|
||||||
#include <stdio.h>
|
|
||||||
#include <Plasma/DataContainer>
|
#include <Plasma/DataContainer>
|
||||||
|
|
||||||
|
#include <locale.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
||||||
: Plasma::DataEngine(parent, args)
|
: Plasma::DataEngine(parent, args)
|
||||||
{
|
{
|
||||||
Q_UNUSED(args)
|
Q_UNUSED(args)
|
||||||
|
|
||||||
|
QLocale::setDefault(QLocale::C);
|
||||||
|
setlocale (LC_ALL, "C");
|
||||||
|
|
||||||
setMinimumPollingInterval(333);
|
setMinimumPollingInterval(333);
|
||||||
|
|
||||||
@ -49,8 +55,6 @@ bool ExtendedSysMon::sourceRequestEvent(const QString &name)
|
|||||||
|
|
||||||
bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
||||||
{
|
{
|
||||||
QLocale::setDefault(QLocale::C);
|
|
||||||
|
|
||||||
FILE *f_out;
|
FILE *f_out;
|
||||||
QString key, out, tmp_out, value;
|
QString key, out, tmp_out, value;
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user