summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger')
-rw-r--r--src/osd/modules/debugger/qt/debugqtdeviceswindow.c22
-rw-r--r--src/osd/modules/debugger/qt/debugqtdeviceswindow.h8
2 files changed, 15 insertions, 15 deletions
diff --git a/src/osd/modules/debugger/qt/debugqtdeviceswindow.c b/src/osd/modules/debugger/qt/debugqtdeviceswindow.c
index 10596a1c9f1..09b2fa8d7a5 100644
--- a/src/osd/modules/debugger/qt/debugqtdeviceswindow.c
+++ b/src/osd/modules/debugger/qt/debugqtdeviceswindow.c
@@ -14,8 +14,8 @@ DevicesWindowModel::~DevicesWindowModel()
QVariant DevicesWindowModel::data(const QModelIndex &index, int role) const
{
- if(!index.isValid() || role != Qt::DisplayRole)
- return QVariant();
+ if(!index.isValid() || role != Qt::DisplayRole)
+ return QVariant();
device_t *dev = static_cast<device_t *>(index.internalPointer());
switch(index.column()) {
@@ -43,8 +43,8 @@ QVariant DevicesWindowModel::headerData(int section, Qt::Orientation orientation
QModelIndex DevicesWindowModel::index(int row, int column, const QModelIndex &parent) const
{
- if(!hasIndex(row, column, parent))
- return QModelIndex();
+ if(!hasIndex(row, column, parent))
+ return QModelIndex();
device_t *target = NULL;
@@ -67,10 +67,10 @@ QModelIndex DevicesWindowModel::index(int row, int column, const QModelIndex &pa
QModelIndex DevicesWindowModel::parent(const QModelIndex &index) const
{
- if(!index.isValid())
- return QModelIndex();
+ if(!index.isValid())
+ return QModelIndex();
- device_t *dchild = static_cast<device_t *>(index.internalPointer());
+ device_t *dchild = static_cast<device_t *>(index.internalPointer());
device_t *dparent = dchild->owner();
if(!dparent)
@@ -82,14 +82,14 @@ QModelIndex DevicesWindowModel::parent(const QModelIndex &index) const
for(device_t *child = dpp->first_subdevice(); child && child != dparent; child = child->next())
row++;
}
- return createIndex(row, 0, dparent);
+ return createIndex(row, 0, dparent);
}
int DevicesWindowModel::rowCount(const QModelIndex &parent) const
{
if(!parent.isValid())
return 1;
-
+
device_t *dparent = static_cast<device_t *>(parent.internalPointer());
int count = 0;
for(device_t *child = dparent->first_subdevice(); child; child = child->next())
@@ -157,14 +157,14 @@ void DevicesWindow::activated(const QModelIndex &index)
void DevicesWindowQtConfig::buildFromQWidget(QWidget* widget)
{
WindowQtConfig::buildFromQWidget(widget);
- // DevicesWindow* window = dynamic_cast<DevicesWindow*>(widget);
+ // DevicesWindow* window = dynamic_cast<DevicesWindow*>(widget);
}
void DevicesWindowQtConfig::applyToQWidget(QWidget* widget)
{
WindowQtConfig::applyToQWidget(widget);
- // DevicesWindow* window = dynamic_cast<DevicesWindow*>(widget);
+ // DevicesWindow* window = dynamic_cast<DevicesWindow*>(widget);
}
diff --git a/src/osd/modules/debugger/qt/debugqtdeviceswindow.h b/src/osd/modules/debugger/qt/debugqtdeviceswindow.h
index 833d8d80aca..f541f303efd 100644
--- a/src/osd/modules/debugger/qt/debugqtdeviceswindow.h
+++ b/src/osd/modules/debugger/qt/debugqtdeviceswindow.h
@@ -23,11 +23,11 @@ public:
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;
QModelIndex index(int row, int column,
- const QModelIndex &parent = QModelIndex()) const;
+ const QModelIndex &parent = QModelIndex()) const;
QModelIndex parent(const QModelIndex &index) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
-
+
private:
running_machine *m_machine;
};
@@ -44,8 +44,8 @@ public:
virtual ~DevicesWindow();
public slots:
- void currentRowChanged(const QModelIndex &current, const QModelIndex &previous);
- void activated(const QModelIndex &index);
+ void currentRowChanged(const QModelIndex &current, const QModelIndex &previous);
+ void activated(const QModelIndex &index);
private:
QTreeView *m_devices_view;