summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2026-04-03 02:46:36 +1100
committer Vas Crabb <vas@vastheman.com>2026-04-03 02:46:36 +1100
commitfc0c0e8618b7ca253437310ee8a712733ea6a8e8 (patch)
tree260554ae5442d516862e8282438d0ff05e29a319 /src/osd/modules/debugger
parent93d2609de53dbbfd6b7a4c99ce2f77cbf1def06a (diff)
frontend/mame/luaengine_debug.cpp: Got rid of another wannabe std::span.
debugger/qt/deviceinformationwindow.cpp: Fixed another C++20 thing that apparently only breaks with some compiler/OS/Qt version combinations.
Diffstat (limited to 'src/osd/modules/debugger')
-rw-r--r--src/osd/modules/debugger/qt/deviceinformationwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/modules/debugger/qt/deviceinformationwindow.cpp b/src/osd/modules/debugger/qt/deviceinformationwindow.cpp
index 2e06d8fb1ed..935d9f513fe 100644
--- a/src/osd/modules/debugger/qt/deviceinformationwindow.cpp
+++ b/src/osd/modules/debugger/qt/deviceinformationwindow.cpp
@@ -62,7 +62,7 @@ void DeviceInformationWindow::fill_device_information()
vLayout->setContentsMargins(2,2,2,2);
QFrame *primaryFrame = new QFrame(mainWindowFrame);
- primaryFrame->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
+ primaryFrame->setFrameStyle(0 | QFrame::StyledPanel | QFrame::Sunken); // zero because C++20 doesn't allow arithmetic between different enums
QGridLayout *gl1 = new QGridLayout(primaryFrame);
gl1->addWidget(new QLabel(QString("Tag"), primaryFrame), 0, 0);
gl1->addWidget(new QLabel(QString(m_device->tag()), primaryFrame), 0, 1);
@@ -90,7 +90,7 @@ void DeviceInformationWindow::fill_device_information()
if (m_device->interface(d_memory))
{
QFrame *f = new QFrame(mainWindowFrame);
- f->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
+ f->setFrameStyle(0 | QFrame::StyledPanel | QFrame::Sunken); // zero because C++20 doesn't allow arithmetic between different enums
QVBoxLayout *vb = new QVBoxLayout(f);
bool first = true;
for (int i=0; i<d_memory->max_space_count(); i++)