|
|
|
@ -27,6 +27,11 @@ Rectangle {
@@ -27,6 +27,11 @@ Rectangle {
|
|
|
|
|
|
|
|
|
|
property AbstractButton lastClickedButton: null |
|
|
|
|
|
|
|
|
|
function simulateClick(buttonIndex) { |
|
|
|
|
toolStripColumn.children[buttonIndex].checked = true |
|
|
|
|
toolStripColumn.children[buttonIndex].clicked() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Ensure we don't get narrower than content |
|
|
|
|
property real _idealWidth: (ScreenTools.isMobile ? ScreenTools.minTouchPixels : ScreenTools.defaultFontPixelWidth * 8) + toolStripColumn.anchors.margins * 2 |
|
|
|
|
|
|
|
|
@ -73,7 +78,7 @@ Rectangle {
@@ -73,7 +78,7 @@ Rectangle {
|
|
|
|
|
checked: modelData.checked !== undefined ? modelData.checked : checked |
|
|
|
|
|
|
|
|
|
ButtonGroup.group: buttonGroup |
|
|
|
|
// Only drop pannel and toggleable are checkable |
|
|
|
|
// Only drop panel and toggleable are checkable |
|
|
|
|
checkable: modelData.dropPanelComponent !== undefined || (modelData.toggle !== undefined && modelData.toggle) |
|
|
|
|
|
|
|
|
|
onClicked: { |
|
|
|
|