Salome HOME
Exclude "What is this" system button from dialog boxes.
authorvsv <vsv@opencascade.com>
Thu, 16 Apr 2020 10:03:00 +0000 (13:03 +0300)
committervsv <vsv@opencascade.com>
Thu, 16 Apr 2020 10:03:00 +0000 (13:03 +0300)
src/ModuleBase/ModuleBase_Dialog.cpp
src/ModuleBase/ModuleBase_Preferences.cpp

index 046c8abb55ee9674f57b598bf407df3f54f28037..f0e2bcab0c91659a7e6391045433b69789829245 100644 (file)
 
 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",
index ac5aae4c68dbe9d4808a03446dec50224ba1532b..0ee5d0aee0a6bffd81059d48b5f9c6c07168f7fa 100644 (file)
@@ -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"));