Skip to content

Commit

Permalink
- Changed instantiate/check model from QDialog to QWidget. Some platf…
Browse files Browse the repository at this point in the history
…orms doesn't support Qt::WindowMinMaxButtonsHint.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19175 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Feb 18, 2014
1 parent 85d3d91 commit c0614ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/GUI/Dialogs/ModelicaClassDialog.cpp
Expand Up @@ -876,7 +876,7 @@ void RenameClassDialog::renameClass()
\param pParent - pointer to MainWindow
*/
InformationDialog::InformationDialog(QString windowTitle, QString informationText, bool modelicaTextHighlighter, MainWindow *pMainWindow)
: QDialog(pMainWindow, Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint)
: QWidget(pMainWindow, Qt::Window)
{
setAttribute(Qt::WA_DeleteOnClose);
setWindowTitle(QString(Helper::applicationName).append(" - ").append(windowTitle));
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/GUI/Dialogs/ModelicaClassDialog.h
Expand Up @@ -165,7 +165,7 @@ public slots:
};

class LibraryTreeNode;
class InformationDialog : public QDialog
class InformationDialog : public QWidget
{
private:
MainWindow *mpMainWindow;
Expand Down

0 comments on commit c0614ad

Please sign in to comment.