Changes for Qt 6 on MacOS

This commit is contained in:
Ray Chason
2021-12-30 10:56:06 -08:00
committed by PatR
parent d53cd28d46
commit 1f7541e496
25 changed files with 536 additions and 33 deletions
+3
View File
@@ -78,6 +78,7 @@
extern "C" {
#include "hack.h"
}
#undef C
#include "qt_pre.h"
#include <QtGui/QtGui>
@@ -558,7 +559,9 @@ QHBoxLayout *NetHackQtStatusWindow::InitHitpointBar()
QHBoxLayout *hpbar = new QHBoxLayout;
hpbar->setSpacing(0);
#if QT_VERSION < 0x060000
hpbar->setMargin(0);
#endif
hpbar->addWidget(&hpbar_health);
hpbar->setAlignment(&hpbar_health, Qt::AlignLeft);
hpbar->addWidget(&hpbar_injury);