Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Evolve.pro
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ FORMS += widget.ui \
progressdialog.ui \
settingswidget.ui

CONFIG += c++11

QMAKE_CXXFLAGS_RELEASE += -O3 -flto -march=native -mmmx # Crashes on some computers
QMAKE_CXXFLAGS_DEBUG += -Og -g -march=native -mmmx # Crashes on some computers
QMAKE_CXXFLAGS_RELEASE += -std=c++11 -O3 -flto -march=native -mmmx # Crashes on some computers
QMAKE_CXXFLAGS_DEBUG += -std=c++11 -Og -g -march=native -mmmx # Crashes on some computers
#QMAKE_CXXFLAGS_DEBUG += -Og
2 changes: 1 addition & 1 deletion mutation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void Widget::reorderPoly(QVector<Poly>& newPolys, QImage &target)
break;
}
int dest = qrand()%newPolys.size();
Poly poly = newPolys.takeAt(source);
Poly poly = newPolys.at(source);
newPolys.insert(dest, poly);
redraw(target, newPolys);
optimizeShape(dest, newPolys);
Expand Down
3 changes: 2 additions & 1 deletion widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#include <QPen>
#include <QPainter>
#include <QRgb>
#include <QtConcurrent/QtConcurrent>
#include <QtConcurrentRun>
Copy link
Owner

@tux3 tux3 Feb 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't build for me using a freshly downloaded Qt 5.8 SDK on Linux, I have that header in QtConcurrent/QtConcurrentRun instead
What version of Qt are you compiling with?

#include <QTimer>
#include <ctime>

//#define TIME_FITNESS
Expand Down