Commit d211050e authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fix WebView page

This patch add a proper WebView page
to the property editor.

Reviewed-by: Trust Me
parent 80f91c99
import Qt 4.7
import Bauhaus 1.0
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
GroupBox {
maximumHeight: 200;
finished: finishedNotify;
caption: qsTr("WebView")
id: webViewSpecifics;
layout: VerticalLayout {
QWidget {
layout: HorizontalLayout {
leftMargin: 0;
rightMargin: 0;
Label {
text: "Url"
}
LineEdit {
backendValue: backendValues.url
baseStateFlag: isBaseState;
}
}
}
IntEditor {
id: preferredWidth;
backendValue: backendValues.preferredWidth;
caption: qsTr("Preferred Width")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
id: webPageWidth;
backendValue: backendValues.preferredHeight;
caption: qsTr("Page Height")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
QWidget {
layout: HorizontalLayout {
Label {
minimumHeight: 20;
text: "Zoom Factor"
}
DoubleSpinBox {
id: zoomSpinBox;
minimumWidth: 60;
text: ""
backendValue: backendValues.zoomFactor;
minimum: 0.01
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
onBackendValueChanged: {
zoomSlider.value = backendValue.value * 10;
}
}
QSlider {
id: zoomSlider;
orientation: "Qt::Horizontal";
minimum: 1;
maximum: 100;
singleStep: 1;
onValueChanged: {
backendValues.zoomFactor.value = value / 10;
}
}
}
}
}
}
}
}
}
import Qt 4.7
import Bauhaus 1.0
import "../QtQuick/"
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
maximumHeight: 200;
finished: finishedNotify;
caption: qsTr("WebView")
id: webViewSpecifics;
layout: VerticalLayout {
QWidget {
layout: HorizontalLayout {
leftMargin: 0;
rightMargin: 0;
Label {
text: qsTr("Url")
}
LineEdit {
backendValue: backendValues.url
baseStateFlag: isBaseState;
}
}
}
QWidget {
layout: HorizontalLayout {
leftMargin: 0;
rightMargin: 0;
Label {
text: qsTr("Title")
}
LineEdit {
backendValue: backendValues.title
baseStateFlag: isBaseState;
}
}
}
IntEditor {
id: preferredWidth;
backendValue: backendValues.preferredWidth;
caption: qsTr("Pref Width")
toolTip: qsTr("Preferred Width")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
id: webPageWidth;
backendValue: backendValues.preferredHeight;
caption: qsTr("Pref Height")
toolTip: qsTr("Preferred Height")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Scale")
toolTip: qsTr("Contents Scale")
}
DoubleSpinBox {
id: zoomSpinBox;
minimumWidth: 60;
text: ""
backendValue: backendValues.contentsScale;
minimum: 0.01
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
onBackendValueChanged: {
zoomSlider.value = backendValue.value * 10;
}
}
QSlider {
id: zoomSlider;
orientation: "Qt::Horizontal";
minimum: 1;
maximum: 100;
singleStep: 1;
onValueChanged: {
backendValues.contentsScale.value = value / 10;
}
}
}
}
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment