feat: allow specifying fallbacks to INI files

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-10-18 11:00:28 -03:00
parent 2cf1ab7ec5
commit 801e7da5ee
2 changed files with 26 additions and 2 deletions

View File

@ -28,7 +28,10 @@ class INISettingsObject : public SettingsObject
{
Q_OBJECT
public:
explicit INISettingsObject(const QString &path, QObject *parent = 0);
/** 'paths' is a list of INI files to try, in order, for fallback support. */
explicit INISettingsObject(QStringList paths, QObject* parent = nullptr);
explicit INISettingsObject(QString path, QObject* parent = nullptr);
/*!
* \brief Gets the path to the INI file.