From 679c91435dde3309227297d1a90158957b2d312b Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 22 Jan 2011 19:31:06 +0000 Subject: [PATCH] Display legal notice on screen center --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 22db8eb58..3048279fe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -106,6 +106,8 @@ public: msgBox.setWindowTitle(tr("Legal notice")); msgBox.addButton(tr("Cancel"), QMessageBox::RejectRole); QAbstractButton *agree_button = msgBox.addButton(tr("I Agree"), QMessageBox::AcceptRole); + msgBox.show(); // Need to be shown or to moveToCenter does not work + msgBox.move(misc::screenCenter(&msgBox)); msgBox.exec(); if(msgBox.clickedButton() == agree_button) { // Save the answer