Compare commits

...

2 Commits

@ -226,7 +226,7 @@ JAVADOC_BANNER = NO
# requiring an explicit \brief command for a brief description.)
# The default value is: NO.
QT_AUTOBRIEF = YES
QT_AUTOBRIEF = NO
# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
@ -498,7 +498,7 @@ NUM_PROC_THREADS = 1
# normally produced when WARNINGS is set to YES.
# The default value is: NO.
EXTRACT_ALL = NO
EXTRACT_ALL = YES
# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
# be included in the documentation.

@ -13,7 +13,8 @@ SOURCES += \
HEADERS += \
mainwindow.hpp \
samegame.hpp
samegame.hpp \
settings.hpp
FORMS += \
mainwindow.ui

@ -1,8 +1,6 @@
#include "mainwindow.hpp"
#include "ui_mainwindow.h"
extern std::unique_ptr<QSettings> settings;
void MainWindow::clearConnected(std::set<std::vector<int>> *connected) {
QString text = "\u2605";
int n = connected->size();

@ -17,6 +17,7 @@
#include <QTextStream>
#include "samegame.hpp"
#include "settings.hpp"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }

@ -1,7 +1,5 @@
#include "samegame.hpp"
extern std::unique_ptr<QSettings> settings;
void SameGame::initialiseGameMatrix(int rows, int columns) {
gameMatrix = std::vector<std::vector<QString>>();

@ -6,8 +6,9 @@
#include <QSettings>
#include <QString>
#include "settings.hpp"
/**
* \class SameGame
* \brief The SameGame class. Stores the underlying informations of the game grid and its colors. Provides the base game functionality of checking the neighbours of clicked cells.
* The update of the grid though gets triggered from the #MainWindow.
*/

@ -0,0 +1,8 @@
#ifndef SETTINGS_HPP
#define SETTINGS_HPP
#include <QSettings>
extern std::unique_ptr<QSettings> settings;
#endif // SETTINGS_HPP
Loading…
Cancel
Save