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
KInfoCenter
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
3
Merge Requests
3
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
Plasma
KInfoCenter
Commits
340c4d2f
Commit
340c4d2f
authored
Oct 28, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const'ify
parent
73ad2be3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
kcmtreeitem.cpp
kcmtreeitem.cpp
+3
-3
kcmtreeitem.h
kcmtreeitem.h
+3
-3
No files found.
kcmtreeitem.cpp
View file @
340c4d2f
...
...
@@ -51,18 +51,18 @@ KcmTreeItem *KcmTreeItem::child(const int row)
return
nullptr
;
}
int
KcmTreeItem
::
childCount
()
int
KcmTreeItem
::
childCount
()
const
{
return
m_children
.
count
();
}
int
KcmTreeItem
::
columnCount
()
int
KcmTreeItem
::
columnCount
()
const
{
// Hard coded, menu should never have more than one column
return
1
;
}
KcmTreeItem
*
KcmTreeItem
::
parent
()
KcmTreeItem
*
KcmTreeItem
::
parent
()
const
{
return
m_parent
;
}
...
...
kcmtreeitem.h
View file @
340c4d2f
...
...
@@ -77,12 +77,12 @@ class KcmTreeItem
/**
* Get amount of children
*/
int
childCount
();
int
childCount
()
const
;
/**
* Get parent of current tree item
*/
KcmTreeItem
*
parent
();
KcmTreeItem
*
parent
()
const
;
/**
* Get index of tree item
...
...
@@ -93,7 +93,7 @@ class KcmTreeItem
* Get amount of columns that tree item contains.
* Hardcoded to 1
*/
int
columnCount
();
int
columnCount
()
const
;
/**
* Get row of tree item
...
...
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