From 23c4f8190415c89817fcaf1ac91e9fffaf6cfde1 Mon Sep 17 00:00:00 2001 From: Ronan Le Tiec Date: Tue, 10 Nov 2020 21:46:23 +0100 Subject: [PATCH] Hide some ui elements for MVP --- src/app/puzzle/vpmainwindow.cpp | 12 +++++++++++- src/app/puzzle/vpmainwindow.ui | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/app/puzzle/vpmainwindow.cpp b/src/app/puzzle/vpmainwindow.cpp index f41ee55ec..34ed3bd96 100644 --- a/src/app/puzzle/vpmainwindow.cpp +++ b/src/app/puzzle/vpmainwindow.cpp @@ -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 } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/app/puzzle/vpmainwindow.ui b/src/app/puzzle/vpmainwindow.ui index ab98f6eb8..0ad8dd2c2 100644 --- a/src/app/puzzle/vpmainwindow.ui +++ b/src/app/puzzle/vpmainwindow.ui @@ -176,7 +176,7 @@ QTabWidget::Rounded - 0 + 1