Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
b41f60ce
Commit
b41f60ce
authored
6 years ago
by
Edward Brown
Browse files
Options
Downloads
Patches
Plain Diff
Attempted to improve understandablity of enumerateCellsInRow.
- Added descriptive comment. - Renamed parameters. Re #22263
parent
41d9c643
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/widgets/common/inc/MantidQtWidgets/Common/Batch/QtStandardItemTreeAdapter.h
+7
-3
7 additions, 3 deletions
.../MantidQtWidgets/Common/Batch/QtStandardItemTreeAdapter.h
with
7 additions
and
3 deletions
qt/widgets/common/inc/MantidQtWidgets/Common/Batch/QtStandardItemTreeAdapter.h
+
7
−
3
View file @
b41f60ce
...
@@ -78,12 +78,16 @@ private:
...
@@ -78,12 +78,16 @@ private:
Cell
m_emptyCellStyle
;
Cell
m_emptyCellStyle
;
};
};
/**
* Enumerates the first `columnCount` number of cells to the right of
* startAtCell, moving left to right.
*/
template
<
typename
Action
>
template
<
typename
Action
>
void
QtStandardItemTreeModelAdapter
::
enumerateCellsInRow
(
void
QtStandardItemTreeModelAdapter
::
enumerateCellsInRow
(
QModelIndexForMainModel
const
&
start
Index
,
int
column
s
,
QModelIndexForMainModel
const
&
start
AtCell
,
int
column
Count
,
Action
const
&
action
)
const
{
Action
const
&
action
)
const
{
for
(
auto
i
=
0
;
i
<
column
s
;
i
++
)
{
for
(
auto
i
=
0
;
i
<
column
Count
;
i
++
)
{
auto
cellIndex
=
start
Index
.
sibling
(
start
Index
.
row
(),
i
);
auto
cellIndex
=
start
AtCell
.
sibling
(
start
AtCell
.
row
(),
i
);
action
(
cellIndex
,
i
);
action
(
cellIndex
,
i
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment