summaryrefslogtreecommitdiff
path: root/quacker/graphicalreporter.cpp
AgeCommit message (Collapse)Author
2023-07-17Fix up std:: namespace hygiene.John Fultz
* Remove all uses of `using namespace std` from header files (although a few specific cases of things like `using std::vector` remain) * Move all existing uses of `using namespace std` in cpp files to after the header includes * Make coordinating changes so it builds again. Qt6 builds on Windows were breaking because of namespace collision between std::byte and some version of `byte` in one of Qt's namespaces. That breakage is now fixed. It would be good to systematically clean up all `using` declarations in header files to ensure nothing is leaking out, but that's for another time.
2023-07-16Make UTF8-encoding of QTextStream work in Qt5 and 6.John Fultz
QTextStream::setCodec() is no longer a thing in Qt6. Most of our call are to set the codec to UTF-8, which happens to be the default encoding in Qt6. So make a macro so this can compile in both Qt5 and Qt6.
2020-06-17Xcode compiler warnings.John Fultz
* Replace std::random_shuffle() with std::shuffle(). * Populate switch statements which were checking the Move enums, but not Move::PlaceError. * endl -> Qt::endl for QTextStream usage. * QString::SkipEmptyParts -> Qt::SkipEmptyParts * QLabel::pixmap() now takes Qt::ReturnByValue * Use QElapsedTimer where appropriate.
2019-02-04After discussion with Jason/John, add myself as a copyright holder.John Fultz
Also, extend copyright to 2019.
2017-08-02More Qt5 changes and cleanups.John Fultz
Now builds on Qt 5.9.1, and works on Mac, Windows, Linux.
2017-08-02Merge pull request #37 from gokceneraslan/qt55John Fultz
Port quackle to Qt 5.5
2016-08-02Fixes to allow bad endgames to be loaded from GCGs.John Fultz
Not perfect, but it now does a decent job of not corrupting GCGs when it loads one where players have messed up tile counts/drawing in the end-game. It also tries to annotate these for the player and in any GCG file that's round-tripped. Also, a lot of C++11-izing of ranged iterators.
2016-07-03Fix problems with "ex n" where n is a number.John Fultz
Found a crash where you enter "ex 4" twice, and it would crash. This led me to look up how this was implemented, and it wasn't very robust. It also didn't save properly in the GCG. So I created a new move type which I called a BlindExchange and implemented it throughout the system.
2016-01-12Port Quackle to Qt 5.5Gökçen Eraslan
2015-08-24Fix encoding of HTML output.John Fultz
Should be UTF8. Thanks to Vlado Makys for pointing this out.
2014-09-02Change GPL file headers to v3.John Fultz
Not a very interesting commit...only changes in comments.
2013-08-25Initial git commit.Jason Katz-Brown