Remove offending Settings constructor.
Was causing build problems on OSX.
This commit is contained in:
parent
396e63500e
commit
cb0f7a06a1
@ -21,12 +21,6 @@ Setting::Setting(QStringList synonyms, QVariant defVal)
|
||||
{
|
||||
}
|
||||
|
||||
Setting::Setting(QString id, QVariant defVal)
|
||||
: QObject(), m_synonyms({id}), m_defVal(defVal)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
QVariant Setting::get() const
|
||||
{
|
||||
SettingsObject *sbase = m_storage;
|
||||
|
@ -31,18 +31,17 @@ class LIBSETTINGS_EXPORT Setting : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
/*!
|
||||
* \brief Constructs a new Setting object with the given parent.
|
||||
* \param parent The Setting's parent object.
|
||||
/**
|
||||
* Construct a Setting
|
||||
*
|
||||
* Synonyms are all the possible names used in the settings object, in order of preference.
|
||||
* First synonym is the ID, which identifies the setting in MultiMC.
|
||||
*
|
||||
* defVal is the default value that will be returned when the settings object
|
||||
* doesn't have any value for this setting.
|
||||
*/
|
||||
explicit Setting(QStringList synonyms, QVariant defVal = QVariant());
|
||||
|
||||
/*!
|
||||
* \brief Constructs a new Setting object with the given parent.
|
||||
* \param parent The Setting's parent object.
|
||||
*/
|
||||
explicit Setting(QString id, QVariant defVal = QVariant());
|
||||
|
||||
/*!
|
||||
* \brief Gets this setting's ID.
|
||||
* This is used to refer to the setting within the application.
|
||||
@ -75,16 +74,6 @@ public:
|
||||
*/
|
||||
virtual QVariant get() const;
|
||||
|
||||
/*!
|
||||
* \brief Gets this setting's actual value (I.E. not as a QVariant).
|
||||
* This function is just shorthand for get().value<T>()
|
||||
* \return The setting's actual value.
|
||||
*/
|
||||
template <typename T> inline T value() const
|
||||
{
|
||||
return get().value<T>();
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Gets this setting's default value.
|
||||
* \return The default value of this setting.
|
||||
|
Loading…
Reference in New Issue
Block a user