Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KDevPlatform
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Unmaintained
KDevPlatform
Commits
edbc931e
Commit
edbc931e
authored
11 years ago
by
Sven Brauch
Browse files
Options
Downloads
Patches
Plain Diff
Debugger framestack: Fetch frames until the widget is full
For discussion, see BUG:316873
parent
a00aa6c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debugger/framestack/framestackwidget.cpp
+9
-2
9 additions, 2 deletions
debugger/framestack/framestackwidget.cpp
with
9 additions
and
2 deletions
debugger/framestack/framestackwidget.cpp
+
9
−
2
View file @
edbc931e
...
...
@@ -102,6 +102,9 @@ FramestackWidget::FramestackWidget(IDebugController* controller, QWidget* parent
connect
(
m_threads
,
SIGNAL
(
clicked
(
QModelIndex
)),
this
,
SLOT
(
setThreadShown
(
QModelIndex
)));
connect
(
m_frames
,
SIGNAL
(
clicked
(
QModelIndex
)),
SLOT
(
frameClicked
(
QModelIndex
)));
connect
(
m_frames
->
model
(),
SIGNAL
(
dataChanged
(
QModelIndex
,
QModelIndex
)),
this
,
SLOT
(
checkFetchMoreFrames
()));
}
FramestackWidget
::~
FramestackWidget
()
{}
...
...
@@ -150,9 +153,13 @@ void KDevelop::FramestackWidget::checkFetchMoreFrames()
{
int
val
=
m_frames
->
verticalScrollBar
()
->
value
();
int
max
=
m_frames
->
verticalScrollBar
()
->
maximum
();
const
int
offset
=
20
;
int
min
=
m_frames
->
verticalScrollBar
()
->
minimum
();
bool
canScroll
=
min
!=
max
;
const
int
offset
=
50
;
if
(
val
+
offset
>
max
&&
m_session
)
{
// Fetch more frames if the user scrolls down far enough,
// or if there's more frames available and the widget is not yet filled.
if
((
val
+
offset
>
max
||
!
canScroll
)
&&
m_session
)
{
m_session
->
frameStackModel
()
->
fetchMoreFrames
();
}
}
...
...
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