mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -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:
@@ -37,7 +37,7 @@
|
||||
#include "uithememanager.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define SETTINGS_KEY(name) "SpeedLimitDialog/" name
|
||||
#define SETTINGS_KEY(name) u"SpeedLimitDialog/" name
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace
|
||||
SpeedLimitDialog::SpeedLimitDialog(QWidget *parent)
|
||||
: QDialog {parent}
|
||||
, m_ui {new Ui::SpeedLimitDialog}
|
||||
, m_storeDialogSize {SETTINGS_KEY("Size")}
|
||||
, m_storeDialogSize {SETTINGS_KEY(u"Size"_qs)}
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user