From d86b662d2a13f013417f826739bf575b656f93db Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 16 Apr 2020 13:03:00 +0300 Subject: [PATCH] Exclude "What is this" system button from dialog boxes. --- src/ModuleBase/ModuleBase_Dialog.cpp | 11 ++++++----- src/ModuleBase/ModuleBase_Preferences.cpp | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ModuleBase/ModuleBase_Dialog.cpp b/src/ModuleBase/ModuleBase_Dialog.cpp index 046c8abb5..f0e2bcab0 100644 --- a/src/ModuleBase/ModuleBase_Dialog.cpp +++ b/src/ModuleBase/ModuleBase_Dialog.cpp @@ -40,11 +40,12 @@ ModuleBase_Dialog::ModuleBase_Dialog(ModuleBase_IWorkshop* theParent, const QString& theId, const std::string& theDescription) : - QDialog(theParent->desktop()), - myId(theId), - myDescription(theDescription), - myWorkshop(theParent), - myActiveWidget(0) + QDialog(theParent->desktop(), + Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint), + myId(theId), + myDescription(theDescription), + myWorkshop(theParent), + myActiveWidget(0) { ModuleBase_WidgetFactory aFactory(myDescription, myWorkshop); QString aTitle = ModuleBase_Tools::translate("ModuleBase_Dialog", diff --git a/src/ModuleBase/ModuleBase_Preferences.cpp b/src/ModuleBase/ModuleBase_Preferences.cpp index ac5aae4c6..0ee5d0aee 100644 --- a/src/ModuleBase/ModuleBase_Preferences.cpp +++ b/src/ModuleBase/ModuleBase_Preferences.cpp @@ -267,7 +267,8 @@ private: //********************************************************** ModuleBase_PreferencesDlg::ModuleBase_PreferencesDlg(SUIT_ResourceMgr* theResurces, QWidget* theParent) - : QDialog(theParent), + : QDialog(theParent, + Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint), myIsChanged(false) { setWindowTitle(tr("Edit preferences")); -- 2.39.2