Rename tab.
--HG-- branch : feature
This commit is contained in:
parent
3442da18ee
commit
367c78936a
|
@ -137,7 +137,7 @@ void DialogSeamAllowance::EnableApply(bool enable)
|
|||
applyAllowed = enable;
|
||||
ui->tabSeamAllowance->setEnabled(applyAllowed);
|
||||
ui->tabInternalPaths->setEnabled(applyAllowed);
|
||||
ui->tabPatternPieceData->setEnabled(applyAllowed);
|
||||
ui->tabPieceLabelData->setEnabled(applyAllowed);
|
||||
ui->tabGrainline->setEnabled(applyAllowed);
|
||||
ui->tabPins->setEnabled(applyAllowed);
|
||||
}
|
||||
|
@ -920,7 +920,7 @@ void DialogSeamAllowance::TabChanged(int index)
|
|||
{
|
||||
if (index == ui->tabWidget->indexOf(ui->tabPins)
|
||||
|| index == ui->tabWidget->indexOf(ui->tabGrainline)
|
||||
|| index == ui->tabWidget->indexOf(ui->tabPatternPieceData))
|
||||
|| index == ui->tabWidget->indexOf(ui->tabPieceLabelData))
|
||||
{
|
||||
if (m_visPins.isNull())
|
||||
{
|
||||
|
@ -1326,7 +1326,7 @@ void DialogSeamAllowance::DetailPinPointChanged()
|
|||
|
||||
if (flagPPin)
|
||||
{
|
||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPatternPieceData), QIcon());
|
||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), QIcon());
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1335,7 +1335,7 @@ void DialogSeamAllowance::DetailPinPointChanged()
|
|||
color = errorColor;
|
||||
|
||||
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->labelDetailLabelBottomRightPin, color);
|
||||
|
@ -1356,7 +1356,7 @@ void DialogSeamAllowance::PatternPinPointChanged()
|
|||
|
||||
if (flagDPin)
|
||||
{
|
||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPatternPieceData), QIcon());
|
||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), QIcon());
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1365,7 +1365,7 @@ void DialogSeamAllowance::PatternPinPointChanged()
|
|||
color = errorColor;
|
||||
|
||||
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->labelPatternLabelBottomRightPin, color);
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>4</number>
|
||||
<number>3</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tabMainPath">
|
||||
<attribute name="title">
|
||||
|
@ -896,9 +896,9 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tabPatternPieceData">
|
||||
<widget class="QWidget" name="tabPieceLabelData">
|
||||
<attribute name="title">
|
||||
<string>Pattern piece data</string>
|
||||
<string>Piece label data</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_9">
|
||||
<item>
|
||||
|
|
Loading…
Reference in New Issue
Block a user