mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 06:02:41 -04:00
Put the Login Dialog in the acreen center of the window
This commit is contained in:
parent
180cb7aeed
commit
cff0fad937
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include <QDesktopWidget>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -47,6 +48,10 @@ StartDialog::StartDialog(QWidget *parent)
|
||||||
|
|
||||||
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…
Add table
Add a link
Reference in a new issue