Stylesheet support

This commit is contained in:
2016-02-19 16:02:00 +01:00
parent 8e999c7818
commit 2bb07716b9
4 changed files with 28 additions and 1 deletions
+7
View File
@@ -18,6 +18,13 @@ MainWindow::MainWindow(QWidget *parent) :
m_loginDialog = new LoginDialog(this);
QFile styleFile(":/style.css");
if (styleFile.open(QIODevice::ReadOnly | QIODevice::Text))
{
this->setStyleSheet(styleFile.readAll());
}
connect(m_loginDialog, &LoginDialog::accepted, [this]{
PermissionService service;
QSharedPointer<User> u = service.loadUser(m_loginDialog->login());