From 39cdbd1c70664618d6eebd6b33953a0e58e542c1 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 11 Apr 2024 20:15:58 +0300 Subject: [PATCH] Show piece copy number. --- src/app/puzzle/vpmainwindow.cpp | 1 + src/app/puzzle/vpmainwindow.ui | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/app/puzzle/vpmainwindow.cpp b/src/app/puzzle/vpmainwindow.cpp index e2098b4b1..addf759ab 100644 --- a/src/app/puzzle/vpmainwindow.cpp +++ b/src/app/puzzle/vpmainwindow.cpp @@ -1364,6 +1364,7 @@ void VPMainWindow::SetPropertyTabCurrentPieceData() SetLineEditValue(ui->lineEditCurrentPieceName, selectedPiece->GetName()); SetPlainTextEditValue(ui->plainTextEditCurrentPieceUUID, selectedPiece->GetUUID().toString()); SetLineEditValue(ui->lineEditCurrentPieceGradationId, selectedPiece->GetGradationId()); + SetLineEditValue(ui->lineEditCopyNumber, QString::number(selectedPiece->CopyNumber())); SetCheckBoxValue(ui->checkBoxCurrentPieceShowSeamline, not selectedPiece->IsHideMainPath()); SetCheckBoxValue(ui->checkBoxCurrentPieceVerticallyFlipped, selectedPiece->IsVerticallyFlipped()); diff --git a/src/app/puzzle/vpmainwindow.ui b/src/app/puzzle/vpmainwindow.ui index 76b3b9fe2..84d16c6bc 100644 --- a/src/app/puzzle/vpmainwindow.ui +++ b/src/app/puzzle/vpmainwindow.ui @@ -280,7 +280,7 @@ 0 0 378 - 721 + 752 @@ -378,6 +378,20 @@ + + + + Copy number: + + + + + + + true + + + @@ -2442,7 +2456,7 @@ - +