diff options
author | Ken Moore <ken@pcbsd.org> | 2015-01-21 16:06:51 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-01-21 16:06:51 -0500 |
commit | 4f3c6813a31bf6d9a1fecd8c85d6163334199c0f (patch) | |
tree | ab8ab0b45fd4a80c1de93e0eb445d2c77dc14835 /lumina-config/AppDialog.h | |
parent | Tag version 0.8.1 of Lumina. (diff) | |
download | lumina-4f3c6813a31bf6d9a1fecd8c85d6163334199c0f.tar.gz lumina-4f3c6813a31bf6d9a1fecd8c85d6163334199c0f.tar.bz2 lumina-4f3c6813a31bf6d9a1fecd8c85d6163334199c0f.zip |
Also fix a bug in lumina-config where the app selection dialog needed to be centered on the screen.
Diffstat (limited to 'lumina-config/AppDialog.h')
-rw-r--r-- | lumina-config/AppDialog.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lumina-config/AppDialog.h b/lumina-config/AppDialog.h index a5143a4b..0ea9b93a 100644 --- a/lumina-config/AppDialog.h +++ b/lumina-config/AppDialog.h @@ -12,6 +12,9 @@ #include <QDialog> #include <QString> #include <QList> +#include <QPoint> +#include <QDesktopWidget> +#include <QCursor> #include <LuminaXDG.h> #include "ui_AppDialog.h" @@ -35,6 +38,8 @@ public: ui->comboBox->addItem( LXDG::findIcon(APPS[i].icon,"application-x-executable"), APPS[i].name ); } this->setWindowIcon( LXDG::findIcon("system-search","") ); + QPoint center = QApplication::desktop()->screenGeometry(QCursor::pos()).center(); + this->move(center.x()-(this->width()/2), center.y()-(this->height()/2) ); } ~AppDialog(){} |