Skip to content

Commit

Permalink
fixed wrong display of metakeydeletebutton when built with cmake instead
Browse files Browse the repository at this point in the history
of qmake
  • Loading branch information
0003088 committed Sep 3, 2014
1 parent d6ba9fe commit acfe006
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qml/ButtonRow.qml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 11 additions & 2 deletions qml/NewMetaKey.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion qml/WizardTemplate.qml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Binary file modified qml/icons/application-exit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit acfe006

Please sign in to comment.