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:
parent
9e00284158
commit
5f1e8ec2bd
1 changed files with 25 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue