mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-02 00:00:07 -08:00
* remove dependency on deprecated qt5 libraries for qt6 removes the use of qt6-5compat for builds replaces use of QRegExp with QRegularExpression fixes incorrect usage of QRegExp removes use of QTextCodec fixes incorrect usage of QTextCodec sets qtlinguist as a required component for qt6 * fix anchoredPattern not existing in qt 5.11
30 lines
648 B
C++
30 lines
648 B
C++
#ifndef SERVATRICE_SETTINGSCACHE_H
|
|
#define SERVATRICE_SETTINGSCACHE_H
|
|
|
|
#include <QList>
|
|
#include <QRegularExpression>
|
|
#include <QSettings>
|
|
#include <QString>
|
|
|
|
class SettingsCache : public QSettings
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
bool isPortableBuild;
|
|
|
|
public:
|
|
SettingsCache(const QString &fileName = "servatrice.ini",
|
|
QSettings::Format format = QSettings::IniFormat,
|
|
QObject *parent = 0);
|
|
static QString guessConfigurationPath();
|
|
QList<QRegularExpression> disallowedRegExp;
|
|
bool getIsPortableBuild() const
|
|
{
|
|
return isPortableBuild;
|
|
}
|
|
};
|
|
|
|
extern SettingsCache *settingsCache;
|
|
|
|
#endif
|