Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KTeaTime
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Utilities
KTeaTime
Commits
857dac46
Commit
857dac46
authored
Jan 18, 2021
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ';' after Q_UNUSED
parent
498f5a03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/settings.cpp
src/settings.cpp
+1
-1
src/tealistmodel.cpp
src/tealistmodel.cpp
+4
-4
No files found.
src/settings.cpp
View file @
857dac46
...
...
@@ -232,7 +232,7 @@ void SettingsDialog::moveSelectedItem(bool moveup)
void
SettingsDialog
::
updateSelection
(
const
QItemSelection
&
selected
,
const
QItemSelection
&
deselected
)
{
Q_UNUSED
(
deselected
)
;
Q_UNUSED
(
deselected
)
QModelIndexList
items
=
selected
.
indexes
();
QString
name
;
...
...
src/tealistmodel.cpp
View file @
857dac46
...
...
@@ -29,7 +29,7 @@ TeaListModel::TeaListModel(const QList<Tea> &tealist, QObject *parent)
QModelIndex
TeaListModel
::
index
(
int
row
,
int
column
,
const
QModelIndex
&
parent
)
const
{
Q_UNUSED
(
parent
)
;
Q_UNUSED
(
parent
)
return
createIndex
(
row
,
column
);
}
...
...
@@ -47,7 +47,7 @@ int TeaListModel::rowCount(const QModelIndex &parent) const
int
TeaListModel
::
columnCount
(
const
QModelIndex
&
parent
)
const
{
Q_UNUSED
(
parent
)
;
Q_UNUSED
(
parent
)
return
2
;
}
...
...
@@ -117,7 +117,7 @@ QVariant TeaListModel::headerData(int section, Qt::Orientation orientation, int
bool
TeaListModel
::
insertRows
(
int
row
,
int
count
,
const
QModelIndex
&
parent
)
{
Q_UNUSED
(
parent
)
;
Q_UNUSED
(
parent
)
beginInsertRows
(
QModelIndex
(),
row
,
row
+
count
-
1
);
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
...
...
@@ -131,7 +131,7 @@ bool TeaListModel::insertRows(int row, int count, const QModelIndex &parent)
bool
TeaListModel
::
removeRows
(
int
row
,
int
count
,
const
QModelIndex
&
parent
)
{
Q_UNUSED
(
parent
)
;
Q_UNUSED
(
parent
)
if
(
row
-
count
>
m_tealist
.
size
()
)
{
return
false
;
}
...
...
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