mirror of
https://github.com/transmission/transmission.git
synced 2026-04-18 07:56:33 +01:00
Align type qualifiers to the right (code style)
This way all the qualifiers (`const`, `volatile`, `mutable`) are grouped together, e.g. `T const* const x` vs. `const T* const x`. Also helps reading types right-to-left, e.g. "constant pointer to constant T" vs. "constant pointer to T which is constant".
This commit is contained in:
@@ -28,15 +28,15 @@ public:
|
||||
FileTreeView(QWidget* parent = nullptr, bool editable = true);
|
||||
|
||||
void clear();
|
||||
void update(const FileList& files, bool updateProperties = true);
|
||||
void update(FileList const& files, bool updateProperties = true);
|
||||
|
||||
void setEditable(bool editable);
|
||||
|
||||
signals:
|
||||
void priorityChanged(const QSet<int>& fileIndices, int priority);
|
||||
void wantedChanged(const QSet<int>& fileIndices, bool wanted);
|
||||
void pathEdited(const QString& oldpath, const QString& newname);
|
||||
void openRequested(const QString& path);
|
||||
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 openRequested(QString const& path);
|
||||
|
||||
protected:
|
||||
// QWidget
|
||||
@@ -46,10 +46,10 @@ protected:
|
||||
virtual void contextMenuEvent(QContextMenuEvent* event);
|
||||
|
||||
// QAbstractItemView
|
||||
virtual bool edit(const QModelIndex& index, EditTrigger trigger, QEvent* event);
|
||||
virtual bool edit(QModelIndex const& index, EditTrigger trigger, QEvent* event);
|
||||
|
||||
private slots:
|
||||
void onClicked(const QModelIndex& index);
|
||||
void onClicked(QModelIndex const& index);
|
||||
|
||||
void checkSelectedItems();
|
||||
void uncheckSelectedItems();
|
||||
@@ -64,7 +64,7 @@ private:
|
||||
void initContextMenu();
|
||||
QModelIndexList selectedSourceRows(int column = 0) const;
|
||||
|
||||
static Qt::CheckState getCumulativeCheckState(const QModelIndexList& indices);
|
||||
static Qt::CheckState getCumulativeCheckState(QModelIndexList const& indices);
|
||||
|
||||
private:
|
||||
FileTreeModel* myModel;
|
||||
|
||||
Reference in New Issue
Block a user