forked from qt-creator/qt-creator
Replace 'var' by 'variant' in all Qml files
45ca7aff2c04c in qt.git replaces 'var' with 'variant' Reviewed-by: Thomas Hartmann
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import Qt 4.6
|
import Qt 4.6
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
property var label: "Button"
|
property variant label: "Button"
|
||||||
signal clicked
|
signal clicked
|
||||||
|
|
||||||
width: 75
|
width: 75
|
||||||
|
@@ -5,9 +5,9 @@ QWidget { //This is a special checkBox that does color coding for states
|
|||||||
|
|
||||||
id: checkBox;
|
id: checkBox;
|
||||||
|
|
||||||
property var backendValue;
|
property variant backendValue;
|
||||||
|
|
||||||
property var baseStateFlag;
|
property variant baseStateFlag;
|
||||||
property alias checkable: localCheckBox.checkable
|
property alias checkable: localCheckBox.checkable
|
||||||
property alias text: localLabel.text
|
property alias text: localLabel.text
|
||||||
|
|
||||||
|
@@ -4,14 +4,14 @@ import Bauhaus 1.0
|
|||||||
QExtGroupBox {
|
QExtGroupBox {
|
||||||
id: colorGroupBox
|
id: colorGroupBox
|
||||||
|
|
||||||
property var finished;
|
property variant finished;
|
||||||
property var backendColor
|
property variant backendColor
|
||||||
property var color: (backendColor === undefined || backendColor.value === undefined) ? "#000000" : backendColor.value
|
property variant color: (backendColor === undefined || backendColor.value === undefined) ? "#000000" : backendColor.value
|
||||||
property var oldMaximumHeight;
|
property variant oldMaximumHeight;
|
||||||
|
|
||||||
property var startupCollapse: selectionChanged === undefined ? false : selectionChanged;
|
property variant startupCollapse: selectionChanged === undefined ? false : selectionChanged;
|
||||||
property var firstTime: true;
|
property variant firstTime: true;
|
||||||
property var caption: ""
|
property variant caption: ""
|
||||||
smooth: false
|
smooth: false
|
||||||
|
|
||||||
onFinishedChanged: {
|
onFinishedChanged: {
|
||||||
@@ -32,14 +32,14 @@ QExtGroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
property var baseStateFlag: isBaseState
|
property variant baseStateFlag: isBaseState
|
||||||
onBaseStateFlagChanged: {
|
onBaseStateFlagChanged: {
|
||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
onBackendColorChanged: {
|
onBackendColorChanged: {
|
||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
property var isEnabled: colorGroupBox.enabled
|
property variant isEnabled: colorGroupBox.enabled
|
||||||
onIsEnabledChanged: {
|
onIsEnabledChanged: {
|
||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
@@ -147,7 +147,7 @@ QExtGroupBox {
|
|||||||
|
|
||||||
ColorBox {
|
ColorBox {
|
||||||
id: colorControl;
|
id: colorControl;
|
||||||
property var backendColor: colorGroupBox.color;
|
property variant backendColor: colorGroupBox.color;
|
||||||
color: colorGroupBox.color;
|
color: colorGroupBox.color;
|
||||||
onColorChanged: if (colorGroupBox.color != color) {
|
onColorChanged: if (colorGroupBox.color != color) {
|
||||||
colorGroupBox.backendColor.value = color;
|
colorGroupBox.backendColor.value = color;
|
||||||
|
@@ -3,10 +3,10 @@ import Bauhaus 1.0
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: colorScheme
|
id: colorScheme
|
||||||
property var disabledColor: "gray";
|
property variant disabledColor: "gray";
|
||||||
property var defaultColor: "white";
|
property variant defaultColor: "white";
|
||||||
property var boldTextColor: "#dedede";
|
property variant boldTextColor: "#dedede";
|
||||||
property var changedBaseColor: "#9999ff";
|
property variant changedBaseColor: "#9999ff";
|
||||||
property var changedStateColor: "#99ccff";
|
property variant changedStateColor: "#99ccff";
|
||||||
property var optionsColor: "white";
|
property variant optionsColor: "white";
|
||||||
}
|
}
|
||||||
|
@@ -5,8 +5,8 @@ QWidget {
|
|||||||
|
|
||||||
id: comboBox
|
id: comboBox
|
||||||
|
|
||||||
property var backendValue;
|
property variant backendValue;
|
||||||
property var baseStateFlag;
|
property variant baseStateFlag;
|
||||||
property alias enabled: box.enabled;
|
property alias enabled: box.enabled;
|
||||||
|
|
||||||
property alias items: box.items;
|
property alias items: box.items;
|
||||||
@@ -17,7 +17,7 @@ QWidget {
|
|||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
|
|
||||||
property var isEnabled: comboBox.enabled
|
property variant isEnabled: comboBox.enabled
|
||||||
onIsEnabledChanged: {
|
onIsEnabledChanged: {
|
||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
@@ -47,7 +47,7 @@ QWidget {
|
|||||||
layout: HorizontalLayout {
|
layout: HorizontalLayout {
|
||||||
QComboBox {
|
QComboBox {
|
||||||
id: box
|
id: box
|
||||||
property var backendValue: comboBox.backendValue
|
property variant backendValue: comboBox.backendValue
|
||||||
onCurrentTextChanged: { backendValue.value = currentText; evaluate(); }
|
onCurrentTextChanged: { backendValue.value = currentText; evaluate(); }
|
||||||
onItemsChanged: {
|
onItemsChanged: {
|
||||||
if (comboBox.backendValue.value == curentText)
|
if (comboBox.backendValue.value == curentText)
|
||||||
@@ -55,7 +55,7 @@ QWidget {
|
|||||||
box.setCurrentTextSilent(comboBox.backendValue.value);
|
box.setCurrentTextSilent(comboBox.backendValue.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
property var backendValueValue: comboBox.backendValue.value
|
property variant backendValueValue: comboBox.backendValue.value
|
||||||
onBackendValueValueChanged: {
|
onBackendValueValueChanged: {
|
||||||
if (comboBox.backendValue.value == curentText)
|
if (comboBox.backendValue.value == curentText)
|
||||||
return;
|
return;
|
||||||
|
@@ -5,8 +5,8 @@ QWidget { //This is a special doubleSpinBox that does color coding for states
|
|||||||
|
|
||||||
id: doubleSpinBox;
|
id: doubleSpinBox;
|
||||||
|
|
||||||
property var backendValue;
|
property variant backendValue;
|
||||||
property var baseStateFlag;
|
property variant baseStateFlag;
|
||||||
property alias singleStep: box.singleStep
|
property alias singleStep: box.singleStep
|
||||||
property alias minimum: box.minimum
|
property alias minimum: box.minimum
|
||||||
property alias maximum: box.maximum
|
property alias maximum: box.maximum
|
||||||
|
@@ -5,8 +5,8 @@ QWidget { //This is a special doubleSpinBox that does color coding for states
|
|||||||
|
|
||||||
id: doubleSpinBox;
|
id: doubleSpinBox;
|
||||||
|
|
||||||
property var backendValue;
|
property variant backendValue;
|
||||||
property var baseStateFlag;
|
property variant baseStateFlag;
|
||||||
property alias singleStep: box.singleStep
|
property alias singleStep: box.singleStep
|
||||||
property alias minimum: box.minimum
|
property alias minimum: box.minimum
|
||||||
property alias maximum: box.maximum
|
property alias maximum: box.maximum
|
||||||
|
@@ -8,7 +8,7 @@ QWidget {
|
|||||||
width: frame.width - 22
|
width: frame.width - 22
|
||||||
height: 40
|
height: 40
|
||||||
property bool active: false
|
property bool active: false
|
||||||
property var backendValue;
|
property variant backendValue;
|
||||||
|
|
||||||
|
|
||||||
onActiveChanged: {
|
onActiveChanged: {
|
||||||
|
@@ -8,8 +8,8 @@ GroupBox {
|
|||||||
|
|
||||||
layout: VerticalLayout{
|
layout: VerticalLayout{
|
||||||
|
|
||||||
property var effect: backendValues.effect
|
property variant effect: backendValues.effect
|
||||||
property var complexNode: effect.complexNode
|
property variant complexNode: effect.complexNode
|
||||||
|
|
||||||
QWidget {
|
QWidget {
|
||||||
maximumHeight: 40;
|
maximumHeight: 40;
|
||||||
@@ -19,8 +19,8 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
QComboBox {
|
QComboBox {
|
||||||
enabled: isBaseState;
|
enabled: isBaseState;
|
||||||
property var type: backendValues.effect.complexNode.type
|
property variant type: backendValues.effect.complexNode.type
|
||||||
property var dirty;
|
property variant dirty;
|
||||||
id: effectComboBox;
|
id: effectComboBox;
|
||||||
items : { [
|
items : { [
|
||||||
"None",
|
"None",
|
||||||
@@ -60,7 +60,7 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
}// QWidget
|
}// QWidget
|
||||||
|
|
||||||
property var properties: complexNode == null ? null : complexNode.properties
|
property variant properties: complexNode == null ? null : complexNode.properties
|
||||||
|
|
||||||
QWidget {
|
QWidget {
|
||||||
minimumHeight: 20;
|
minimumHeight: 20;
|
||||||
@@ -101,7 +101,7 @@ GroupBox {
|
|||||||
visible: effectComboBox.currentText == "Colorize";
|
visible: effectComboBox.currentText == "Colorize";
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
|
|
||||||
property var colorProp: properties == null ? null : properties.color
|
property variant colorProp: properties == null ? null : properties.color
|
||||||
|
|
||||||
|
|
||||||
ColorLabel {
|
ColorLabel {
|
||||||
|
@@ -4,7 +4,7 @@ import Bauhaus 1.0
|
|||||||
QToolButton {
|
QToolButton {
|
||||||
id: extendedFunctionButton
|
id: extendedFunctionButton
|
||||||
|
|
||||||
property var backendValue
|
property variant backendValue
|
||||||
|
|
||||||
function setIcon() {
|
function setIcon() {
|
||||||
if (backendValue == null)
|
if (backendValue == null)
|
||||||
|
@@ -6,9 +6,9 @@ QFrame {
|
|||||||
focusPolicy: "Qt::NoFocus"
|
focusPolicy: "Qt::NoFocus"
|
||||||
id: extendedSwitches;
|
id: extendedSwitches;
|
||||||
property bool active: false;
|
property bool active: false;
|
||||||
property var backendValue;
|
property variant backendValue;
|
||||||
styleSheetFile: "switch.css";
|
styleSheetFile: "switch.css";
|
||||||
property var specialModeIcon;
|
property variant specialModeIcon;
|
||||||
specialModeIcon: "images/standard.png";
|
specialModeIcon: "images/standard.png";
|
||||||
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
@@ -5,8 +5,8 @@ QWidget {
|
|||||||
id: fontComboBox
|
id: fontComboBox
|
||||||
|
|
||||||
property alias currentFont: fontSelector.currentFont
|
property alias currentFont: fontSelector.currentFont
|
||||||
property var backendValue
|
property variant backendValue
|
||||||
property var baseStateFlag;
|
property variant baseStateFlag;
|
||||||
property alias enabled: fontSelector.enabled
|
property alias enabled: fontSelector.enabled
|
||||||
|
|
||||||
onBaseStateFlagChanged: {
|
onBaseStateFlagChanged: {
|
||||||
@@ -17,7 +17,7 @@ QWidget {
|
|||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
|
|
||||||
property var isEnabled: fontComboBox.enabled
|
property variant isEnabled: fontComboBox.enabled
|
||||||
onIsEnabledChanged: {
|
onIsEnabledChanged: {
|
||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ QWidget {
|
|||||||
id: fontSelector
|
id: fontSelector
|
||||||
|
|
||||||
currentFont.family: backendValue.value
|
currentFont.family: backendValue.value
|
||||||
property var fontFamily: currentFont.family
|
property variant fontFamily: currentFont.family
|
||||||
onFontFamilyChanged: {
|
onFontFamilyChanged: {
|
||||||
if (backendValue === undefined)
|
if (backendValue === undefined)
|
||||||
return;
|
return;
|
||||||
|
@@ -4,7 +4,7 @@ import Bauhaus 1.0
|
|||||||
GroupBox {
|
GroupBox {
|
||||||
id: fontGroupBox
|
id: fontGroupBox
|
||||||
caption: qsTr("Font")
|
caption: qsTr("Font")
|
||||||
property var showStyle: false
|
property variant showStyle: false
|
||||||
|
|
||||||
layout: VerticalLayout {
|
layout: VerticalLayout {
|
||||||
|
|
||||||
|
@@ -4,11 +4,11 @@ import Bauhaus 1.0
|
|||||||
QExtGroupBox {
|
QExtGroupBox {
|
||||||
id: groupBox;
|
id: groupBox;
|
||||||
|
|
||||||
property var finished;
|
property variant finished;
|
||||||
|
|
||||||
property var caption;
|
property variant caption;
|
||||||
|
|
||||||
property var oldMaximumHeight;
|
property variant oldMaximumHeight;
|
||||||
|
|
||||||
onFinishedChanged: {
|
onFinishedChanged: {
|
||||||
checkBox.raise();
|
checkBox.raise();
|
||||||
|
@@ -4,11 +4,11 @@ import Bauhaus 1.0
|
|||||||
QExtGroupBox {
|
QExtGroupBox {
|
||||||
id: groupBoxOption;
|
id: groupBoxOption;
|
||||||
|
|
||||||
property var finished;
|
property variant finished;
|
||||||
|
|
||||||
property var caption;
|
property variant caption;
|
||||||
|
|
||||||
property var oldMaximumHeight;
|
property variant oldMaximumHeight;
|
||||||
|
|
||||||
onFinishedChanged: {
|
onFinishedChanged: {
|
||||||
CheckBox.raise();
|
CheckBox.raise();
|
||||||
|
@@ -4,14 +4,14 @@ import Bauhaus 1.0
|
|||||||
QWidget {
|
QWidget {
|
||||||
id: intEditor;
|
id: intEditor;
|
||||||
|
|
||||||
property var backendValue;
|
property variant backendValue;
|
||||||
property var baseStateFlag;
|
property variant baseStateFlag;
|
||||||
|
|
||||||
property var caption;
|
property variant caption;
|
||||||
|
|
||||||
property var maximumValue: 99
|
property variant maximumValue: 99
|
||||||
property var minimumValue: 0
|
property variant minimumValue: 0
|
||||||
property var step: 1
|
property variant step: 1
|
||||||
property bool slider: true
|
property bool slider: true
|
||||||
property alias alignment: label.alignment
|
property alias alignment: label.alignment
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ QWidget {
|
|||||||
intEditor.backendValue === null)
|
intEditor.backendValue === null)
|
||||||
? null : intEditor.backendValue;
|
? null : intEditor.backendValue;
|
||||||
|
|
||||||
property var backendValueValue: (intEditor.backendValue === undefined ||
|
property variant backendValueValue: (intEditor.backendValue === undefined ||
|
||||||
intEditor.backendValue === null)
|
intEditor.backendValue === null)
|
||||||
? null : intEditor.backendValue.value;
|
? null : intEditor.backendValue.value;
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@ GroupBox {
|
|||||||
id: layout;
|
id: layout;
|
||||||
enabled: anchorBackend.hasParent;
|
enabled: anchorBackend.hasParent;
|
||||||
|
|
||||||
property var targetLabelWidth: 90 - 20 - 26
|
property variant targetLabelWidth: 90 - 20 - 26
|
||||||
property int leftMarginMargin: 16
|
property int leftMarginMargin: 16
|
||||||
|
|
||||||
layout: VerticalLayout {
|
layout: VerticalLayout {
|
||||||
|
@@ -4,9 +4,9 @@ import Bauhaus 1.0
|
|||||||
QWidget {
|
QWidget {
|
||||||
id: lineEdit
|
id: lineEdit
|
||||||
|
|
||||||
property var backendValue
|
property variant backendValue
|
||||||
property alias enabled: lineEdit.enabled
|
property alias enabled: lineEdit.enabled
|
||||||
property var baseStateFlag
|
property variant baseStateFlag
|
||||||
property alias text: lineEditWidget.text
|
property alias text: lineEditWidget.text
|
||||||
property alias readOnly: lineEditWidget.readOnly
|
property alias readOnly: lineEditWidget.readOnly
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ QWidget {
|
|||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
|
|
||||||
property var isEnabled: lineEdit.enabled
|
property variant isEnabled: lineEdit.enabled
|
||||||
onIsEnabledChanged: {
|
onIsEnabledChanged: {
|
||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
|
@@ -43,7 +43,7 @@ GroupBox {
|
|||||||
text: ""
|
text: ""
|
||||||
id: opacitySpinBox;
|
id: opacitySpinBox;
|
||||||
backendValue: backendValues.opacity === undefined ? null : backendValues.opacity
|
backendValue: backendValues.opacity === undefined ? null : backendValues.opacity
|
||||||
property var backendValueValue: backendValues.opacity.value;
|
property variant backendValueValue: backendValues.opacity.value;
|
||||||
minimumWidth: 60;
|
minimumWidth: 60;
|
||||||
minimum: 0;
|
minimum: 0;
|
||||||
maximum: 1;
|
maximum: 1;
|
||||||
@@ -97,7 +97,7 @@ GroupBox {
|
|||||||
id: scaleSpinBox;
|
id: scaleSpinBox;
|
||||||
|
|
||||||
backendValue: backendValues.scale;
|
backendValue: backendValues.scale;
|
||||||
property var backendValueValue: backendValues.scale.value;
|
property variant backendValueValue: backendValues.scale.value;
|
||||||
minimumWidth: 60;
|
minimumWidth: 60;
|
||||||
minimum: 0.01
|
minimum: 0.01
|
||||||
maximum: 10
|
maximum: 10
|
||||||
|
@@ -4,7 +4,7 @@ import Bauhaus 1.0
|
|||||||
|
|
||||||
QScrollArea {
|
QScrollArea {
|
||||||
|
|
||||||
property var finished;
|
property variant finished;
|
||||||
|
|
||||||
onFinishedChanged: {
|
onFinishedChanged: {
|
||||||
}
|
}
|
||||||
|
@@ -4,11 +4,11 @@ import Bauhaus 1.0
|
|||||||
QWidget {
|
QWidget {
|
||||||
id: sliderWidget
|
id: sliderWidget
|
||||||
|
|
||||||
property var value
|
property variant value
|
||||||
property alias singleStep: localSlider.singleStep
|
property alias singleStep: localSlider.singleStep
|
||||||
property alias minimum: localSlider.minimum
|
property alias minimum: localSlider.minimum
|
||||||
property alias maximum: localSlider.maximum
|
property alias maximum: localSlider.maximum
|
||||||
property var backendValue
|
property variant backendValue
|
||||||
|
|
||||||
QSlider {
|
QSlider {
|
||||||
orientation: "Qt::Horizontal";
|
orientation: "Qt::Horizontal";
|
||||||
|
@@ -5,8 +5,8 @@ QWidget { //This is a special spinBox that does color coding for states
|
|||||||
|
|
||||||
id: spinBox;
|
id: spinBox;
|
||||||
|
|
||||||
property var backendValue;
|
property variant backendValue;
|
||||||
property var baseStateFlag;
|
property variant baseStateFlag;
|
||||||
property alias singleStep: box.singleStep;
|
property alias singleStep: box.singleStep;
|
||||||
property alias minimum: box.minimum
|
property alias minimum: box.minimum
|
||||||
property alias maximum: box.maximum
|
property alias maximum: box.maximum
|
||||||
@@ -22,7 +22,7 @@ QWidget { //This is a special spinBox that does color coding for states
|
|||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
|
|
||||||
property var isEnabled: spinBox.enabled
|
property variant isEnabled: spinBox.enabled
|
||||||
onIsEnabledChanged: {
|
onIsEnabledChanged: {
|
||||||
evaluate();
|
evaluate();
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,7 @@ import Bauhaus 1.0
|
|||||||
|
|
||||||
QFrame {
|
QFrame {
|
||||||
styleSheetFile: "switch.css";
|
styleSheetFile: "switch.css";
|
||||||
property var specialModeIcon;
|
property variant specialModeIcon;
|
||||||
specialModeIcon: "images/standard.png";
|
specialModeIcon: "images/standard.png";
|
||||||
maximumWidth: 300;
|
maximumWidth: 300;
|
||||||
minimumWidth: 300;
|
minimumWidth: 300;
|
||||||
|
@@ -57,7 +57,7 @@ GroupBox {
|
|||||||
id: scaleSpinBox;
|
id: scaleSpinBox;
|
||||||
|
|
||||||
backendValue: backendValues.scale;
|
backendValue: backendValues.scale;
|
||||||
property var backendValueValue: backendValues.scale.value;
|
property variant backendValueValue: backendValues.scale.value;
|
||||||
minimumWidth: 60;
|
minimumWidth: 60;
|
||||||
minimum: 0.01
|
minimum: 0.01
|
||||||
maximum: 10
|
maximum: 10
|
||||||
|
@@ -22,7 +22,7 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
QWidget {
|
QWidget {
|
||||||
property var isEnabled: isBaseState
|
property variant isEnabled: isBaseState
|
||||||
onIsEnabledChanged: idLineEdit.setStyleSheet("color: "+(isEnabled?scheme.defaultColor:scheme.disabledColor));
|
onIsEnabledChanged: idLineEdit.setStyleSheet("color: "+(isEnabled?scheme.defaultColor:scheme.disabledColor));
|
||||||
ColorScheme{ id:scheme }
|
ColorScheme{ id:scheme }
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@ GroupBox {
|
|||||||
text: ""
|
text: ""
|
||||||
id: opacitySpinBox;
|
id: opacitySpinBox;
|
||||||
backendValue: backendValues.opacity
|
backendValue: backendValues.opacity
|
||||||
property var backendValueValue: backendValues.opacity.value;
|
property variant backendValueValue: backendValues.opacity.value;
|
||||||
minimumWidth: 60;
|
minimumWidth: 60;
|
||||||
minimum: 0;
|
minimum: 0;
|
||||||
maximum: 1;
|
maximum: 1;
|
||||||
|
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: screen
|
id: screen
|
||||||
property var selectedFile
|
property variant selectedFile
|
||||||
signal openFile
|
signal openFile
|
||||||
source: "gradient.png"
|
source: "gradient.png"
|
||||||
|
|
||||||
|
@@ -36,7 +36,7 @@ Item {
|
|||||||
|
|
||||||
// public
|
// public
|
||||||
|
|
||||||
property var flickable
|
property variant flickable
|
||||||
|
|
||||||
function reset() {
|
function reset() {
|
||||||
handle.y = 0
|
handle.y = 0
|
||||||
|
@@ -36,13 +36,13 @@ Column {
|
|||||||
|
|
||||||
// public
|
// public
|
||||||
|
|
||||||
property var itemHighlight
|
property variant itemHighlight
|
||||||
|
|
||||||
property int entriesPerRow
|
property int entriesPerRow
|
||||||
property int cellWidth
|
property int cellWidth
|
||||||
property int cellHeight
|
property int cellHeight
|
||||||
|
|
||||||
property var currentItem: gridView.currentItem
|
property variant currentItem: gridView.currentItem
|
||||||
|
|
||||||
function expand() {
|
function expand() {
|
||||||
gridFrame.state = ""
|
gridFrame.state = ""
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import Qt 4.6
|
import Qt 4.6
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
property var flickable: this;
|
property variant flickable: this;
|
||||||
property int viewPosition: 0;
|
property int viewPosition: 0;
|
||||||
property int viewSize: ( flickable.width>=0 ? flickable.width : 0 );
|
property int viewSize: ( flickable.width>=0 ? flickable.width : 0 );
|
||||||
property int contentSize: ( flickable.contentWidth >= 0 ? flickable.contentWidth : 0 );
|
property int contentSize: ( flickable.contentWidth >= 0 ? flickable.contentWidth : 0 );
|
||||||
|
@@ -108,7 +108,7 @@ Rectangle {
|
|||||||
Loader {
|
Loader {
|
||||||
sourceComponent: underlay
|
sourceComponent: underlay
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
property var color: parent.isCurrentState?highlightColor:"#4F4F4F";
|
property variant color: parent.isCurrentState?highlightColor:"#4F4F4F";
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
@@ -251,7 +251,7 @@ Rectangle {
|
|||||||
id: underlay
|
id: underlay
|
||||||
Item {
|
Item {
|
||||||
anchors.fill:parent
|
anchors.fill:parent
|
||||||
property var color: parent.color
|
property variant color: parent.color
|
||||||
clip:true
|
clip:true
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width:parent.width
|
width:parent.width
|
||||||
@@ -322,7 +322,7 @@ Rectangle {
|
|||||||
Loader {
|
Loader {
|
||||||
sourceComponent: underlay
|
sourceComponent: underlay
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
property var color: "#4f4f4f"
|
property variant color: "#4f4f4f"
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@@ -394,7 +394,7 @@ Rectangle {
|
|||||||
Loader {
|
Loader {
|
||||||
sourceComponent: underlay
|
sourceComponent: underlay
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
property var color: "#4f4f4f"
|
property variant color: "#4f4f4f"
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@@ -460,7 +460,7 @@ Rectangle {
|
|||||||
Loader {
|
Loader {
|
||||||
sourceComponent: underlay
|
sourceComponent: underlay
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
property var color: "#4f4f4f"
|
property variant color: "#4f4f4f"
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@@ -6025,7 +6025,7 @@ void TestCore::loadTestFiles()
|
|||||||
QCOMPARE(rootModelNode.nodeListProperty("states").toModelNodeList().count(), 2);
|
QCOMPARE(rootModelNode.nodeListProperty("states").toModelNodeList().count(), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
QSKIP("See BAUHAUS-539 (component loading is broken)", SkipAll);
|
QSKIP("Fails because the text editor model doesn't know about components", SkipAll);
|
||||||
{ //usingbutton.qml
|
{ //usingbutton.qml
|
||||||
QFile file(manualTestPath + "/usingbutton.qml");
|
QFile file(manualTestPath + "/usingbutton.qml");
|
||||||
QVERIFY(file.open(QIODevice::ReadOnly | QIODevice::Text));
|
QVERIFY(file.open(QIODevice::ReadOnly | QIODevice::Text));
|
||||||
|
@@ -12,32 +12,32 @@ Item {
|
|||||||
function opacity() {}
|
function opacity() {}
|
||||||
function visible() {}
|
function visible() {}
|
||||||
}
|
}
|
||||||
property var x: "wrong";
|
property variant x: "wrong";
|
||||||
property var y: "wrong";
|
property variant y: "wrong";
|
||||||
property var z: "wrong";
|
property variant z: "wrong";
|
||||||
property var opacity: "wrong";
|
property variant opacity: "wrong";
|
||||||
property var visible: "wrong";
|
property variant visible: "wrong";
|
||||||
Item {
|
Item {
|
||||||
id: y
|
id: y
|
||||||
property var x: "wrong";
|
property variant x: "wrong";
|
||||||
property var y: "wrong";
|
property variant y: "wrong";
|
||||||
property var z: "wrong";
|
property variant z: "wrong";
|
||||||
property var opacity: "wrong";
|
property variant opacity: "wrong";
|
||||||
property var visible: "wrong";
|
property variant visible: "wrong";
|
||||||
Item {
|
Item {
|
||||||
id: z
|
id: z
|
||||||
property var x: "wrong";
|
property variant x: "wrong";
|
||||||
property var y: "wrong";
|
property variant y: "wrong";
|
||||||
property var z: "wrong";
|
property variant z: "wrong";
|
||||||
property var opacity: "wrong";
|
property variant opacity: "wrong";
|
||||||
property var visible: "wrong";
|
property variant visible: "wrong";
|
||||||
Item {
|
Item {
|
||||||
id: opacity
|
id: opacity
|
||||||
property var x: "wrong";
|
property variant x: "wrong";
|
||||||
property var y: "wrong";
|
property variant y: "wrong";
|
||||||
property var z: "wrong";
|
property variant z: "wrong";
|
||||||
property var opacity: "wrong";
|
property variant opacity: "wrong";
|
||||||
property var visible: "wrong";
|
property variant visible: "wrong";
|
||||||
Item {
|
Item {
|
||||||
id: visible
|
id: visible
|
||||||
}
|
}
|
||||||
|
@@ -5,10 +5,10 @@ import Qt 4.6
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: theRoot
|
id: theRoot
|
||||||
property var prop
|
property variant prop
|
||||||
Item {
|
Item {
|
||||||
id: theParent
|
id: theParent
|
||||||
property var prop
|
property variant prop
|
||||||
Item {
|
Item {
|
||||||
id: theChild
|
id: theChild
|
||||||
}
|
}
|
||||||
|
@@ -5,13 +5,13 @@ import Qt 4.6
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: theRoot
|
id: theRoot
|
||||||
property var prop
|
property variant prop
|
||||||
Item {
|
Item {
|
||||||
id: theParent
|
id: theParent
|
||||||
property var prop
|
property variant prop
|
||||||
Item {
|
Item {
|
||||||
id: theChild
|
id: theChild
|
||||||
property var prop
|
property variant prop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,25 +8,25 @@ Item {
|
|||||||
Script {
|
Script {
|
||||||
function x() {}
|
function x() {}
|
||||||
}
|
}
|
||||||
property var x: "wrong";
|
property variant x: "wrong";
|
||||||
property var y: "wrong";
|
property variant y: "wrong";
|
||||||
property var z: "wrong";
|
property variant z: "wrong";
|
||||||
Item {
|
Item {
|
||||||
id: theParent
|
id: theParent
|
||||||
Script {
|
Script {
|
||||||
function y() {}
|
function y() {}
|
||||||
}
|
}
|
||||||
property var x: "wrong";
|
property variant x: "wrong";
|
||||||
property var y: "wrong";
|
property variant y: "wrong";
|
||||||
property var z: "wrong";
|
property variant z: "wrong";
|
||||||
Item {
|
Item {
|
||||||
id: theChild
|
id: theChild
|
||||||
Script {
|
Script {
|
||||||
function z() {}
|
function z() {}
|
||||||
}
|
}
|
||||||
property var x: "wrong";
|
property variant x: "wrong";
|
||||||
property var y: "wrong";
|
property variant y: "wrong";
|
||||||
property var z: "wrong";
|
property variant z: "wrong";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user