proper icon margins
This commit is contained in:
parent
456db61aa0
commit
6209ca2527
@ -137,12 +137,14 @@ Item {
|
||||
Component {
|
||||
id: roundButtonComponent
|
||||
Item {
|
||||
id: roundButtonDelegate
|
||||
parent: delegate
|
||||
anchors.fill: parent
|
||||
property QtObject margins: QtObject {
|
||||
property int left: width/8
|
||||
property int top: width/8
|
||||
property int right: width/8
|
||||
property int bottom: width/8
|
||||
property int left: delegate.width/8
|
||||
property int top: delegate.width/8
|
||||
property int right: delegate.width/8
|
||||
property int bottom: delegate.width/8
|
||||
}
|
||||
Private.RoundShadow {
|
||||
id: roundShadow
|
||||
|
@ -81,7 +81,7 @@ Item {
|
||||
property QtObject defaultAction
|
||||
|
||||
|
||||
enabled: defaultAction==undefined||defaultAction.enabled
|
||||
enabled: defaultAction == undefined || defaultAction.enabled
|
||||
|
||||
implicitWidth: {
|
||||
if (label.paintedWidth == 0) {
|
||||
@ -163,6 +163,7 @@ Item {
|
||||
Component {
|
||||
id: buttonComponent
|
||||
Item {
|
||||
parent: delegate
|
||||
anchors.fill: parent
|
||||
property alias margins: surface.margins
|
||||
Private.ButtonShadow {
|
||||
@ -190,12 +191,14 @@ Item {
|
||||
Component {
|
||||
id: roundButtonComponent
|
||||
Item {
|
||||
id: roundButtonDelegate
|
||||
parent: delegate
|
||||
anchors.fill: parent
|
||||
property QtObject margins: QtObject {
|
||||
property int left: width/8
|
||||
property int top: width/8
|
||||
property int right: width/8
|
||||
property int bottom: width/8
|
||||
property int left: delegate.width/8
|
||||
property int top: delegate.width/8
|
||||
property int right: delegate.width/8
|
||||
property int bottom: delegate.width/8
|
||||
}
|
||||
Private.RoundShadow {
|
||||
id: roundShadow
|
||||
|
Loading…
Reference in New Issue
Block a user