diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-09-22 11:55:12 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-09-22 11:55:12 +0200 |
commit | 93cf29d4f47ac20cc0b1162284304b2e75bb777c (patch) | |
tree | b1500ccb00a252ddfdeda30845480542e1d9f575 /src/gui/mainwindow.cpp | |
parent | 331c5d069e79b387eb8964c546dde8109ccf4798 (diff) |
setting the window icon
Diffstat (limited to 'src/gui/mainwindow.cpp')
-rw-r--r-- | src/gui/mainwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <QFileDialog> #include <QTextEdit> #include <QTextBlock> +#include <QIcon> +#include <QPushButton> 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); |