Commit 1efd5fcd authored by hjk's avatar hjk
Browse files

debugger: fix RegisterHandler::{row,column}Count()

parent 38baf276
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment