Use RowLayout for the video, configure and about buttons

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

REVIEW: 114432
remotes/origin/Plasma/5.0
Martin Gräßlin 12 years ago
parent 9e00284158
commit 5f1e8ec2bd
  1. 48
      kcmkwin/kwincompositing/qml/Effect.qml

@ -182,32 +182,32 @@ Item {
}
}
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"
onClicked: {
effectConfig.openConfig(model.NameRole);
RowLayout {
anchors.right: parent.right
Button {
id: videoButton
visible: model.VideoRole.toString() !== ""
iconName: "video"
onClicked: videoItem.showHide()
}
Button {
id: configureButton
visible: effectConfig.effectUiConfigExists(model.ServiceNameRole)
enabled: effectStatusCheckBox.checked
iconName: "configure"
onClicked: {
effectConfig.openConfig(model.NameRole);
}
}
}
Button {
id: aboutButton
anchors.right: parent.right
iconName: "dialog-information"
onClicked: {
animationAbout.running = true;
animationAboutSpacing.running = true;
desc.wrapDescription();
Button {
id: aboutButton
iconName: "dialog-information"
onClicked: {
animationAbout.running = true;
animationAboutSpacing.running = true;
desc.wrapDescription();
}
}
}

Loading…
Cancel
Save