mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 16:07:19 +00:00
* more correct sizes in the configuration interface
* remove additional debug information * increase limits for extscripts intervals to 10000 (fix #48)
This commit is contained in:
parent
15d88ee3ba
commit
7f4dfe1060
@ -49,14 +49,14 @@ Item {
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
QtControls.Label {
|
QtControls.Label {
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width / 3
|
width: parent.width * 2 / 5
|
||||||
horizontalAlignment: Text.AlignRight
|
horizontalAlignment: Text.AlignRight
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
text: i18n("Widget height, px")
|
text: i18n("Widget height, px")
|
||||||
}
|
}
|
||||||
QtControls.SpinBox {
|
QtControls.SpinBox {
|
||||||
id: widgetHeight
|
id: widgetHeight
|
||||||
width: parent.width * 2 / 3
|
width: parent.width * 3 / 5
|
||||||
minimumValue: 0
|
minimumValue: 0
|
||||||
maximumValue: 4096
|
maximumValue: 4096
|
||||||
stepSize: 50
|
stepSize: 50
|
||||||
@ -69,14 +69,14 @@ Item {
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
QtControls.Label {
|
QtControls.Label {
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width / 3
|
width: parent.width * 2 / 5
|
||||||
horizontalAlignment: Text.AlignRight
|
horizontalAlignment: Text.AlignRight
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
text: i18n("Widget width, px")
|
text: i18n("Widget width, px")
|
||||||
}
|
}
|
||||||
QtControls.SpinBox {
|
QtControls.SpinBox {
|
||||||
id: widgetWidth
|
id: widgetWidth
|
||||||
width: parent.width * 2 / 3
|
width: parent.width * 3 / 5
|
||||||
minimumValue: 0
|
minimumValue: 0
|
||||||
maximumValue: 4096
|
maximumValue: 4096
|
||||||
stepSize: 50
|
stepSize: 50
|
||||||
|
@ -107,7 +107,6 @@ Item {
|
|||||||
model: ["auto", "disable", "ati", "nvidia"]
|
model: ["auto", "disable", "ati", "nvidia"]
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
for (var i=0; i<model.length; i++) {
|
for (var i=0; i<model.length; i++) {
|
||||||
console.log(cfg_dataengine["GPUDEV"])
|
|
||||||
if (model[i] == cfg_dataengine["GPUDEV"]) {
|
if (model[i] == cfg_dataengine["GPUDEV"]) {
|
||||||
currentIndex = i;
|
currentIndex = i;
|
||||||
}
|
}
|
||||||
|
@ -259,6 +259,7 @@ Item {
|
|||||||
QtControls.TextArea {
|
QtControls.TextArea {
|
||||||
id: textPattern
|
id: textPattern
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
height: parent.height * 4 / 5
|
||||||
textFormat: TextEdit.PlainText
|
textFormat: TextEdit.PlainText
|
||||||
text: plasmoid.configuration.text
|
text: plasmoid.configuration.text
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class GraphicalItem;
|
class GraphicalItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
class GraphicalItem : public QDialog
|
class GraphicalItem : public QDialog
|
||||||
|
@ -192,7 +192,6 @@ QMap<QString, float> ExtQuotes::run()
|
|||||||
if (debug) qDebug() << PDEBUG;
|
if (debug) qDebug() << PDEBUG;
|
||||||
if (!m_active) return values;
|
if (!m_active) return values;
|
||||||
|
|
||||||
qDebug() << PDEBUG << times;
|
|
||||||
if (times == 1) {
|
if (times == 1) {
|
||||||
if (debug) qDebug() << PDEBUG << ":" << "Send request";
|
if (debug) qDebug() << PDEBUG << ":" << "Send request";
|
||||||
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
|
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
class QNetworkReply;
|
class QNetworkReply;
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class ExtQuotes;
|
class ExtQuotes;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ExtQuotes : public QDialog
|
class ExtQuotes : public QDialog
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class ExtScript;
|
class ExtScript;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ExtScript : public QDialog
|
class ExtScript : public QDialog
|
||||||
|
@ -216,6 +216,9 @@
|
|||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>10000</number>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class ExtUpgrade;
|
class ExtUpgrade;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ExtUpgrade : public QDialog
|
class ExtUpgrade : public QDialog
|
||||||
|
Loading…
Reference in New Issue
Block a user