Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
KTeaTime
Commits
d4aa0fc3
Commit
d4aa0fc3
authored
Sep 01, 2016
by
Andrius Štikonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Q_FOREACH -> C++11 for.
parent
d03cbf12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/settings.cpp
src/settings.cpp
+2
-2
src/toplevel.cpp
src/toplevel.cpp
+2
-1
No files found.
src/settings.cpp
View file @
d4aa0fc3
...
...
@@ -183,9 +183,9 @@ void SettingsDialog::newButtonClicked()
void
SettingsDialog
::
removeButtonClicked
()
{
QModelIndexList
indexes
=
ui
->
tealistTreeView
->
selectionModel
()
->
selectedIndexes
();
const
QModelIndexList
indexes
=
ui
->
tealistTreeView
->
selectionModel
()
->
selectedIndexes
();
for
each
(
const
QModelIndex
&
index
,
indexes
)
{
for
(
const
QModelIndex
&
index
:
indexes
)
{
// Only delete a row when column==0, otherwise the row will be delete
// multiple times (the loop iterate over every cell, not over rows).
if
(
index
.
column
()
==
0
)
{
...
...
src/toplevel.cpp
View file @
d4aa0fc3
...
...
@@ -160,7 +160,8 @@ void TopLevel::setTeaList(const QList<Tea> &tealist) {
tealistGroup
.
config
()
->
sync
();
foreach
(
QAction
*
a
,
m_teaActionGroup
->
actions
()
)
{
const
auto
actions
=
m_teaActionGroup
->
actions
();
for
(
QAction
*
a
:
actions
)
{
m_teaActionGroup
->
removeAction
(
a
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment