Qt: Remove "What's this?" button from modal message boxes
This commit is contained in:
parent
147f7ca321
commit
86d036ec4b
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue