* 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:
arcan1s 2015-05-06 00:31:37 +03:00
parent 15d88ee3ba
commit 7f4dfe1060
9 changed files with 12 additions and 10 deletions

View File

@ -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

View File

@ -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;
} }

View File

@ -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
} }

View File

@ -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);

View File

@ -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>