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:
Mike Gelfand
2017-04-20 19:02:19 +03:00
parent d7930984ef
commit dadffa2c0f
261 changed files with 4637 additions and 4631 deletions

View File

@@ -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;