mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
Merge pull request #1827 from defnax/Login-dialog-centered
Put the Login Dialog in the screen center of the window
This commit is contained in:
commit
44f346a0a4
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include <QDesktopWidget>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
@ -46,6 +47,10 @@ StartDialog::StartDialog(QWidget *parent)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
Settings->loadWidgetInformation(this);
|
Settings->loadWidgetInformation(this);
|
||||||
|
|
||||||
|
/* Put the Login dialog in the screen center */
|
||||||
|
const QRect screen = QApplication::desktop()->screenGeometry();
|
||||||
|
this->move( screen.center() - this->rect().center() );
|
||||||
|
|
||||||
/* get all available pgp private certificates....
|
/* get all available pgp private certificates....
|
||||||
* mark last one as default.
|
* mark last one as default.
|
||||||
|
Loading…
Reference in New Issue
Block a user