mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-15 06:45:48 +00:00
release 2.4.0
This commit is contained in:
@ -231,7 +231,7 @@ Item {
|
||||
QtControls.ComboBox {
|
||||
id: player
|
||||
width: parent.width * 3 / 5
|
||||
model: ["mpris", "mpd"]
|
||||
model: ["disable", "mpris", "mpd"]
|
||||
Component.onCompleted: {
|
||||
for (var i=0; i<model.length; i++) {
|
||||
if (model[i] == cfg_dataengine["PLAYER"]) {
|
||||
|
@ -641,13 +641,13 @@ void AWKeys::setDataBySource(const QString sourceName, const QVariantMap data,
|
||||
} else if (sourceName == QString("weather")) {
|
||||
foreach(QString key, data.keys()) {
|
||||
if (key.startsWith(QString("weatherId")))
|
||||
values[key] = QString("%1").arg(data[key].toInt());
|
||||
values[key] = QString("%1").arg(data[key].toInt(), 3);
|
||||
else if (key.startsWith(QString("weather")))
|
||||
values[key] = data[key].toString();
|
||||
else if (key.startsWith(QString("humidity")))
|
||||
values[key] = QString("%1").arg(data[key].toInt(), 3);
|
||||
else if (key.startsWith(QString("pressure")))
|
||||
values[key] = QString("%1").arg(data[key].toFloat(), 0, 'f', 1);
|
||||
values[key] = QString("%1").arg(data[key].toInt(), 4);
|
||||
else if (key.startsWith(QString("temperature")))
|
||||
values[key] = QString("%1").arg(
|
||||
temperature(data[key].toFloat(), params[QString("tempUnits")].toString()), 4, 'f', 1);
|
||||
|
Reference in New Issue
Block a user