Should be a const ptr.
This commit is contained in:
parent
dbfbfcc837
commit
b1e5153ea5
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QCryptographicHash>
|
#include <QCryptographicHash>
|
||||||
|
|
||||||
DlgFilterGames::DlgFilterGames(const QMap<int, QString> &_allGameTypes, GamesProxyModel *_gamesProxyModel, QWidget *parent)
|
DlgFilterGames::DlgFilterGames(const QMap<int, QString> &_allGameTypes, const GamesProxyModel *_gamesProxyModel, QWidget *parent)
|
||||||
: QDialog(parent),
|
: QDialog(parent),
|
||||||
allGameTypes(_allGameTypes),
|
allGameTypes(_allGameTypes),
|
||||||
gamesProxyModel(_gamesProxyModel)
|
gamesProxyModel(_gamesProxyModel)
|
||||||
|
|
|
@ -23,7 +23,7 @@ private:
|
||||||
|
|
||||||
const QMap<int, QString> &allGameTypes;
|
const QMap<int, QString> &allGameTypes;
|
||||||
// This needs a const someplace
|
// This needs a const someplace
|
||||||
GamesProxyModel *gamesProxyModel;
|
const GamesProxyModel *gamesProxyModel;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The game type might contain special characters, so to use it in
|
* The game type might contain special characters, so to use it in
|
||||||
|
@ -33,7 +33,7 @@ private:
|
||||||
private slots:
|
private slots:
|
||||||
void actOk();
|
void actOk();
|
||||||
public:
|
public:
|
||||||
DlgFilterGames(const QMap<int, QString> &_allGameTypes, GamesProxyModel *_gamesProxyModel, QWidget *parent = 0);
|
DlgFilterGames(const QMap<int, QString> &_allGameTypes, const GamesProxyModel *_gamesProxyModel, QWidget *parent = 0);
|
||||||
|
|
||||||
bool getUnavailableGamesVisible() const;
|
bool getUnavailableGamesVisible() const;
|
||||||
void setUnavailableGamesVisible(bool _unavailableGamesVisible);
|
void setUnavailableGamesVisible(bool _unavailableGamesVisible);
|
||||||
|
|
Loading…
Reference in a new issue