* add preview function

* more comments inside
* variables renaming
* unite several lists to one hash
* add build_future definition checking to source code
This commit is contained in:
arcan1s
2015-09-15 00:02:59 +03:00
parent dddc3962a5
commit 95b6b2d9e9
18 changed files with 204 additions and 211 deletions

View File

@ -90,7 +90,7 @@ QString AWKeysAggregator::formater(const QVariant data, const QString key) const
case Quotes:
// first cast
output = QString("%1").arg(data.toDouble(), 0, 'f');
output = output.leftJustified(8, QLatin1Char(' '), true);
output = output.rightJustified(8, QLatin1Char(' '), true);
break;
case Temperature:
output = QString("%1").arg(temperature(data.toFloat()), 5, 'f', 1);
@ -140,7 +140,7 @@ QString AWKeysAggregator::formater(const QVariant data, const QString key) const
}
QStringList AWKeysAggregator::keyFromSource(const QString source) const
QStringList AWKeysAggregator::keysFromSource(const QString source) const
{
qCDebug(LOG_AW);
qCDebug(LOG_AW) << "Search for source" << source;
@ -502,7 +502,7 @@ QStringList AWKeysAggregator::registerSource(const QString source, const QString
m_formater[key] = NoFormat;
}
return keyFromSource(source);
return keysFromSource(source);
}