Changes for Qt 6 on MacOS
This commit is contained in:
@@ -77,6 +77,7 @@ extern "C" {
|
||||
#include "hack.h"
|
||||
#include "func_tab.h"
|
||||
}
|
||||
#undef C
|
||||
|
||||
#include "qt_pre.h"
|
||||
#include <QtGui/QtGui>
|
||||
@@ -544,7 +545,7 @@ void NetHackQtExtCmdRequestor::keyPressEvent(QKeyEvent *event)
|
||||
// <return> or <space> without a pending exact match; cancel
|
||||
reject();
|
||||
} else if (matches >= 2
|
||||
|| promptstr.midRef(1, len) == rest.leftRef(len)) {
|
||||
|| promptstr.mid(1, len) == rest.left(len)) {
|
||||
// update the text-so-far
|
||||
prompt->setText(promptstr);
|
||||
} else if (saveexactmatchindx != xcmdNoMatch) {
|
||||
|
||||
Reference in New Issue
Block a user