From 93cf29d4f47ac20cc0b1162284304b2e75bb777c Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Sat, 22 Sep 2018 11:55:12 +0200 Subject: setting the window icon --- src/gui/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/mainwindow.cpp') diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 537a612..4525aef 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -14,6 +14,8 @@ #include #include #include +#include +#include int MainWindow::_numWindows = 0; @@ -24,6 +26,9 @@ MainWindow::MainWindow(QWidget *parent) : _windowId = _numWindows; _numWindows++; ui->setupUi(this); + + setWindowIcon(QIcon(":/images/logo.png")); + setAttribute(Qt::WA_DeleteOnClose, true); _tikzDocument = new TikzDocument(this); -- cgit v1.2.3