moment/harmonyqml/components/sidePane/HToolButton.qml

18 lines
389 B
QML
Raw Normal View History

import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.4
import "../base" as Base
Base.HToolButton {
2019-03-26 09:29:46 +11:00
function toolBarIsBig() {
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
}