forked from qt-creator/qt-creator
debugger: fix RegisterHandler::{row,column}Count()
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user