mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
NOISSUE tabs -> spaces
This commit is contained in:
@ -28,39 +28,39 @@
|
||||
*/
|
||||
class MULTIMC_LOGIC_EXPORT INISettingsObject : public SettingsObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit INISettingsObject(const QString &path, QObject *parent = 0);
|
||||
explicit INISettingsObject(const QString &path, QObject *parent = 0);
|
||||
|
||||
/*!
|
||||
* \brief Gets the path to the INI file.
|
||||
* \return The path to the INI file.
|
||||
*/
|
||||
virtual QString filePath() const
|
||||
{
|
||||
return m_filePath;
|
||||
}
|
||||
/*!
|
||||
* \brief Gets the path to the INI file.
|
||||
* \return The path to the INI file.
|
||||
*/
|
||||
virtual QString filePath() const
|
||||
{
|
||||
return m_filePath;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Sets the path to the INI file and reloads it.
|
||||
* \param filePath The INI file's new path.
|
||||
*/
|
||||
virtual void setFilePath(const QString &filePath);
|
||||
/*!
|
||||
* \brief Sets the path to the INI file and reloads it.
|
||||
* \param filePath The INI file's new path.
|
||||
*/
|
||||
virtual void setFilePath(const QString &filePath);
|
||||
|
||||
bool reload() override;
|
||||
bool reload() override;
|
||||
|
||||
void suspendSave() override;
|
||||
void resumeSave() override;
|
||||
void suspendSave() override;
|
||||
void resumeSave() override;
|
||||
|
||||
protected slots:
|
||||
virtual void changeSetting(const Setting &setting, QVariant value) override;
|
||||
virtual void resetSetting(const Setting &setting) override;
|
||||
virtual void changeSetting(const Setting &setting, QVariant value) override;
|
||||
virtual void resetSetting(const Setting &setting) override;
|
||||
|
||||
protected:
|
||||
virtual QVariant retrieveValue(const Setting &setting) override;
|
||||
void doSave();
|
||||
virtual QVariant retrieveValue(const Setting &setting) override;
|
||||
void doSave();
|
||||
|
||||
protected:
|
||||
INIFile m_ini;
|
||||
QString m_filePath;
|
||||
INIFile m_ini;
|
||||
QString m_filePath;
|
||||
};
|
||||
|
Reference in New Issue
Block a user