2019-03-22 21:24:19 +11:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.4
|
2019-03-26 20:52:43 +11:00
|
|
|
import "../base" as Base
|
2019-03-22 21:24:19 +11:00
|
|
|
|
2019-03-26 20:52:43 +11:00
|
|
|
Base.HToolButton {
|
2019-03-26 09:29:46 +11:00
|
|
|
function toolBarIsBig() {
|
2019-03-26 18:19:55 +11:00
|
|
|
return sidePane.width >
|
2019-03-26 09:29:46 +11:00
|
|
|
Layout.minimumWidth * (toolBar.children.length - 2)
|
|
|
|
}
|
|
|
|
|
|
|
|
id: "button"
|
|
|
|
visible: toolBarIsBig()
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.minimumWidth: height
|
2019-03-22 21:24:19 +11:00
|
|
|
}
|