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