Qt: Remove "What's this?" button from modal message boxes

This commit is contained in:
Techjar 2019-03-04 18:55:08 -05:00
parent 147f7ca321
commit 86d036ec4b
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@
ModalMessageBox::ModalMessageBox(QWidget* parent) : QMessageBox(parent)
{
setWindowModality(Qt::WindowModal);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
// No parent is still preferable to showing a hidden parent here.
if (parent != nullptr && !parent->isVisible())