diff --git a/ComunicWatcher.pro b/ComunicWatcher.pro index 7828d8d..af00971 100644 --- a/ComunicWatcher.pro +++ b/ComunicWatcher.pro @@ -32,3 +32,6 @@ TRANSLATIONS += \ qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target + +RESOURCES += \ + ressources.qrc diff --git a/loginwindow.cpp b/loginwindow.cpp index 8c23382..787e8f1 100644 --- a/loginwindow.cpp +++ b/loginwindow.cpp @@ -2,7 +2,7 @@ #include "ui_loginwindow.h" LoginWindow::LoginWindow(QWidget *parent) - : QWidget(parent) + : QDialog(parent) , ui(new Ui::LoginWindow) { ui->setupUi(this); diff --git a/loginwindow.h b/loginwindow.h index 36373fd..026f387 100644 --- a/loginwindow.h +++ b/loginwindow.h @@ -1,13 +1,18 @@ -#ifndef LOGINWINDOW_H -#define LOGINWINDOW_H +/** + * Login window + * + * @author Pierre Hubert + */ -#include +#pragma once + +#include QT_BEGIN_NAMESPACE namespace Ui { class LoginWindow; } QT_END_NAMESPACE -class LoginWindow : public QWidget +class LoginWindow : public QDialog { Q_OBJECT @@ -18,4 +23,3 @@ public: private: Ui::LoginWindow *ui; }; -#endif // LOGINWINDOW_H diff --git a/loginwindow.ui b/loginwindow.ui index 0a3e872..1190a75 100644 --- a/loginwindow.ui +++ b/loginwindow.ui @@ -6,14 +6,23 @@ 0 0 - 800 + 337 600 LoginWindow + + + :/logo_large.png:/logo_large.png + + + false + - + + + diff --git a/logo_large.png b/logo_large.png new file mode 100644 index 0000000..64abb8f Binary files /dev/null and b/logo_large.png differ diff --git a/ressources.qrc b/ressources.qrc new file mode 100644 index 0000000..41e70ef --- /dev/null +++ b/ressources.qrc @@ -0,0 +1,5 @@ + + + logo_large.png + +