don't mix anchors and layouts

This commit is contained in:
Marco Martin 2014-07-25 11:20:26 +02:00
parent 7538c3292c
commit d29b3f051d
2 changed files with 2 additions and 1 deletions

View File

@ -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;
} }

View File

@ -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 {