mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-15 20:51:39 +03:00
Switch to use SettingsStorage class
This commit is contained in:
parent
009798f690
commit
8efcc335de
2 changed files with 0 additions and 60 deletions
|
@ -1277,56 +1277,6 @@ void Preferences::setSearchEngDisabled(const QStringList &engines)
|
||||||
setValue("SearchEngines/disabledEngines", engines);
|
setValue("SearchEngines/disabledEngines", engines);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString Preferences::getCreateTorLastAddPath() const
|
|
||||||
{
|
|
||||||
return value("CreateTorrent/last_add_path", QDir::homePath()).toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Preferences::setCreateTorLastAddPath(const QString &path)
|
|
||||||
{
|
|
||||||
setValue("CreateTorrent/last_add_path", path);
|
|
||||||
}
|
|
||||||
|
|
||||||
QString Preferences::getCreateTorLastSavePath() const
|
|
||||||
{
|
|
||||||
return value("CreateTorrent/last_save_path", QDir::homePath()).toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Preferences::setCreateTorLastSavePath(const QString &path)
|
|
||||||
{
|
|
||||||
setValue("CreateTorrent/last_save_path", path);
|
|
||||||
}
|
|
||||||
|
|
||||||
QString Preferences::getCreateTorTrackers() const
|
|
||||||
{
|
|
||||||
return value("CreateTorrent/TrackerList").toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Preferences::setCreateTorTrackers(const QString &path)
|
|
||||||
{
|
|
||||||
setValue("CreateTorrent/TrackerList", path);
|
|
||||||
}
|
|
||||||
|
|
||||||
QByteArray Preferences::getCreateTorGeometry() const
|
|
||||||
{
|
|
||||||
return value("CreateTorrent/dimensions").toByteArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Preferences::setCreateTorGeometry(const QByteArray &geometry)
|
|
||||||
{
|
|
||||||
setValue("CreateTorrent/dimensions", geometry);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Preferences::getCreateTorIgnoreRatio() const
|
|
||||||
{
|
|
||||||
return value("CreateTorrent/IgnoreRatio").toBool();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Preferences::setCreateTorIgnoreRatio(const bool ignore)
|
|
||||||
{
|
|
||||||
setValue("CreateTorrent/IgnoreRatio", ignore);
|
|
||||||
}
|
|
||||||
|
|
||||||
QString Preferences::getTorImportLastContentDir() const
|
QString Preferences::getTorImportLastContentDir() const
|
||||||
{
|
{
|
||||||
return value("TorrentImport/LastContentDir", QDir::homePath()).toString();
|
return value("TorrentImport/LastContentDir", QDir::homePath()).toString();
|
||||||
|
|
|
@ -305,16 +305,6 @@ public:
|
||||||
void setSearchTabHeaderState(const QByteArray &state);
|
void setSearchTabHeaderState(const QByteArray &state);
|
||||||
QStringList getSearchEngDisabled() const;
|
QStringList getSearchEngDisabled() const;
|
||||||
void setSearchEngDisabled(const QStringList &engines);
|
void setSearchEngDisabled(const QStringList &engines);
|
||||||
QString getCreateTorLastAddPath() const;
|
|
||||||
void setCreateTorLastAddPath(const QString &path);
|
|
||||||
QString getCreateTorLastSavePath() const;
|
|
||||||
void setCreateTorLastSavePath(const QString &path);
|
|
||||||
QString getCreateTorTrackers() const;
|
|
||||||
void setCreateTorTrackers(const QString &path);
|
|
||||||
QByteArray getCreateTorGeometry() const;
|
|
||||||
void setCreateTorGeometry(const QByteArray &geometry);
|
|
||||||
bool getCreateTorIgnoreRatio() const;
|
|
||||||
void setCreateTorIgnoreRatio(const bool ignore);
|
|
||||||
QString getTorImportLastContentDir() const;
|
QString getTorImportLastContentDir() const;
|
||||||
void setTorImportLastContentDir(const QString &path);
|
void setTorImportLastContentDir(const QString &path);
|
||||||
QByteArray getTorImportGeometry() const;
|
QByteArray getTorImportGeometry() const;
|
||||||
|
|
Loading…
Reference in a new issue