Add Comunic icon

This commit is contained in:
Pierre HUBERT 2020-06-12 14:36:06 +02:00
parent f1d31d1638
commit c4b85dbf9c
6 changed files with 29 additions and 8 deletions

View File

@ -32,3 +32,6 @@ TRANSLATIONS += \
qnx: target.path = /tmp/$${TARGET}/bin qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target !isEmpty(target.path): INSTALLS += target
RESOURCES += \
ressources.qrc

View File

@ -2,7 +2,7 @@
#include "ui_loginwindow.h" #include "ui_loginwindow.h"
LoginWindow::LoginWindow(QWidget *parent) LoginWindow::LoginWindow(QWidget *parent)
: QWidget(parent) : QDialog(parent)
, ui(new Ui::LoginWindow) , ui(new Ui::LoginWindow)
{ {
ui->setupUi(this); ui->setupUi(this);

View File

@ -1,13 +1,18 @@
#ifndef LOGINWINDOW_H /**
#define LOGINWINDOW_H * Login window
*
* @author Pierre Hubert
*/
#include <QWidget> #pragma once
#include <QDialog>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace Ui { class LoginWindow; } namespace Ui { class LoginWindow; }
QT_END_NAMESPACE QT_END_NAMESPACE
class LoginWindow : public QWidget class LoginWindow : public QDialog
{ {
Q_OBJECT Q_OBJECT
@ -18,4 +23,3 @@ public:
private: private:
Ui::LoginWindow *ui; Ui::LoginWindow *ui;
}; };
#endif // LOGINWINDOW_H

View File

@ -6,14 +6,23 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>800</width> <width>337</width>
<height>600</height> <height>600</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>LoginWindow</string> <string>LoginWindow</string>
</property> </property>
<property name="windowIcon">
<iconset resource="ressources.qrc">
<normaloff>:/logo_large.png</normaloff>:/logo_large.png</iconset>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
</widget> </widget>
<resources/> <resources>
<include location="ressources.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>

BIN
logo_large.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

5
ressources.qrc Normal file
View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>logo_large.png</file>
</qresource>
</RCC>