PlasmaComponents
Go to the documentation of this file.
44 import org.kde.plasma.extras 0.1 as PlasmaExtras
51 property string message
52 property string acceptButtonText: i18n(
"Ok")
53 property
string rejectButtonText: i18n("Cancel")
55 onAcceptButtonTextChanged: internal.updateButtonTexts()
56 onRejectButtonTextChanged: internal.updateButtonTexts()
59 if (acceptButtonText && index == 0)
66 implicitWidth: Math.max(theme.defaultFont.mSize.width * 15, Math.min(label.implicitWidth+12, theme.defaultFont.mSize.width * 25))
68 implicitHeight: Math.min(theme.defaultFont.mSize.height * 12, label.paintedHeight + 6)
72 height: implicitHeight
74 PlasmaExtras.ScrollArea {
87 contentHeight: label.paintedHeight
88 flickableDirection: Flickable.VerticalFlick
89 interactive: contentHeight > height
97 width: flickable.width
99 wrapMode:
Text.WordWrap
101 horizontalAlignment: lineCount > 1 ?
Text.AlignLeft :
Text.AlignHCenter
110 function updateButtonTexts() {
111 var newButtonTexts = []
112 if (acceptButtonText)
113 newButtonTexts.push(acceptButtonText)
114 if (rejectButtonText)
115 newButtonTexts.push(rejectButtonText)
116 root.buttonTexts = newButtonTexts
This is a label which uses the plasma theme.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:02:47 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.