Commit 06f78eea authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Fix build on Qt 5.12 and a lot of QML anchors warnings

parent 23ce4009
......@@ -523,12 +523,12 @@ QmlBiggestInt Memory::absDelta (const QByteArray & path, const QmlBiggestInt dat
void Memory::handleError (const QByteArray & message) {
Manager::instance ().logError ("MEMORY", Q_NULLPTR, message);
m_bug = true;
#if (QT_VERSION >= 0x050500)
#if (QT_VERSION >= 0x050500 && QT_VERSION < 0x050C00)
QV8Engine::getV4 (qmlEngine (parent ()))->throwError (QLatin1String (message));
#elif (QT_VERSION >= 0x050200 && QT_VERSION < 0x050500)
QV8Engine::getV4 (qmlEngine (this))->currentContext ()->throwError (QLatin1String (message));
#else
ERRO << qPrintable (err);
ERRO << qPrintable (message);
#endif
}
......
......@@ -25,7 +25,7 @@ StretchColumnContainer {
handleSize: (Style.fontSizeNormal + Style.spacingSmall * 2);
implicitWidth: -1;
showTooltipWhenMoved: false;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { actuator.valRaw = value; }
Binding on value { value: (actuator ? actuator.valRaw : 0); }
......@@ -36,7 +36,7 @@ StretchColumnContainer {
decimals: 0;
minValue: (actuator ? actuator.minRaw : 0);
maxValue: (actuator ? actuator.maxRaw : 1);
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { actuator.valRaw = value; }
Binding on value { value: (actuator ? actuator.valRaw : 0); }
......@@ -50,7 +50,7 @@ StretchColumnContainer {
id: lblActuatorRawVal;
text: qsTr ("Raw value :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......@@ -84,7 +84,7 @@ StretchColumnContainer {
id: lblActuatorPercent;
text: qsTr ("Percent value :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......@@ -117,7 +117,7 @@ StretchColumnContainer {
id: lblActuatorPhySpeed;
text: qsTr ("Speed value :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......
......@@ -26,7 +26,7 @@ StretchColumnContainer {
handleSize: (Style.fontSizeNormal + Style.spacingSmall * 2);
implicitWidth: -1;
showTooltipWhenMoved: false;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { sensor.valPhy = value; }
Binding on value { value: (sensor ? sensor.valPhy : 0); }
......@@ -37,7 +37,7 @@ StretchColumnContainer {
decimals: (sensor ? sensor.decimals : 0);
minValue: (sensor ? Shared.intToFloat (sensor.minPhy, sensor.decimals) : 0);
maxValue: (sensor ? Shared.intToFloat (sensor.maxPhy, sensor.decimals) : 1);
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { sensor.valPhy = Shared.floatToInt (value, sensor.decimals); }
Binding on value { value: (sensor ? Shared.intToFloat (sensor.valPhy, sensor.decimals) : 0); }
......@@ -51,7 +51,7 @@ StretchColumnContainer {
id: lblSensorPhyVal;
text: qsTr ("Phy. value :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......@@ -92,7 +92,7 @@ StretchColumnContainer {
id: lblSensorPercent;
text: qsTr ("Percent value :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......@@ -132,7 +132,7 @@ StretchColumnContainer {
id: lblSensorRawVal;
text: qsTr ("Raw value :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......
......@@ -15,7 +15,7 @@ StretchColumnContainer {
TextLabel {
text: qsTr ("Applied value :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
CheckableBox {
size: Style.fontSizeBig;
......@@ -33,7 +33,7 @@ StretchColumnContainer {
: actuator.falseLabel)
: "");
font.family: Style.fontFixedName;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
}
......
......@@ -7,7 +7,7 @@ Row {
TextLabel {
text: (actuator ? (actuator.value ? actuator.trueLabel : actuator.falseLabel) : "");
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Circle {
size: (Style.spacingNormal * 2.0);
......@@ -20,7 +20,7 @@ Row {
width: Style.lineSize;
color: Style.colorBorder;
}
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
property DigitalActuator actuator : null;
......
......@@ -15,7 +15,7 @@ StretchColumnContainer {
TextLabel {
text: qsTr ("Value :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
CheckableBox {
size: Style.fontSizeBig;
......@@ -24,7 +24,7 @@ StretchColumnContainer {
&& (sensor.sourceLink.detached
|| sensor.sourceLink.reversed))
|| !sensor.sourceLink));
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { sensor.value = value; }
Binding on value { value: (sensor ? sensor.value : false); }
......@@ -36,7 +36,7 @@ StretchColumnContainer {
: sensor.falseLabel)
: "");
font.family: Style.fontFixedName;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
}
......
......@@ -7,7 +7,7 @@ Row {
TextLabel {
text: (sensor ? (sensor.value ? sensor.trueLabel : sensor.falseLabel) : "");
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Circle {
size: (Style.spacingNormal * 2.0);
......@@ -20,7 +20,7 @@ Row {
width: Style.lineSize;
color: Style.colorBorder;
}
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
MouseArea {
anchors.fill: parent;
......
......@@ -14,7 +14,7 @@ StretchRowContainer {
Stretcher {
implicitHeight: linkName.height;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
ClickableTextLabel {
id: linkName;
......@@ -22,20 +22,20 @@ StretchRowContainer {
emphasis: true;
font.family: Style.fontFixedName
anchors.right: parent.right;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onClicked: { insertCodeRequested (enumHelp.name); }
}
}
Stretcher {
implicitHeight: lblDescription.height;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
TextLabel {
id: lblDescription;
text: enumHelp.description;
wrapMode: Text.WrapAtWordBoundaryOrAnywhere;
font.pixelSize: Style.fontSizeSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
ExtraAnchors.horizontalFill: parent;
}
}
......
......@@ -15,7 +15,7 @@ StretchColumnContainer {
TextLabel {
text: qsTr ("State :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
CheckableBox {
size: Style.fontSizeBig;
......@@ -24,7 +24,7 @@ StretchColumnContainer {
&& (actuator.sourceLink.detached
|| actuator.sourceLink.reversed))
|| !actuator.sourceLink));
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { actuator.value = value; }
Binding on value { value: (actuator ? actuator.value : false); }
......@@ -36,7 +36,7 @@ StretchColumnContainer {
: "OFF")
: "");
font.family: Style.fontFixedName;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
}
......@@ -48,7 +48,7 @@ StretchColumnContainer {
id: lblActuatorRatedSpeed;
text: qsTr ("Rated speed :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......
......@@ -7,7 +7,7 @@ Row {
TextLabel {
text: (actuator ? Shared.format (actuator.valSpeed, actuator.decimals, actuator.unit) : "");
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Circle {
size: (Style.spacingNormal * 2.0);
......@@ -20,7 +20,7 @@ Row {
width: Style.lineSize;
color: Style.colorBorder;
}
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
property HybridActuator actuator : null;
......
......@@ -15,7 +15,7 @@ StretchColumnContainer {
TextLabel {
text: qsTr ("State :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
CheckableBox {
size: Style.fontSizeBig;
......@@ -24,7 +24,7 @@ StretchColumnContainer {
&& (sensor.sourceLink.detached
|| sensor.sourceLink.reversed))
|| !sensor.sourceLink));
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { sensor.valState = value; }
Binding on value { value: (sensor ? sensor.valState : false); }
......@@ -36,7 +36,7 @@ StretchColumnContainer {
: (sensor.invertState ? "High" : "Low"))
: "");
font.family: Style.fontFixedName;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
}
......@@ -48,7 +48,7 @@ StretchColumnContainer {
id: lblSensorPhyVal;
text: qsTr ("Phy. value :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......@@ -71,7 +71,7 @@ StretchColumnContainer {
id: lblSensorLowThreshold;
text: qsTr ("Low threshold :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......@@ -94,7 +94,7 @@ StretchColumnContainer {
id: lblSensorHighThreshold;
text: qsTr ("High threshold :");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { }
TextLabel {
......
......@@ -7,7 +7,7 @@ Row {
TextLabel {
text: (sensor ? Shared.format (sensor.valPhy, sensor.decimals, sensor.unit) : "");
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Circle {
size: (Style.spacingNormal * 2.0);
......@@ -20,7 +20,7 @@ Row {
width: Style.lineSize;
color: Style.colorBorder;
}
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
property HybridSensor sensor : null;
......
......@@ -23,7 +23,7 @@ StretchRowContainer {
? Style.colorError
: Style.colorLink)
: Style.colorBorder);
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onClicked: { link.detached = !link.detached; }
}
SvgIconLoader {
......@@ -34,7 +34,7 @@ StretchRowContainer {
color: Style.colorForeground;
visible: (link && link.source);
enabled: (link && link.enabled);
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
TextLabel {
id: lbl;
......@@ -42,7 +42,7 @@ StretchRowContainer {
enabled: (link && link.enabled);
emphasis: true;
font.pixelSize: Style.fontSizeSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
ClickableTextLabel {
text: (link && link.source ? link && link.source.path : "(N/A)");
......@@ -54,7 +54,7 @@ StretchRowContainer {
link.source.family === ObjectFamily.SENSOR ||
link.source.family === ObjectFamily.ACTUATOR));
font.pixelSize: Style.fontSizeSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onClicked: { Shared.highlightLinkedObject (link.source); }
}
}
......@@ -23,7 +23,7 @@ StretchRowContainer {
? Style.colorError
: Style.colorLink)
: Style.colorBorder);
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onClicked: { link.detached = !link.detached; }
}
SvgIconLoader {
......@@ -34,7 +34,7 @@ StretchRowContainer {
color: Style.colorForeground;
visible: (link && link.target);
enabled: (link && link.enabled);
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
TextLabel {
id: lbl;
......@@ -42,7 +42,7 @@ StretchRowContainer {
enabled: (link && link.enabled);
emphasis: true;
font.pixelSize: Style.fontSizeSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
ClickableTextLabel {
text: (link && link.target ? link.target.path : "(N/A)");
......@@ -54,7 +54,7 @@ StretchRowContainer {
link.target.family === ObjectFamily.SENSOR ||
link.target.family === ObjectFamily.ACTUATOR));
font.pixelSize: Style.fontSizeSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onClicked: { Shared.highlightLinkedObject (link.target); }
}
}
......@@ -96,7 +96,7 @@ StretchColumnContainer {
emphasis: true;
font.pixelSize: Style.fontSizeBig;
}
Line { implicitWidth: -1; anchors.verticalCenter: parent.verticalCenter; }
Line { implicitWidth: -1; anchors.verticalCenter: (parent ? parent.verticalCenter : undefined); }
}
TextLabel {
text: base.objectHelp.description;
......@@ -116,7 +116,7 @@ StretchColumnContainer {
emphasis: true;
font.pixelSize: Style.fontSizeBig;
}
Line { implicitWidth: -1; anchors.verticalCenter: parent.verticalCenter; }
Line { implicitWidth: -1; anchors.verticalCenter: (parent ? parent.verticalCenter : undefined); }
}
Repeater {
id: repeaterEnums;
......@@ -139,7 +139,7 @@ StretchColumnContainer {
emphasis: true;
font.pixelSize: Style.fontSizeBig;
}
Line { implicitWidth: -1; anchors.verticalCenter: parent.verticalCenter; }
Line { implicitWidth: -1; anchors.verticalCenter: (parent ? parent.verticalCenter : undefined); }
}
Repeater {
id: repeaterProperties;
......@@ -163,7 +163,7 @@ StretchColumnContainer {
emphasis: true;
font.pixelSize: Style.fontSizeBig;
}
Line { implicitWidth: -1; anchors.verticalCenter: parent.verticalCenter; }
Line { implicitWidth: -1; anchors.verticalCenter: (parent ? parent.verticalCenter : undefined); }
}
Repeater {
id: repeaterMethods;
......@@ -187,7 +187,7 @@ StretchColumnContainer {
emphasis: true;
font.pixelSize: Style.fontSizeBig;
}
Line { implicitWidth: -1; anchors.verticalCenter: parent.verticalCenter; }
Line { implicitWidth: -1; anchors.verticalCenter: (parent ? parent.verticalCenter : undefined); }
}
Repeater {
id: repeaterSignals;
......
......@@ -42,12 +42,12 @@ BorderedBackground {
id: layoutValPhyTable;
spacing: Style.spacingNormal;
anchors.margins: Style.spacingSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
ExtraAnchors.horizontalFill: parent;
TextLabel {
text: (phyVal ? phyVal.uid : "");
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
Rectangle {
z: -1;
......@@ -67,7 +67,7 @@ BorderedBackground {
TextLabel {
text: (phyVal ? phyVal.val.toFixed (2) : "");
visible: !editable;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
NumberBox {
id: editValPhy;
......@@ -76,7 +76,7 @@ BorderedBackground {
decimals: 2;
minValue: (phyVal ? phyVal.min : 0);
maxValue: (phyVal ? phyVal.max : 1);
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: {
base.valueEdited (value);
value = phyVal.val;
......
......@@ -21,13 +21,13 @@ BorderedBackground {
id: layoutIoTable;
spacing: Style.spacingNormal;
anchors.margins: Style.spacingSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
ExtraAnchors.horizontalFill: parent;
TextLabel {
text: (io ? io.uid : "");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
SvgIconLoader {
icon: (io && io.link && io.link.reversed
......@@ -36,7 +36,7 @@ BorderedBackground {
size: Style.fontSizeSmall;
color: Style.colorForeground;
visible: linkSource.visible;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
ClickableTextLabel {
id: linkSource;
......@@ -44,7 +44,7 @@ BorderedBackground {
? io.link.source.uid
: "");
visible: (text !== "");
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onClicked: {
Shared.highlightSensor = null;
Shared.highlightSensor = io.link.source;
......@@ -54,14 +54,14 @@ BorderedBackground {
TextLabel {
text: (io ? io.resolutionInPoints + " points" : "");
color: Style.colorBorder;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { implicitWidth: (Style.spacingBig * 3); }
NumberBox {
padding: Style.spacingSmall;
minValue: (io ? io.minRaw : 0);
maxValue: (io ? io.maxRaw : 1);
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { io.valRaw = value; }
Binding on value { value: (io ? io.valRaw : 0); }
......
......@@ -21,13 +21,13 @@ BorderedBackground {
id: layoutIoTable;
spacing: Style.spacingNormal;
anchors.margins: Style.spacingSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
ExtraAnchors.horizontalFill: parent;
TextLabel {
text: (io ? io.uid : "");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
SvgIconLoader {
icon: (io && io.link && io.link.reversed
......@@ -36,7 +36,7 @@ BorderedBackground {
size: Style.fontSizeSmall;
color: Style.colorForeground;
visible: linkTarget.visible;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
ClickableTextLabel {
id: linkTarget;
......@@ -44,7 +44,7 @@ BorderedBackground {
? io.link.target.uid
: "");
visible: (text !== "");
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onClicked: {
Shared.highlightActuator = null;
Shared.highlightActuator = io.link.target;
......@@ -54,14 +54,14 @@ BorderedBackground {
TextLabel {
text: (io ? io.resolutionInPoints + " points" : "");
color: Style.colorBorder;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
Stretcher { implicitWidth: (Style.spacingBig * 3); }
NumberBox {
padding: Style.spacingSmall;
minValue: (io ? io.minRaw : 0);
maxValue: (io ? io.maxRaw : 1);
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { io.valRaw = value; }
Binding on value { value: (io ? io.valRaw: 0); }
......
......@@ -21,13 +21,13 @@ BorderedBackground {
id: layoutIoTable;
spacing: Style.spacingNormal;
anchors.margins: Style.spacingSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
ExtraAnchors.horizontalFill: parent;
TextLabel {
text: (io ? io.uid : "");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
SvgIconLoader {
icon: (io && io.link && io.link.reversed
......@@ -36,7 +36,7 @@ BorderedBackground {
size: Style.fontSizeSmall;
color: Style.colorForeground;
visible: linkSource.visible;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
ClickableTextLabel {
id: linkSource;
......@@ -44,7 +44,7 @@ BorderedBackground {
? io.link.source.uid
: "");
visible: (text !== "");
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onClicked: {
Shared.highlightSensor = null;
Shared.highlightSensor = io.link.source;
......@@ -53,7 +53,7 @@ BorderedBackground {
Stretcher { }
CheckableBox {
size: Style.fontSizeBig;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { io.value = value; }
Binding on value { value: (io ? io.value : false); }
......
......@@ -21,13 +21,13 @@ BorderedBackground {
id: layoutIoTable;
spacing: Style.spacingNormal;
anchors.margins: Style.spacingSmall;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
ExtraAnchors.horizontalFill: parent;
TextLabel {
text: (io ? io.uid : "");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
SvgIconLoader {
icon: (io && io.link && io.link.reversed
......@@ -36,7 +36,7 @@ BorderedBackground {
size: Style.fontSizeSmall;
color: Style.colorForeground;
visible: linkTarget.visible;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
ClickableTextLabel {
id: linkTarget;
......@@ -44,7 +44,7 @@ BorderedBackground {
? io.link.target.uid
: "");
visible: (text !== "");
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onClicked: {
Shared.highlightActuator = null;
Shared.highlightActuator = io.link.target;
......@@ -54,7 +54,7 @@ BorderedBackground {
Stretcher { implicitWidth: (Style.spacingBig * 3); }
CheckableBox {
size: Style.fontSizeBig;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
onEdited: { io.value = value; }
Binding on value { value: (io ? io.value : false); }
......
......@@ -15,12 +15,12 @@ AbstractDelegateRoutine {
TextLabel {
text: (routineOnCanFrame ? routineOnCanFrame.uid : "");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
anchors.verticalCenter: (parent ? parent.verticalCenter : undefined);
}
TextLabel {
text: (routineOnCanFrame ? "(" + routineOnCanFrame.title + ")" : "");