mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-09 20:05:51 +00:00
bump default gi configuration
Bump API version and add new parameters. Also: 1. Fix function combobox in configuration UI. 2. Drop datasource from time engine as well. 3. Small edit abstractdesources class
This commit is contained in:
@ -57,12 +57,14 @@ QVariant ExtSysMonAggregator::data(const QString source) const
|
||||
{
|
||||
qCDebug(LOG_ESM) << "Source" << source;
|
||||
|
||||
return hasSource(source) ? m_map[source]->data(source) : QVariant();
|
||||
return m_map[source]->data(source);
|
||||
}
|
||||
|
||||
|
||||
bool ExtSysMonAggregator::hasSource(const QString source) const
|
||||
{
|
||||
qCDebug(LOG_ESM) << "Source" << source;
|
||||
|
||||
return m_map.contains(source);
|
||||
}
|
||||
|
||||
@ -78,9 +80,7 @@ QVariantMap ExtSysMonAggregator::initialData(const QString source) const
|
||||
|
||||
QStringList ExtSysMonAggregator::sources() const
|
||||
{
|
||||
QStringList sorted = m_map.keys();
|
||||
sorted.sort();
|
||||
return sorted;
|
||||
return m_map.keys();
|
||||
}
|
||||
|
||||
|
||||
|
@ -88,7 +88,7 @@ void BatterySource::run()
|
||||
= (QString(acFile.readLine()).trimmed().toInt() == 1);
|
||||
acFile.close();
|
||||
|
||||
// batterites
|
||||
// batteries
|
||||
float currentLevel = 0.0;
|
||||
float fullLevel = 0.0;
|
||||
for (int i = 0; i < m_batteriesCount; i++) {
|
||||
|
Reference in New Issue
Block a user