added window icon

This commit is contained in:
fourtf 2018-01-05 03:30:43 +01:00
parent 2fddc0ed8a
commit 898d1d26e7
3 changed files with 4 additions and 0 deletions

BIN
resources/images/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -40,6 +40,7 @@
<file>images/theme.svg</file> <file>images/theme.svg</file>
<file>images/accounts.svg</file> <file>images/accounts.svg</file>
<file>images/chatterino2.icns</file> <file>images/chatterino2.icns</file>
<file>images/icon.png</file>
</qresource> </qresource>
<qresource prefix="/qt/etc"> <qresource prefix="/qt/etc">
<file>qt.conf</file> <file>qt.conf</file>

View file

@ -4,6 +4,7 @@
#include "widgets/tooltipwidget.hpp" #include "widgets/tooltipwidget.hpp"
#include <QDebug> #include <QDebug>
#include <QIcon>
#include <QLayout> #include <QLayout>
#include <QtGlobal> #include <QtGlobal>
#include <boost/signals2.hpp> #include <boost/signals2.hpp>
@ -62,6 +63,8 @@ void BaseWidget::init()
void BaseWidget::initAsWindow() void BaseWidget::initAsWindow()
{ {
this->setWindowIcon(QIcon(":/images/icon.png"));
this->isWindow = true; this->isWindow = true;
#ifdef USEWINSDK #ifdef USEWINSDK