Global variable to count placeholders quantity.
--HG-- branch : feature
This commit is contained in:
parent
2885d95a43
commit
4a6e1e104f
|
@ -140,10 +140,10 @@ DialogPatternMaterials::~DialogPatternMaterials()
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void DialogPatternMaterials::SetPatternMaterials(const QMap<int, QString> &list)
|
void DialogPatternMaterials::SetPatternMaterials(const QMap<int, QString> &list)
|
||||||
{
|
{
|
||||||
ui->tableWidget->setRowCount(9);
|
ui->tableWidget->setRowCount(userMaterialPlaceholdersQuantity);
|
||||||
QLatin1String per("%");
|
QLatin1String per("%");
|
||||||
|
|
||||||
for (int i = 0; i < 9; ++i)
|
for (int i = 0; i < userMaterialPlaceholdersQuantity; ++i)
|
||||||
{
|
{
|
||||||
QTableWidgetItem *item = new QTableWidgetItem(per + qApp->TrVars()->PlaceholderToUser(pl_userMaterial) +
|
QTableWidgetItem *item = new QTableWidgetItem(per + qApp->TrVars()->PlaceholderToUser(pl_userMaterial) +
|
||||||
QString::number(i + 1) + per);
|
QString::number(i + 1) + per);
|
||||||
|
|
|
@ -379,6 +379,8 @@ extern const QString pl_mInterlining;
|
||||||
extern const QString pl_wCut;
|
extern const QString pl_wCut;
|
||||||
extern const QString pl_wOnFold;
|
extern const QString pl_wOnFold;
|
||||||
|
|
||||||
|
const int userMaterialPlaceholdersQuantity = 9;
|
||||||
|
|
||||||
extern const QStringList labelTemplatePlaceholders;
|
extern const QStringList labelTemplatePlaceholders;
|
||||||
|
|
||||||
extern const QString cursorArrowOpenHand;
|
extern const QString cursorArrowOpenHand;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user