Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- setStretchLastSection of TransformationsWidget so that Horizontal sliders appear.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24098 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Jan 19, 2015
1 parent 778a445 commit 2ddf945
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -410,6 +410,7 @@ TVariablesTreeView::TVariablesTreeView(TransformationsWidget *pTransformationsWi
setSortingEnabled(true);
sortByColumn(0, Qt::AscendingOrder);
setExpandsOnDoubleClick(false);
header()->setStretchLastSection(true);
}

EquationTreeWidget::EquationTreeWidget(TransformationsWidget *pTransformationWidget)
Expand All @@ -432,6 +433,7 @@ EquationTreeWidget::EquationTreeWidget(TransformationsWidget *pTransformationWid
QStringList headerLabels;
headerLabels << Helper::index << Helper::type << Helper::equation << Helper::executionCount << Helper::executionMaxTime << Helper::executionTime << Helper::executionFraction;
setHeaderLabels(headerLabels);
header()->setStretchLastSection(true);
connect(this, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), mpTransformationWidget, SLOT(fetchEquationData(QTreeWidgetItem*,int)));
}

Expand Down Expand Up @@ -539,6 +541,7 @@ TransformationsWidget::TransformationsWidget(QString infoXMLFullFileName, MainWi
mpVariableOperationsTreeWidget->setColumnCount(1);
mpVariableOperationsTreeWidget->setTextElideMode(Qt::ElideMiddle);
mpVariableOperationsTreeWidget->setHeaderLabel(tr("Operations"));
mpVariableOperationsTreeWidget->header()->setStretchLastSection(true);
QGridLayout *pVariableOperationsGridLayout = new QGridLayout;
pVariableOperationsGridLayout->setSpacing(1);
pVariableOperationsGridLayout->setContentsMargins(0, 0, 0, 0);
Expand Down Expand Up @@ -573,6 +576,7 @@ TransformationsWidget::TransformationsWidget(QString infoXMLFullFileName, MainWi
QStringList headerLabels;
headerLabels << tr("Variable");
mpDefinesVariableTreeWidget->setHeaderLabels(headerLabels);
mpDefinesVariableTreeWidget->header()->setStretchLastSection(true);
QGridLayout *pDefinesGridLayout = new QGridLayout;
pDefinesGridLayout->setSpacing(1);
pDefinesGridLayout->setContentsMargins(0, 0, 0, 0);
Expand All @@ -591,6 +595,7 @@ TransformationsWidget::TransformationsWidget(QString infoXMLFullFileName, MainWi
mpDependsVariableTreeWidget->setSortingEnabled(true);
mpDependsVariableTreeWidget->sortByColumn(0, Qt::AscendingOrder);
mpDependsVariableTreeWidget->setHeaderLabel(tr("Variable"));
mpDependsVariableTreeWidget->header()->setStretchLastSection(true);
QGridLayout *pDependsGridLayout = new QGridLayout;
pDependsGridLayout->setSpacing(1);
pDependsGridLayout->setContentsMargins(0, 0, 0, 0);
Expand All @@ -607,6 +612,7 @@ TransformationsWidget::TransformationsWidget(QString infoXMLFullFileName, MainWi
mpEquationOperationsTreeWidget->setColumnCount(1);
mpEquationOperationsTreeWidget->setTextElideMode(Qt::ElideMiddle);
mpEquationOperationsTreeWidget->setHeaderLabel(tr("Operations"));
mpEquationOperationsTreeWidget->header()->setStretchLastSection(true);
QGridLayout *pEquationOperationsGridLayout = new QGridLayout;
pEquationOperationsGridLayout->setSpacing(1);
pEquationOperationsGridLayout->setContentsMargins(0, 0, 0, 0);
Expand Down

0 comments on commit 2ddf945

Please sign in to comment.