mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Don't resize dialog with invalid sizes
This fixes wrong dialog sizes on first startup.
This commit is contained in:
parent
3fd0241abb
commit
fcf50820e8
21 changed files with 64 additions and 64 deletions
|
@ -45,7 +45,6 @@
|
|||
#include <QLocale>
|
||||
#include <QNetworkCookie>
|
||||
#include <QSettings>
|
||||
#include <QSize>
|
||||
#include <QTime>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
|
@ -1371,34 +1370,6 @@ void Preferences::setPropTrackerListState(const QByteArray &state)
|
|||
#endif
|
||||
}
|
||||
|
||||
QSize Preferences::getRssGeometrySize() const
|
||||
{
|
||||
return value<QSize>(u"RssFeedDownloader/geometrySize"_qs);
|
||||
}
|
||||
|
||||
void Preferences::setRssGeometrySize(const QSize &geometry)
|
||||
{
|
||||
setValue(u"RssFeedDownloader/geometrySize"_qs, geometry);
|
||||
}
|
||||
|
||||
QByteArray Preferences::getRssHSplitterSizes() const
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
return value<QByteArray>(u"GUI/Qt6/RSSFeedDownloader/HSplitterSizes"_qs);
|
||||
#else
|
||||
return value<QByteArray>(u"RssFeedDownloader/qt5/hsplitterSizes"_qs);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Preferences::setRssHSplitterSizes(const QByteArray &sizes)
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
setValue(u"GUI/Qt6/RSSFeedDownloader/HSplitterSizes"_qs, sizes);
|
||||
#else
|
||||
setValue(u"RssFeedDownloader/qt5/hsplitterSizes"_qs, sizes);
|
||||
#endif
|
||||
}
|
||||
|
||||
QStringList Preferences::getRssOpenFolders() const
|
||||
{
|
||||
return value<QStringList>(u"GUI/RSSWidget/OpenedFolders"_qs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue