kickoff button fix

This commit is contained in:
Sam Hadow 2024-03-13 12:21:40 +01:00
parent c67558e03b
commit e56994955c

View File

@ -16,9 +16,9 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
import QtQuick 2.0
import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kirigami as Kirigami
import org.kde.plasma.components as PlasmaComponents
import org.kde.plasma.components 3.0 as PlasmaComponents
import org.kde.kquickcontrolsaddons 2.0
PlasmaComponents.TabButton {
@ -26,7 +26,6 @@ PlasmaComponents.TabButton {
objectName: "KickoffButton"
property string iconSource
property alias text: labelElement.text
implicitHeight: iconElement.height + labelElement.implicitHeight + iconElement.anchors.topMargin + labelElement.anchors.topMargin + labelElement.anchors.bottomMargin
@ -59,6 +58,7 @@ PlasmaComponents.TabButton {
right: parent.right
}
text: parent.text // Use the text property of the TabButton directly
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight
wrapMode: Text.WordWrap