Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flatpak-qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Marco Bubke
flatpak-qt-creator
Commits
c837fd60
Commit
c837fd60
authored
14 years ago
by
kh1
Browse files
Options
Downloads
Patches
Plain Diff
Compile fix.
Reviewed-by: con
parent
de040e80
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/find/searchresulttreeitems.cpp
+4
-4
4 additions, 4 deletions
src/plugins/find/searchresulttreeitems.cpp
src/plugins/find/searchresulttreeview.cpp
+1
-1
1 addition, 1 deletion
src/plugins/find/searchresulttreeview.cpp
with
5 additions
and
5 deletions
src/plugins/find/searchresulttreeitems.cpp
+
4
−
4
View file @
c837fd60
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
using
namespace
Find
::
Internal
;
using
namespace
Find
::
Internal
;
SearchResultTreeItem
::
SearchResultTreeItem
(
const
SearchResultItem
&
item
,
SearchResultTreeItem
::
SearchResultTreeItem
(
const
Find
::
SearchResultItem
&
item
,
const
SearchResultTreeItem
*
parent
)
const
SearchResultTreeItem
*
parent
)
:
item
(
item
),
:
item
(
item
),
m_parent
(
parent
),
m_parent
(
parent
),
...
@@ -116,7 +116,7 @@ int SearchResultTreeItem::insertionIndex(const QString &text, SearchResultTreeIt
...
@@ -116,7 +116,7 @@ int SearchResultTreeItem::insertionIndex(const QString &text, SearchResultTreeIt
return
insertionPosition
-
m_children
.
begin
();
return
insertionPosition
-
m_children
.
begin
();
}
}
int
SearchResultTreeItem
::
insertionIndex
(
const
SearchResultItem
&
item
,
SearchResultTreeItem
**
existingItem
)
const
int
SearchResultTreeItem
::
insertionIndex
(
const
Find
::
SearchResultItem
&
item
,
SearchResultTreeItem
**
existingItem
)
const
{
{
return
insertionIndex
(
item
.
text
,
existingItem
);
return
insertionIndex
(
item
.
text
,
existingItem
);
}
}
...
@@ -126,7 +126,7 @@ void SearchResultTreeItem::insertChild(int index, SearchResultTreeItem *child)
...
@@ -126,7 +126,7 @@ void SearchResultTreeItem::insertChild(int index, SearchResultTreeItem *child)
m_children
.
insert
(
index
,
child
);
m_children
.
insert
(
index
,
child
);
}
}
void
SearchResultTreeItem
::
insertChild
(
int
index
,
const
SearchResultItem
&
item
)
void
SearchResultTreeItem
::
insertChild
(
int
index
,
const
Find
::
SearchResultItem
&
item
)
{
{
SearchResultTreeItem
*
child
=
new
SearchResultTreeItem
(
item
,
this
);
SearchResultTreeItem
*
child
=
new
SearchResultTreeItem
(
item
,
this
);
if
(
isUserCheckable
())
{
if
(
isUserCheckable
())
{
...
@@ -136,7 +136,7 @@ void SearchResultTreeItem::insertChild(int index, const SearchResultItem &item)
...
@@ -136,7 +136,7 @@ void SearchResultTreeItem::insertChild(int index, const SearchResultItem &item)
insertChild
(
index
,
child
);
insertChild
(
index
,
child
);
}
}
void
SearchResultTreeItem
::
appendChild
(
const
SearchResultItem
&
item
)
void
SearchResultTreeItem
::
appendChild
(
const
Find
::
SearchResultItem
&
item
)
{
{
insertChild
(
m_children
.
count
(),
item
);
insertChild
(
m_children
.
count
(),
item
);
}
}
This diff is collapsed.
Click to expand it.
src/plugins/find/searchresulttreeview.cpp
+
1
−
1
View file @
c837fd60
...
@@ -67,7 +67,7 @@ void SearchResultTreeView::clear()
...
@@ -67,7 +67,7 @@ void SearchResultTreeView::clear()
m_model
->
clear
();
m_model
->
clear
();
}
}
void
SearchResultTreeView
::
addResults
(
const
QList
<
Find
::
SearchResultItem
>
&
items
,
SearchResultWindow
::
AddMode
mode
)
void
SearchResultTreeView
::
addResults
(
const
QList
<
Find
::
SearchResultItem
>
&
items
,
Find
::
SearchResultWindow
::
AddMode
mode
)
{
{
QList
<
QModelIndex
>
addedParents
=
m_model
->
addResults
(
items
,
mode
);
QList
<
QModelIndex
>
addedParents
=
m_model
->
addResults
(
items
,
mode
);
if
(
m_autoExpandResults
&&
!
addedParents
.
isEmpty
())
{
if
(
m_autoExpandResults
&&
!
addedParents
.
isEmpty
())
{
...
...
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