From: vsv Date: Thu, 16 Apr 2020 10:03:00 +0000 (+0300) Subject: Exclude "What is this" system button from dialog boxes. X-Git-Tag: V9_5_0b1~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d86b662d2a13f013417f826739bf575b656f93db;p=modules%2Fshaper.git Exclude "What is this" system button from dialog boxes. --- 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"));