mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
Rename setRow()
to addRow()
Use template to avoid code duplication
This commit is contained in:
parent
a8b394752e
commit
acbc7d9556
2 changed files with 42 additions and 63 deletions
|
@ -54,10 +54,7 @@ private slots:
|
|||
|
||||
private:
|
||||
void loadAdvancedSettings();
|
||||
void setRow(int row, const QString &property, QSpinBox* editor);
|
||||
void setRow(int row, const QString &property, QComboBox* editor);
|
||||
void setRow(int row, const QString &property, QCheckBox* editor);
|
||||
void setRow(int row, const QString &property, QLineEdit* editor);
|
||||
template <typename T> void addRow(int row, const QString &rowText, T* widget);
|
||||
|
||||
QSpinBox spin_cache, spin_save_resume_data_interval, outgoing_ports_min, outgoing_ports_max, spin_list_refresh, spin_maxhalfopen, spin_tracker_port, spin_cache_ttl;
|
||||
QCheckBox cb_os_cache, cb_recheck_completed, cb_resolve_countries, cb_resolve_hosts,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue