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

This commit is contained in:
hjk
2009-05-13 17:42:07 +02:00
parent 38baf276f6
commit 1efd5fcdc7

View File

@@ -55,14 +55,12 @@ RegisterHandler::RegisterHandler(QObject *parent)
int RegisterHandler::rowCount(const QModelIndex &parent) const int RegisterHandler::rowCount(const QModelIndex &parent) const
{ {
Q_UNUSED(parent); return parent.isValid() ? 0 : m_registers.size();
return m_registers.size();
} }
int RegisterHandler::columnCount(const QModelIndex &parent) const int RegisterHandler::columnCount(const QModelIndex &parent) const
{ {
Q_UNUSED(parent); return parent.isValid() ? 0 : 2;
return 2;
} }
QVariant RegisterHandler::data(const QModelIndex &index, int role) const QVariant RegisterHandler::data(const QModelIndex &index, int role) const