1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Fix create button text overflow and add tooltip

This commit is contained in:
Elias Steurer 2020-01-26 16:36:52 +01:00
parent a2cd405a60
commit 766edd5d01

View File

@ -1,4 +1,5 @@
import QtQuick 2.12
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtGraphicalEffects 1.0
Item {
@ -73,10 +74,15 @@ Item {
opacity: buttonActive ? 1 : .25
font.pointSize: 14
color: "gray"
wrapMode: Text.WrapAnywhere
maximumLineCount: 1
anchors {
left: imgIcon.right
leftMargin: 20
verticalCenter: parent.verticalCenter
right:parent.right
rightMargin: 40
}
}
Text {
@ -93,12 +99,16 @@ Item {
}
MouseArea {
id:ma
anchors.fill: parent
enabled: buttonActive
cursorShape: Qt.PointingHandCursor
onClicked: {
btnEmpty.clicked()
if(buttonActive)
btnEmpty.clicked()
}
hoverEnabled: true
ToolTip.visible: !buttonActive ? ma.containsMouse : false
ToolTip.text: qsTr("Not yet implemented. Stay tuned!")
}
}