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: qsTr("Starting Monero daemon in %1 seconds").arg(countDown);
text: qsTr("Starting local node in %1 seconds").arg(countDown);
font.pixelSize: 18
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true

View file

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

View file

@ -67,7 +67,7 @@ Rectangle {
function open() {
// Center
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
}
show()

View file

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