mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 07:46:17 -07: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:
parent
11cfe38d1c
commit
c6b772da11
33 changed files with 222 additions and 239 deletions
|
@ -40,12 +40,12 @@
|
|||
#include "ui_statsdialog.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define SETTINGS_KEY(name) "StatisticsDialog/" name
|
||||
#define SETTINGS_KEY(name) u"StatisticsDialog/" name
|
||||
|
||||
StatsDialog::StatsDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
, m_ui(new Ui::StatsDialog)
|
||||
, m_storeDialogSize(SETTINGS_KEY("Size"))
|
||||
, m_storeDialogSize(SETTINGS_KEY(u"Size"_qs))
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue