Rename tab.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-03-10 19:31:48 +02:00
parent 3442da18ee
commit 367c78936a
2 changed files with 9 additions and 9 deletions

View File

@ -137,7 +137,7 @@ void DialogSeamAllowance::EnableApply(bool enable)
applyAllowed = enable; applyAllowed = enable;
ui->tabSeamAllowance->setEnabled(applyAllowed); ui->tabSeamAllowance->setEnabled(applyAllowed);
ui->tabInternalPaths->setEnabled(applyAllowed); ui->tabInternalPaths->setEnabled(applyAllowed);
ui->tabPatternPieceData->setEnabled(applyAllowed); ui->tabPieceLabelData->setEnabled(applyAllowed);
ui->tabGrainline->setEnabled(applyAllowed); ui->tabGrainline->setEnabled(applyAllowed);
ui->tabPins->setEnabled(applyAllowed); ui->tabPins->setEnabled(applyAllowed);
} }
@ -920,7 +920,7 @@ void DialogSeamAllowance::TabChanged(int index)
{ {
if (index == ui->tabWidget->indexOf(ui->tabPins) if (index == ui->tabWidget->indexOf(ui->tabPins)
|| index == ui->tabWidget->indexOf(ui->tabGrainline) || index == ui->tabWidget->indexOf(ui->tabGrainline)
|| index == ui->tabWidget->indexOf(ui->tabPatternPieceData)) || index == ui->tabWidget->indexOf(ui->tabPieceLabelData))
{ {
if (m_visPins.isNull()) if (m_visPins.isNull())
{ {
@ -1326,7 +1326,7 @@ void DialogSeamAllowance::DetailPinPointChanged()
if (flagPPin) if (flagPPin)
{ {
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPatternPieceData), QIcon()); ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), QIcon());
} }
} }
else else
@ -1335,7 +1335,7 @@ void DialogSeamAllowance::DetailPinPointChanged()
color = errorColor; color = errorColor;
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png"); QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPatternPieceData), icon); ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), icon);
} }
ChangeColor(ui->labelDetailLabelTopLeftPin, color); ChangeColor(ui->labelDetailLabelTopLeftPin, color);
ChangeColor(ui->labelDetailLabelBottomRightPin, color); ChangeColor(ui->labelDetailLabelBottomRightPin, color);
@ -1356,7 +1356,7 @@ void DialogSeamAllowance::PatternPinPointChanged()
if (flagDPin) if (flagDPin)
{ {
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPatternPieceData), QIcon()); ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), QIcon());
} }
} }
else else
@ -1365,7 +1365,7 @@ void DialogSeamAllowance::PatternPinPointChanged()
color = errorColor; color = errorColor;
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png"); QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPatternPieceData), icon); ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), icon);
} }
ChangeColor(ui->labelPatternLabelTopLeftPin, color); ChangeColor(ui->labelPatternLabelTopLeftPin, color);
ChangeColor(ui->labelPatternLabelBottomRightPin, color); ChangeColor(ui->labelPatternLabelBottomRightPin, color);

View File

@ -21,7 +21,7 @@
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>4</number> <number>3</number>
</property> </property>
<widget class="QWidget" name="tabMainPath"> <widget class="QWidget" name="tabMainPath">
<attribute name="title"> <attribute name="title">
@ -896,9 +896,9 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tabPatternPieceData"> <widget class="QWidget" name="tabPieceLabelData">
<attribute name="title"> <attribute name="title">
<string>Pattern piece data</string> <string>Piece label data</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_9"> <layout class="QVBoxLayout" name="verticalLayout_9">
<item> <item>