1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2016-04-30 10:54:07 +02:00
parent 5daacc0a22
commit 21e7c00f66
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@
#include <QLocale> #include <QLocale>
#include <QFileOpenEvent> #include <QFileOpenEvent>
#include "gui.h" #include "gui.h"
#include "icons.h"
#include "app.h" #include "app.h"
@ -30,7 +29,6 @@ App::~App()
void App::run() void App::run()
{ {
_gui->setWindowIcon(QIcon(QPixmap(APP_ICON)));
_gui->show(); _gui->show();
for (int i = 1; i < _argc; i++) for (int i = 1; i < _argc; i++)

View File

@ -86,6 +86,7 @@ GUI::GUI(QWidget *parent) : QMainWindow(parent)
widget->setLayout(layout); widget->setLayout(layout);
setCentralWidget(widget); setCentralWidget(widget);
setWindowIcon(QIcon(QPixmap(APP_ICON)));
setWindowTitle(APP_NAME); setWindowTitle(APP_NAME);
setUnifiedTitleAndToolBarOnMac(true); setUnifiedTitleAndToolBarOnMac(true);