|
|
@ -27,6 +27,7 @@
|
|
|
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
|
|
|
|
import QtQuick 2.0
|
|
|
|
import QtQuick 2.0
|
|
|
|
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
|
|
|
|
|
|
|
|
Item {
|
|
|
|
Item {
|
|
|
|
id: button
|
|
|
|
id: button
|
|
|
@ -41,6 +42,10 @@ Item {
|
|
|
|
property alias text: label.text
|
|
|
|
property alias text: label.text
|
|
|
|
signal clicked()
|
|
|
|
signal clicked()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Dynamic label width
|
|
|
|
|
|
|
|
width: label.contentWidth + 20
|
|
|
|
|
|
|
|
Layout.minimumWidth: 100
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
Rectangle {
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.left: parent.left
|
|
|
@ -78,13 +83,13 @@ Item {
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.right: parent.right
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
elide: Text.ElideRight
|
|
|
|
|
|
|
|
font.family: "Arial"
|
|
|
|
font.family: "Arial"
|
|
|
|
font.bold: true
|
|
|
|
font.bold: true
|
|
|
|
font.letterSpacing: -1
|
|
|
|
font.letterSpacing: -1
|
|
|
|
font.pixelSize: button.fontSize
|
|
|
|
font.pixelSize: button.fontSize
|
|
|
|
color: parent.textColor
|
|
|
|
color: parent.textColor
|
|
|
|
visible: parent.icon === ""
|
|
|
|
visible: parent.icon === ""
|
|
|
|
|
|
|
|
font.capitalization : Font.AllUppercase
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Image {
|
|
|
|
Image {
|
|
|
|