mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
refactor: use snake_case field naming in qt client (#1262)
* refactor: use snake_case field naming in qt client * fix: some missed symbols * chore: make uncrustify happy * fixup! refactor: use snake_case field naming in qt client
This commit is contained in:
@@ -28,14 +28,14 @@ public:
|
||||
FileTreeView(QWidget* parent = nullptr, bool editable = true);
|
||||
|
||||
void clear();
|
||||
void update(FileList const& files, bool updateProperties = true);
|
||||
void update(FileList const& files, bool update_properties = true);
|
||||
|
||||
void setEditable(bool editable);
|
||||
|
||||
signals:
|
||||
void priorityChanged(QSet<int> const& fileIndices, int priority);
|
||||
void wantedChanged(QSet<int> const& fileIndices, bool wanted);
|
||||
void pathEdited(QString const& oldpath, QString const& newname);
|
||||
void priorityChanged(QSet<int> const& file_indices, int priority);
|
||||
void wantedChanged(QSet<int> const& file_indices, bool wanted);
|
||||
void pathEdited(QString const& old_path, QString const& new_name);
|
||||
void openRequested(QString const& path);
|
||||
|
||||
protected:
|
||||
@@ -67,18 +67,18 @@ private:
|
||||
static Qt::CheckState getCumulativeCheckState(QModelIndexList const& indices);
|
||||
|
||||
private:
|
||||
FileTreeModel* myModel;
|
||||
QSortFilterProxyModel* myProxy;
|
||||
FileTreeDelegate* myDelegate;
|
||||
FileTreeModel* model_ = {};
|
||||
QSortFilterProxyModel* proxy_ = {};
|
||||
FileTreeDelegate* delegate_ = {};
|
||||
|
||||
QMenu* myContextMenu = nullptr;
|
||||
QMenu* myPriorityMenu = nullptr;
|
||||
QAction* myCheckSelectedAction = nullptr;
|
||||
QAction* myUncheckSelectedAction = nullptr;
|
||||
QAction* myOnlyCheckSelectedAction = nullptr;
|
||||
QAction* myHighPriorityAction = nullptr;
|
||||
QAction* myNormalPriorityAction = nullptr;
|
||||
QAction* myLowPriorityAction = nullptr;
|
||||
QAction* myOpenAction = nullptr;
|
||||
QAction* myRenameAction = nullptr;
|
||||
QMenu* context_menu_ = {};
|
||||
QMenu* priority_menu_ = {};
|
||||
QAction* check_selected_action_ = {};
|
||||
QAction* uncheck_selected_action_ = {};
|
||||
QAction* only_check_selected_action_ = {};
|
||||
QAction* high_priority_action_ = {};
|
||||
QAction* normal_priority_action_ = {};
|
||||
QAction* low_priority_action_ = {};
|
||||
QAction* open_action_ = {};
|
||||
QAction* rename_action_ = {};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user