mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-09 20:05:51 +00:00
Fixed locale
This commit is contained in:
@ -1,11 +1,17 @@
|
||||
#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);
|
||||
|
||||
@ -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;
|
||||
|
Reference in New Issue
Block a user