Formatting
This commit is contained in:
@@ -200,7 +200,7 @@ void BlockAnalyzer::analyze(QPainter &p, const Analyzer::Scope &s, bool new_fram
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void adjustToLimits(int &b, int &f, int &amount) {
|
static inline void adjustToLimits(const int &b, int &f, int &amount) {
|
||||||
|
|
||||||
// with a range of 0-255 and maximum adjustment of amount, maximise the difference between f and b
|
// with a range of 0-255 and maximum adjustment of amount, maximise the difference between f and b
|
||||||
|
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ void CollectionFilterWidget::GroupingChanged(const CollectionModel::Grouping g)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CollectionFilterWidget::CheckCurrentGrouping(CollectionModel::Grouping g) {
|
void CollectionFilterWidget::CheckCurrentGrouping(const CollectionModel::Grouping g) {
|
||||||
|
|
||||||
for (QAction *action : group_by_group_->actions()) {
|
for (QAction *action : group_by_group_->actions()) {
|
||||||
if (action->property("group_by").isNull()) continue;
|
if (action->property("group_by").isNull()) continue;
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ class CollectionFilterWidget : public QWidget {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
static QAction *CreateGroupByAction(const QString &text, QObject *parent, const CollectionModel::Grouping grouping);
|
static QAction *CreateGroupByAction(const QString &text, QObject *parent, const CollectionModel::Grouping grouping);
|
||||||
void CheckCurrentGrouping(CollectionModel::Grouping g);
|
void CheckCurrentGrouping(const CollectionModel::Grouping g);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui_CollectionFilterWidget *ui_;
|
Ui_CollectionFilterWidget *ui_;
|
||||||
|
|||||||
Reference in New Issue
Block a user