Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
1efd5fcd
Commit
1efd5fcd
authored
May 13, 2009
by
hjk
Browse files
debugger: fix RegisterHandler::{row,column}Count()
parent
38baf276
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/registerhandler.cpp
View file @
1efd5fcd
...
...
@@ -55,14 +55,12 @@ RegisterHandler::RegisterHandler(QObject *parent)
int
RegisterHandler
::
rowCount
(
const
QModelIndex
&
parent
)
const
{
Q_UNUSED
(
parent
);
return
m_registers
.
size
();
return
parent
.
isValid
()
?
0
:
m_registers
.
size
();
}
int
RegisterHandler
::
columnCount
(
const
QModelIndex
&
parent
)
const
{
Q_UNUSED
(
parent
);
return
2
;
return
parent
.
isValid
()
?
0
:
2
;
}
QVariant
RegisterHandler
::
data
(
const
QModelIndex
&
index
,
int
role
)
const
...
...
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