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
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
ressources.qrc

View File

@ -2,7 +2,7 @@
#include "ui_loginwindow.h"
LoginWindow::LoginWindow(QWidget *parent)
: QWidget(parent)
: QDialog(parent)
, ui(new Ui::LoginWindow)
{
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
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

View File

@ -6,14 +6,23 @@
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<width>337</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>LoginWindow</string>
</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>
<resources/>
<resources>
<include location="ressources.qrc"/>
</resources>
<connections/>
</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>