mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-08-29 03:39:57 +00:00
refactor: refresh shared library
This commit is contained in:
@ -55,18 +55,18 @@ public:
|
||||
return item ? item->run() : QVariantHash();
|
||||
}
|
||||
|
||||
static KSysGuard::SensorInfo *makeSensorInfo(const QString &_name, const QVariant::Type type,
|
||||
const KSysGuard::Unit unit = KSysGuard::UnitNone, const double min = 0,
|
||||
const double max = 0)
|
||||
static KSysGuard::SensorInfo *makeSensorInfo(const QString &_name, const QVariant::Type _type,
|
||||
const KSysGuard::Unit _unit = KSysGuard::UnitNone,
|
||||
const double _min = 0, const double _max = 0)
|
||||
{
|
||||
auto info = new KSysGuard::SensorInfo();
|
||||
info->name = _name;
|
||||
info->variantType = type;
|
||||
info->variantType = _type;
|
||||
|
||||
info->unit = unit;
|
||||
info->unit = _unit;
|
||||
|
||||
info->min = min;
|
||||
info->max = max;
|
||||
info->min = _min;
|
||||
info->max = _max;
|
||||
|
||||
return info;
|
||||
}
|
||||
|
Reference in New Issue
Block a user