1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

Display legal notice on screen center

This commit is contained in:
Christophe Dumez 2011-01-22 19:31:06 +00:00
parent d68b7fc9cb
commit 679c91435d

View File

@ -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