mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Improve function interface
`SettingsStorage` methods require `QString` so make `SettingValue` follow it. `Path::operator+` can use `QStringView` to accept wider audience.
This commit is contained in:
@@ -38,12 +38,12 @@
|
||||
#include "ui_ipsubnetwhitelistoptionsdialog.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define SETTINGS_KEY(name) "IPSubnetWhitelistOptionsDialog/" name
|
||||
#define SETTINGS_KEY(name) u"IPSubnetWhitelistOptionsDialog/" name
|
||||
|
||||
IPSubnetWhitelistOptionsDialog::IPSubnetWhitelistOptionsDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
, m_ui(new Ui::IPSubnetWhitelistOptionsDialog)
|
||||
, m_storeDialogSize(SETTINGS_KEY("Size"))
|
||||
, m_storeDialogSize(SETTINGS_KEY(u"Size"_qs))
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user