Compare commits

...

2 Commits

  1. BIN
      icons/app_icon.ico
  2. 1
      icons/icons.qrc
  3. 8
      src/main.cpp

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

@ -6,5 +6,6 @@
<file>pause.svg</file> <file>pause.svg</file>
<file>play.svg</file> <file>play.svg</file>
<file>refresh.svg</file> <file>refresh.svg</file>
<file>app_icon.ico</file>
</qresource> </qresource>
</RCC> </RCC>

@ -1,11 +1,7 @@
#include <QApplication> #include <QApplication>
#include <QSurfaceFormat> #include <QSurfaceFormat>
#include "MainWindow.h" #include "MainWindow.h"
#include <omp.h> #include <QIcon>
#include <chrono>
#include <iostream>
using namespace std::chrono;
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
QSurfaceFormat fmt = QSurfaceFormat::defaultFormat(); QSurfaceFormat fmt = QSurfaceFormat::defaultFormat();
@ -19,6 +15,8 @@ int main(int argc, char* argv[]) {
QApplication app(argc, argv); QApplication app(argc, argv);
MainWindow w; MainWindow w;
w.setWindowTitle("Pendulum Laboratory");
w.setWindowIcon(QIcon(":/icons/app_icon.ico"));
w.show(); w.show();
return QApplication::exec(); return QApplication::exec();

Loading…
Cancel
Save