diff options
| author | 2022-09-16 22:09:58 +1000 | |
|---|---|---|
| committer | 2022-09-16 22:23:34 +1000 | |
| commit | c76cf754b3cb1a07f8d3ca585bb3a055d78f25be (patch) | |
| tree | 833fa7b23f8a84a79fd052008a6ad7c3847b46da /src/osd/modules/debugger/qt/deviceinformationwindow.cpp | |
| parent | 1aae44005b59aa712fb60f639ddbb9e8e5e7a357 (diff) | |
debugger/win: Added capability to save/restore window arrangement.
* Format is mostly compatible with the Cocoa debugger, besides reversed
vertical positioning.
* Made Qt debugger more compatible with configuration format used by
Win32 and Cocoa debuggers.
* emu/config.cpp: Preserve elements with no registered handlers in
default and system configuation files.
Diffstat (limited to 'src/osd/modules/debugger/qt/deviceinformationwindow.cpp')
| -rw-r--r-- | src/osd/modules/debugger/qt/deviceinformationwindow.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/osd/modules/debugger/qt/deviceinformationwindow.cpp b/src/osd/modules/debugger/qt/deviceinformationwindow.cpp index 431a0df492a..29b30f927d4 100644 --- a/src/osd/modules/debugger/qt/deviceinformationwindow.cpp +++ b/src/osd/modules/debugger/qt/deviceinformationwindow.cpp @@ -1,12 +1,14 @@ // license:BSD-3-Clause // copyright-holders:Andrew Gardner #include "emu.h" +#include "deviceinformationwindow.h" + +#include "util/xmlfile.h" + #include <QtWidgets/QFrame> #include <QtWidgets/QLabel> #include <QtWidgets/QVBoxLayout> -#include "deviceinformationwindow.h" - DeviceInformationWindow::DeviceInformationWindow(running_machine &machine, device_t *device, QWidget *parent) : WindowQt(machine, nullptr), @@ -127,12 +129,12 @@ void DeviceInformationWindowQtConfig::applyToQWidget(QWidget *widget) void DeviceInformationWindowQtConfig::addToXmlDataNode(util::xml::data_node &node) const { WindowQtConfig::addToXmlDataNode(node); - node.set_attribute("device-tag", m_device_tag.c_str()); + node.set_attribute(osd::debugger::ATTR_WINDOW_DEVICE_TAG, m_device_tag.c_str()); } void DeviceInformationWindowQtConfig::recoverFromXmlNode(util::xml::data_node const &node) { WindowQtConfig::recoverFromXmlNode(node); - m_device_tag = node.get_attribute_string("device-tag", ":"); + m_device_tag = node.get_attribute_string(osd::debugger::ATTR_WINDOW_DEVICE_TAG, ":"); } |
