4
#include <QApplication>
5
#include <QDesktopWidget>
7
#include <lightdm-qt-0/lightdm/LdmGreeter>
9
#include "loginprompt.h"
16
QRect screen = QApplication::desktop()->rect();
19
QLabel *background = new QLabel(this);
21
//TODO load this from the config file in order to test that works.
22
background->setPixmap(QPixmap("/usr/share/wallpapers/Horos/contents/images/1920x1200.png"));
24
LdmGreeter* greeter = new LdmGreeter(this);
25
greeter->connectToServer();
27
LoginPrompt* loginPrompt = new LoginPrompt(greeter, this);
28
loginPrompt->move(this->width()/2 - loginPrompt->width()/2, this->height()/2 - loginPrompt->height()/2);
29
loginPrompt->setAutoFillBackground(true);
31
Panel* panel = new Panel(greeter, this);
32
panel->setGeometry(QRect(QPoint(0, screen.height() - panel->height()), screen.bottomRight()));
33
panel->setAutoFillBackground(true);