Use RowLayout for the video, configure and about buttons

Simplifies the code as we don't have to anchor the buttons.

REVIEW: 114432
This commit is contained in:
Martin Gräßlin 2013-12-13 12:24:18 +01:00
parent 9e00284158
commit 5f1e8ec2bd

View file

@ -182,16 +182,16 @@ Item {
}
}
RowLayout {
anchors.right: parent.right
Button {
id: videoButton
anchors.right: effectConfig.effectUiConfigExists(model.ServiceNameRole) ? configureButton.left : aboutButton.left
visible: model.VideoRole.toString() !== ""
iconName: "video"
onClicked: videoItem.showHide()
}
Button {
id: configureButton
anchors.right: aboutButton.left
visible: effectConfig.effectUiConfigExists(model.ServiceNameRole)
enabled: effectStatusCheckBox.checked
iconName: "configure"
@ -202,7 +202,6 @@ Item {
Button {
id: aboutButton
anchors.right: parent.right
iconName: "dialog-information"
onClicked: {
animationAbout.running = true;
@ -210,6 +209,7 @@ Item {
desc.wrapDescription();
}
}
}
EffectConfig {
id: effectConfig