diff options
author | 2021-01-28 02:59:43 +1100 | |
---|---|---|
committer | 2021-01-28 02:59:43 +1100 | |
commit | 83c9637635c575972c039d7d63a48d788e41ba34 (patch) | |
tree | 59bad3ada8a0f0f61bf503da21acef0f237d4d6b /src/osd/modules/debugger/qt/deviceswindow.h | |
parent | 832acf5731d68ca411b5fb358ddb4e79ef0faffa (diff) |
-Qt debugger updates:
* Added context menu with Copy Visible and Paste commands to debug views (partially addresses #6066).
* Made memory view last PC display a context menu item.
* Fixed crash on right-clicking a memory view showing something other than an address space.
-debugger: Fixed commas in dumpkbd output.
Diffstat (limited to 'src/osd/modules/debugger/qt/deviceswindow.h')
-rw-r--r-- | src/osd/modules/debugger/qt/deviceswindow.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/osd/modules/debugger/qt/deviceswindow.h b/src/osd/modules/debugger/qt/deviceswindow.h index 87e710a001b..884ad87d421 100644 --- a/src/osd/modules/debugger/qt/deviceswindow.h +++ b/src/osd/modules/debugger/qt/deviceswindow.h @@ -1,12 +1,12 @@ // license:BSD-3-Clause // copyright-holders:Andrew Gardner -#ifndef __DEBUG_QT_DEVICES_WINDOW_H__ -#define __DEBUG_QT_DEVICES_WINDOW_H__ - -#include <QtWidgets/QTreeView> +#ifndef MAME_DEBUGGER_QT_DEVICESWINDOW_H +#define MAME_DEBUGGER_QT_DEVICESWINDOW_H #include "windowqt.h" +#include <QtWidgets/QTreeView> + //============================================================ // The model for the treeview @@ -17,21 +17,19 @@ class DevicesWindowModel : public QAbstractItemModel Q_OBJECT public: - explicit DevicesWindowModel(running_machine *machine, QObject *parent = 0); + explicit DevicesWindowModel(running_machine &machine, QObject *parent = nullptr); ~DevicesWindowModel(); QVariant data(const QModelIndex &index, int role) const; Qt::ItemFlags flags(const QModelIndex &index) const; - QVariant headerData(int section, Qt::Orientation orientation, - int role = Qt::DisplayRole) const; - QModelIndex index(int row, int column, - const QModelIndex &parent = QModelIndex()) const; + QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; + QModelIndex index(int row, int column, 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; + running_machine &m_machine; }; //============================================================ @@ -42,7 +40,7 @@ class DevicesWindow : public WindowQt Q_OBJECT public: - DevicesWindow(running_machine* machine, QWidget* parent=nullptr); + DevicesWindow(running_machine &machine, QWidget *parent = nullptr); virtual ~DevicesWindow(); public slots: @@ -71,11 +69,11 @@ public: ~DevicesWindowQtConfig() {} - void buildFromQWidget(QWidget* widget); - void applyToQWidget(QWidget* widget); + void buildFromQWidget(QWidget *widget); + void applyToQWidget(QWidget *widget); void addToXmlDataNode(util::xml::data_node &node) const; void recoverFromXmlNode(util::xml::data_node const &node); }; -#endif +#endif // MAME_DEBUGGER_QT_DEVICESWINDOW_H |