Skip to content

Commit

Permalink
- Fixed the parameters visibility problem.
Browse files Browse the repository at this point in the history
- Added the scrollbar when there are many parameters to display.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10996 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Feb 1, 2012
1 parent 8d76448 commit a00b966
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion OMEdit/OMEditGUI/IconProperties.cpp
Expand Up @@ -91,7 +91,11 @@ void IconProperties::setUpDialog()
mpGeneralTab = new QWidget(mpPropertiesTabWidget);
mpPropertiesTabWidget->addTab(mpGeneralTab, tr("General"));
mpParametersTab = new QWidget(mpPropertiesTabWidget);
mpPropertiesTabWidget->addTab(mpParametersTab, tr("Parameters"));
mpParametersTabScrollArea = new QScrollArea;
mpParametersTabScrollArea->setFrameShape(QFrame::NoFrame);
mpParametersTabScrollArea->setBackgroundRole(QPalette::Base);
mpParametersTabScrollArea->setWidgetResizable(true);
mpPropertiesTabWidget->addTab(mpParametersTabScrollArea, tr("Parameters"));
mpModifiersTab = new QWidget(mpPropertiesTabWidget);
mpPropertiesTabWidget->addTab(mpModifiersTab, tr("Modifiers"));

Expand Down Expand Up @@ -169,6 +173,7 @@ void IconProperties::setUpDialog()
QGridLayout *mainLayout = new QGridLayout;
mainLayout->addLayout(horizontalLayout, 0, 0);
mainLayout->addWidget(mHorizontalLine, 1, 0);
mpParametersTabScrollArea->setWidget(mpParametersTab);
mainLayout->addWidget(mpPropertiesTabWidget, 2, 0);
mainLayout->addWidget(mpButtonBox, 3, 0);

Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/IconProperties.h
Expand Up @@ -65,6 +65,7 @@ class IconProperties : public QDialog
QLabel *mpIconModelCommentLabel;
QLabel *mpIconModelCommentTextBox;
QWidget *mpParametersTab;
QScrollArea *mpParametersTabScrollArea;
QWidget *mpModifiersTab;
QLabel *mpModifiersLabel;
QLineEdit *mpModifiersTextBox;
Expand Down

0 comments on commit a00b966

Please sign in to comment.