|
|
|
@ -1127,7 +1127,6 @@ void Preferences::setMainLastDir(const QString &path)
@@ -1127,7 +1127,6 @@ void Preferences::setMainLastDir(const QString &path)
|
|
|
|
|
setValue("MainWindowLastDir", path); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifndef DISABLE_GUI |
|
|
|
|
QSize Preferences::getPrefSize(const QSize& defaultSize) const |
|
|
|
|
{ |
|
|
|
|
return value("Preferences/State/size", defaultSize).toSize(); |
|
|
|
@ -1137,7 +1136,6 @@ void Preferences::setPrefSize(const QSize &size)
@@ -1137,7 +1136,6 @@ void Preferences::setPrefSize(const QSize &size)
|
|
|
|
|
{ |
|
|
|
|
setValue("Preferences/State/size", size); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
QStringList Preferences::getPrefHSplitterSizes() const |
|
|
|
|
{ |
|
|
|
@ -1209,14 +1207,14 @@ void Preferences::setPropTrackerListState(const QByteArray &state)
@@ -1209,14 +1207,14 @@ void Preferences::setPropTrackerListState(const QByteArray &state)
|
|
|
|
|
setValue("TorrentProperties/Trackers/qt5/TrackerListState", state); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QByteArray Preferences::getRssGeometry() const |
|
|
|
|
QSize Preferences::getRssGeometrySize(const QSize &defaultSize) const |
|
|
|
|
{ |
|
|
|
|
return value("RssFeedDownloader/geometry").toByteArray(); |
|
|
|
|
return value("RssFeedDownloader/geometrySize", defaultSize).toSize(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Preferences::setRssGeometry(const QByteArray &geometry) |
|
|
|
|
void Preferences::setRssGeometrySize(const QSize &geometry) |
|
|
|
|
{ |
|
|
|
|
setValue("RssFeedDownloader/geometry", geometry); |
|
|
|
|
setValue("RssFeedDownloader/geometrySize", geometry); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QByteArray Preferences::getRssHSplitterSizes() const |
|
|
|
|