fix popups positioning

This commit is contained in:
Jaquee 2017-08-20 22:23:22 +02:00
parent e324e160da
commit 4b871306e4
4 changed files with 8 additions and 16 deletions

View file

@ -90,7 +90,7 @@ Window {
} }
Text { Text {
text: qsTr("Starting Monero daemon in %1 seconds").arg(countDown); text: qsTr("Starting local node in %1 seconds").arg(countDown);
font.pixelSize: 18 font.pixelSize: 18
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -79,14 +79,6 @@ ListView {
} }
} }
StandardDialog {
id: detailsPopup
cancelVisible: false
okVisible: true
width:850
}
delegate: Rectangle { delegate: Rectangle {
id: delegate id: delegate
height: 144 height: 144
@ -111,10 +103,10 @@ ListView {
onClicked: { onClicked: {
var tx_key = currentWallet.getTxKey(hash) var tx_key = currentWallet.getTxKey(hash)
var tx_note = currentWallet.getUserNote(hash) var tx_note = currentWallet.getUserNote(hash)
detailsPopup.title = "Transaction details"; informationPopup.title = "Transaction details";
detailsPopup.content = buildTxDetailsString(hash,paymentId,tx_key,tx_note,destinations); informationPopup.content = buildTxDetailsString(hash,paymentId,tx_key,tx_note,destinations);
detailsPopup.open(); informationPopup.onCloseCallback = null
informationPopup.open();
} }
} }

View file

@ -67,7 +67,7 @@ Rectangle {
function open() { function open() {
// Center // Center
if(!isMobile) { if(!isMobile) {
root.x = appWindow.width/2 - root.width/2 root.x = parent.width/2 - root.width/2
root.y = screenHeight/2 - root.height/2 root.y = screenHeight/2 - root.height/2
} }
show() show()

View file

@ -1146,8 +1146,8 @@ ApplicationWindow {
id: splash id: splash
width: appWindow.width / 1.5 width: appWindow.width / 1.5
height: appWindow.height / 2 height: appWindow.height / 2
x: (appWindow.width - width) / 2 + appWindow.x x: (appWindow.width - width) / 2
y: (appWindow.height - height) / 2 + appWindow.y y: (appWindow.height - height) / 2
messageText: qsTr("Please wait...") messageText: qsTr("Please wait...")
} }