mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Remember dialog sizes
This applies to "About Dialog", "Ban List Options Dialog", "Download From URL Dialog", "IP Subnet Whitelist Options Dialog", "Search Plugin Select Dialog", "Search Plugin Source Dialog", "Statistics Dialog", "Speed Limit Dialog" and "Torrent Options Dialog". Also unifies storing the dialog size under the key "Size".
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include "base/settingvalue.h"
|
||||
|
||||
class QSortFilterProxyModel;
|
||||
class QStringListModel;
|
||||
|
||||
@@ -38,14 +40,14 @@ namespace Ui
|
||||
class IPSubnetWhitelistOptionsDialog;
|
||||
}
|
||||
|
||||
class IPSubnetWhitelistOptionsDialog : public QDialog
|
||||
class IPSubnetWhitelistOptionsDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(IPSubnetWhitelistOptionsDialog)
|
||||
|
||||
public:
|
||||
explicit IPSubnetWhitelistOptionsDialog(QWidget *parent = nullptr);
|
||||
~IPSubnetWhitelistOptionsDialog();
|
||||
~IPSubnetWhitelistOptionsDialog() override;
|
||||
|
||||
private slots:
|
||||
void on_buttonBox_accepted();
|
||||
@@ -55,7 +57,9 @@ private slots:
|
||||
|
||||
private:
|
||||
Ui::IPSubnetWhitelistOptionsDialog *m_ui;
|
||||
SettingValue<QSize> m_storeDialogSize;
|
||||
|
||||
QStringListModel *m_model;
|
||||
QSortFilterProxyModel *m_sortFilter;
|
||||
bool m_modified;
|
||||
bool m_modified = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user