From 2489f525f7168878d331e140d261a3c731c58a06 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 10 Nov 2016 11:27:59 +0200 Subject: [PATCH] Added tab Seam allowance. Disabled if Apply button is not active. --HG-- branch : feature --- src/libs/vtools/dialogs/tools/dialogseamallowance.cpp | 1 + src/libs/vtools/dialogs/tools/dialogseamallowance.ui | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp b/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp index 567f8ad93..830cd110e 100644 --- a/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp +++ b/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp @@ -72,6 +72,7 @@ void DialogSeamAllowance::EnableApply(bool enable) SCASSERT(bApply != nullptr); bApply->setEnabled(enable); applyAllowed = enable; + ui->tabSeamAllowance->setEnabled(applyAllowed); } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/vtools/dialogs/tools/dialogseamallowance.ui b/src/libs/vtools/dialogs/tools/dialogseamallowance.ui index 78d9d7889..d2c6808b9 100644 --- a/src/libs/vtools/dialogs/tools/dialogseamallowance.ui +++ b/src/libs/vtools/dialogs/tools/dialogseamallowance.ui @@ -80,6 +80,11 @@ + + + Seam allowance + +