don't mix anchors and layouts
This commit is contained in:
parent
7538c3292c
commit
d29b3f051d
@ -94,6 +94,7 @@ void IconItem::setSource(const QVariant &source)
|
|||||||
if (source.toString().isEmpty()) {
|
if (source.toString().isEmpty()) {
|
||||||
delete m_svgIcon;
|
delete m_svgIcon;
|
||||||
m_svgIcon = 0;
|
m_svgIcon = 0;
|
||||||
|
m_loadPixmapTimer.start();
|
||||||
emit validChanged();
|
emit validChanged();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -90,8 +90,8 @@ QtQuickControlStyle.ButtonStyle {
|
|||||||
visible: when
|
visible: when
|
||||||
Layout.minimumWidth: units.iconSizes.small
|
Layout.minimumWidth: units.iconSizes.small
|
||||||
Layout.maximumWidth: Layout.minimumWidth
|
Layout.maximumWidth: Layout.minimumWidth
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
height: width
|
height: width
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
|
|
||||||
source: Component {
|
source: Component {
|
||||||
PlasmaCore.SvgItem {
|
PlasmaCore.SvgItem {
|
||||||
|
Loading…
Reference in New Issue
Block a user