40fbd5f13c
The rationale is to build simple tests which cover most combos of components Change-Id: I771a511eb3589c3815600697a800d4250e50175d
60 lines
1.2 KiB
QML
60 lines
1.2 KiB
QML
import QtQuick 2.0
|
|
|
|
import org.kde.plasma.components 2.0 as PlasmaComponents
|
|
import QtQuick.Controls 1.2
|
|
|
|
Rectangle
|
|
{
|
|
width: 500
|
|
height: 300
|
|
color: "white"
|
|
|
|
Flow {
|
|
anchors.fill: parent
|
|
anchors.margins: 20
|
|
spacing: 20
|
|
|
|
PlasmaComponents.Button {
|
|
iconSource: "list-remove"
|
|
text: "test"
|
|
}
|
|
PlasmaComponents.Button {
|
|
iconSource: "list-remove"
|
|
}
|
|
PlasmaComponents.Button {
|
|
text: "test"
|
|
}
|
|
|
|
PlasmaComponents.Button{
|
|
text: "test"
|
|
menu: Menu {
|
|
MenuItem {
|
|
text: "Cut"
|
|
shortcut: "Ctrl+X"
|
|
}
|
|
|
|
MenuItem {
|
|
text: "Copy"
|
|
shortcut: "Ctrl+C"
|
|
}
|
|
|
|
MenuItem {
|
|
text: "Paste"
|
|
shortcut: "Ctrl+V"
|
|
}
|
|
|
|
MenuSeparator { }
|
|
|
|
Menu {
|
|
title: "More Stuff"
|
|
|
|
MenuItem {
|
|
text: "Do Nothing"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|