help question mark in dialogs disabled by default in Qt6

This commit is contained in:
Sanych.by 2023-03-30 11:51:31 +03:00
parent 90293ebcda
commit 2919a20384

View File

@ -28,7 +28,7 @@ int main(int argc, char *argv[])
/* Suppresses "Qt WebEngine seems to be initialized from a plugin" warning */ /* Suppresses "Qt WebEngine seems to be initialized from a plugin" warning */
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
#endif #endif
#if defined(_WIN32) && QT_VERSION >= 0x50A01 #if defined(_WIN32) && QT_VERSION >= 0x50A01 && QT_VERSION < 0x60000
/* Suppresses help question mark in dialogs */ /* Suppresses help question mark in dialogs */
QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton); QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
#endif #endif