Widgets: renamed SizeMultiplier => SizeRatio. Enforced read-only on size property
This commit is contained in:
parent
269b2765cd
commit
1ab3463e6d
16 changed files with 27 additions and 23 deletions
|
|
@ -8,8 +8,9 @@ Rectangle {
|
|||
id: root
|
||||
|
||||
// Multiplier to control how large the button container is relative to Style.baseWidgetSize
|
||||
property real sizeMultiplier: 1.0
|
||||
property real size: Style.baseWidgetSize * sizeMultiplier * scaling
|
||||
property real sizeRatio: 1.0
|
||||
readonly property real size: Style.baseWidgetSize * sizeRatio * scaling
|
||||
|
||||
property string icon
|
||||
property string tooltipText
|
||||
property bool enabled: true
|
||||
|
|
@ -27,6 +28,9 @@ Rectangle {
|
|||
signal exited
|
||||
signal clicked
|
||||
|
||||
|
||||
|
||||
|
||||
implicitWidth: size
|
||||
implicitHeight: size
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue