Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
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
Tobias Hunger
qt-creator
Commits
dfebb2d2
Commit
dfebb2d2
authored
15 years ago
by
hjk
Committed by
con
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
debugger: fix collapse/uncollapse bug in locals view
(cherry picked from commit
64daf410
)
parent
91c9e667
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
src/plugins/debugger/watchhandler.cpp
+18
-9
18 additions, 9 deletions
src/plugins/debugger/watchhandler.cpp
with
18 additions
and
9 deletions
src/plugins/debugger/watchhandler.cpp
+
18
−
9
View file @
dfebb2d2
...
...
@@ -203,6 +203,7 @@ QString WatchData::toString() const
const
char
*
doubleQuoteComma
=
"
\"
,"
;
QString
res
;
QTextStream
str
(
&
res
);
str
<<
QLatin1Char
(
'{'
);
if
(
!
iname
.
isEmpty
())
str
<<
"iname=
\"
"
<<
iname
<<
doubleQuoteComma
;
if
(
!
addr
.
isEmpty
())
...
...
@@ -855,6 +856,22 @@ void WatchModel::insertBulkData(const QList<WatchData> &list)
typedef
QMap
<
IName
,
WatchData
>::
iterator
Iterator
;
foreach
(
const
WatchItem
&
data
,
list
)
newList
[
data
.
iname
]
=
data
;
if
(
newList
.
size
()
!=
list
.
size
())
{
qDebug
()
<<
"LIST: "
;
foreach
(
const
WatchItem
&
data
,
list
)
qDebug
()
<<
data
.
toString
();
qDebug
()
<<
"NEW LIST: "
;
foreach
(
const
WatchItem
&
data
,
newList
.
values
())
qDebug
()
<<
data
.
toString
();
qDebug
()
<<
"P->CHILDREN: "
;
foreach
(
const
WatchItem
*
item
,
parent
->
children
)
qDebug
()
<<
item
->
toString
();
qDebug
()
<<
"P->CHILDREN.SIZE: "
<<
parent
->
children
.
size
()
<<
"NEWLIST SIZE: "
<<
newList
.
size
()
<<
"LIST SIZE: "
<<
list
.
size
();
}
QTC_ASSERT
(
newList
.
size
()
==
list
.
size
(),
return
);
foreach
(
WatchItem
*
oldItem
,
parent
->
children
)
{
Iterator
it
=
newList
.
find
(
oldItem
->
iname
);
...
...
@@ -871,15 +888,7 @@ void WatchModel::insertBulkData(const QList<WatchData> &list)
// overwrite existing items
Iterator
it
=
newList
.
begin
();
int
oldCount
=
newList
.
size
()
-
list
.
size
();
if
(
oldCount
!=
parent
->
children
.
size
())
qDebug
()
//<< "LIST:" << list.keys()
<<
"NEWLIST: "
<<
newList
.
keys
()
<<
"OLD COUNT: "
<<
oldCount
<<
"P->CHILDREN.SIZE: "
<<
parent
->
children
.
size
()
<<
"NEWLIST SIZE: "
<<
newList
.
size
()
<<
"LIST SIZE: "
<<
list
.
size
();
QTC_ASSERT
(
oldCount
==
parent
->
children
.
size
(),
return
);
const
int
oldCount
=
parent
->
children
.
size
();
for
(
int
i
=
0
;
i
<
oldCount
;
++
i
,
++
it
)
parent
->
children
[
i
]
->
setData
(
*
it
);
QModelIndex
idx
=
watchIndex
(
parent
);
...
...
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