From acfe0064edb383a21fb5a8e4e332bde412546795 Mon Sep 17 00:00:00 2001 From: "R.P" Date: Wed, 3 Sep 2014 13:34:20 +0200 Subject: [PATCH] fixed wrong display of metakeydeletebutton when built with cmake instead of qmake --- qml/ButtonRow.qml | 2 +- qml/NewMetaKey.qml | 13 +++++++++++-- qml/WizardTemplate.qml | 2 +- qml/icons/application-exit.png | Bin 842 -> 1760 bytes 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/qml/ButtonRow.qml b/qml/ButtonRow.qml index b68ffc87038..6104a28436d 100644 --- a/qml/ButtonRow.qml +++ b/qml/ButtonRow.qml @@ -1,7 +1,7 @@ import QtQuick 2.2 import QtQuick.Controls 1.1 import QtQuick.Window 2.1 -import QtQuick.Controls.Styles 1.2 +import QtQuick.Controls.Styles 1.1 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.1 diff --git a/qml/NewMetaKey.qml b/qml/NewMetaKey.qml index 09927d2b565..34cdefb4adc 100644 --- a/qml/NewMetaKey.qml +++ b/qml/NewMetaKey.qml @@ -5,7 +5,8 @@ import QtQuick.Controls.Styles 1.1 Item { id: metaInfoItem - width: metaArea.width - 3*defaultMargins + + width: parent.width height: metaNameField.height property alias metaNameField: metaNameField @@ -29,7 +30,15 @@ Item { } Button { id:deleteMetaButton - iconSource: "icons/application-exit.png" + + style: ButtonStyle { + background: Image { + anchors.centerIn: parent + height: metaNameField.height + width: height + source: "icons/application-exit.png" + } + } onClicked: { qmlMetaKeyModel.remove(index)// remove the visual item diff --git a/qml/WizardTemplate.qml b/qml/WizardTemplate.qml index e8aaa0b0fd3..073bc3a7010 100644 --- a/qml/WizardTemplate.qml +++ b/qml/WizardTemplate.qml @@ -1,5 +1,5 @@ import QtQuick 2.2 -import QtQuick.Controls 1.2 +import QtQuick.Controls 1.1 import QtQuick.Window 2.1 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.1 diff --git a/qml/icons/application-exit.png b/qml/icons/application-exit.png index 4839c614294e7f16637751bdfd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