small cleanup and docs for Heading
This commit is contained in:
parent
774ff8fc6d
commit
83bc2d2fde
@ -23,7 +23,7 @@ Inherits:
|
|||||||
|
|
||||||
Imports:
|
Imports:
|
||||||
QtQuick 1.1
|
QtQuick 1.1
|
||||||
org.kde.plasma.components
|
org.kde.plasma.extras
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
This is a title label which uses the plasma theme.
|
This is a title label which uses the plasma theme.
|
||||||
@ -35,6 +35,9 @@ Properties:
|
|||||||
string text:
|
string text:
|
||||||
The most important property is "text", which applies to the text property of Label
|
The most important property is "text", which applies to the text property of Label
|
||||||
For the other ones see Plasma Component's Label or QML primitive Text element
|
For the other ones see Plasma Component's Label or QML primitive Text element
|
||||||
|
int level:
|
||||||
|
The level determines how big the section header is display, values between 1 (big)
|
||||||
|
and 5 (small) are accepted
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
See Plasma Component's Label and primitive QML Text element
|
See Plasma Component's Label and primitive QML Text element
|
||||||
@ -64,13 +67,6 @@ Label {
|
|||||||
} else {
|
} else {
|
||||||
s = n + ((5-level)*2)
|
s = n + ((5-level)*2)
|
||||||
}
|
}
|
||||||
print(" font size for level: " + l + " is " + s + " basePointSize " + n);
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
onLevelChanged: {
|
|
||||||
print("level changed: " + level);
|
|
||||||
font.pointSize = headerPointSize(level)
|
|
||||||
anchors.topMargin = level * 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user