Hide some ui elements for MVP

This commit is contained in:
Ronan Le Tiec 2020-11-10 21:46:23 +01:00
parent f448514c71
commit 23c4f81904
2 changed files with 12 additions and 2 deletions

View File

@ -369,6 +369,9 @@ void VPMainWindow::SetPropertyTabCurrentPieceData()
qreal angle = selectedPiece->GetRotation();
SetDoubleSpinBoxValue(ui->doubleSpinBoxCurrentPieceAngle, angle);
// FIXME ---- For MVP we hide a few things. To be displayed when functions there
ui->groupBoxLayoutControl->hide();
}
else
{
@ -415,6 +418,10 @@ void VPMainWindow::SetPropertyTabSheetData()
// set the checkboxes
SetCheckBoxValue(ui->checkBoxSheetStickyEdges, m_layout->GetFocusedSheet()->GetStickyEdges());
// FIXME ---- For MVP we hide a few things. To be displayed when functions there
ui->pushButtonSheetRemoveUnusedLength->hide();
ui->groupBoxSheetControl->hide();
}
//---------------------------------------------------------------------------------------------------------------------
@ -434,12 +441,15 @@ void VPMainWindow::SetPropertyTabLayoutData()
// set controls
SetCheckBoxValue(ui->checkBoxLayoutWarningPiecesOutOfBound, m_layout->GetWarningPiecesOutOfBound());
SetCheckBoxValue(ui->checkBoxLayoutWarningPiecesSuperposition, m_layout->GetWarningSuperpositionOfPieces());
// FIXME ---- For MVP we hide a few things. To be displayed when functions there
ui->groupBoxLayoutControl->hide();
}
//---------------------------------------------------------------------------------------------------------------------
void VPMainWindow::SetPropertyTabTilesData()
{
// TODO
}
//---------------------------------------------------------------------------------------------------------------------

View File

@ -176,7 +176,7 @@
<enum>QTabWidget::Rounded</enum>
</property>
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<property name="iconSize">
<size>