chore(cpn): add warning message to global variables settings edit tab (#7008)
This commit is contained in:
@@ -657,6 +657,15 @@ void TableLayout::addWidget(int row, int column, QWidget * widget, Qt::Alignment
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TableLayout::addWidget(int fromRow, int fromColumn, int rowSpan, int colSpan,
|
||||||
|
QWidget * widget, Qt::Alignment alignment)
|
||||||
|
{
|
||||||
|
#if defined(TABLE_LAYOUT)
|
||||||
|
#else
|
||||||
|
gridWidget->addWidget(widget, fromRow + 1, fromColumn, rowSpan, colSpan, alignment);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void TableLayout::addLayout(int row, int column, QLayout * layout, Qt::Alignment alignment)
|
void TableLayout::addLayout(int row, int column, QLayout * layout, Qt::Alignment alignment)
|
||||||
{
|
{
|
||||||
#if defined(TABLE_LAYOUT)
|
#if defined(TABLE_LAYOUT)
|
||||||
|
|||||||
@@ -195,8 +195,12 @@ public:
|
|||||||
TableLayout(QWidget * parent, int rowCount, const QStringList & headerLabels);
|
TableLayout(QWidget * parent, int rowCount, const QStringList & headerLabels);
|
||||||
// ~TableLayout() ;
|
// ~TableLayout() ;
|
||||||
|
|
||||||
void addWidget(int row, int column, QWidget * widget, Qt::Alignment alignment = Qt::Alignment());
|
void addWidget(int row, int column, QWidget * widget,
|
||||||
void addLayout(int row, int column, QLayout * layout, Qt::Alignment alignment = Qt::Alignment());
|
Qt::Alignment alignment = Qt::Alignment());
|
||||||
|
void addWidget(int fromRow, int fromColumn, int rowSpan, int colSpan, QWidget * widget,
|
||||||
|
Qt::Alignment alignment = Qt::Alignment());
|
||||||
|
void addLayout(int row, int column, QLayout * layout,
|
||||||
|
Qt::Alignment alignment = Qt::Alignment());
|
||||||
|
|
||||||
void resizeColumnsToContents();
|
void resizeColumnsToContents();
|
||||||
void setColumnWidth(int col, int width);
|
void setColumnWidth(int col, int width);
|
||||||
|
|||||||
@@ -154,9 +154,13 @@ GlobalVariablesPanel::GlobalVariablesPanel(QWidget * parent, ModelData & model,
|
|||||||
col += colspan;
|
col += colspan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QLabel *lblWarn = new QLabel(this);
|
||||||
|
lblWarn->setText(tr("WARNING: changing ranges or precision can affect configured Logical Switches and Special Functions"));
|
||||||
|
tableLayout->addWidget(gvars, 1, 1, -1, lblWarn);
|
||||||
|
|
||||||
disableMouseScrolling();
|
disableMouseScrolling();
|
||||||
tableLayout->resizeColumnsToContents();
|
tableLayout->resizeColumnsToContents();
|
||||||
tableLayout->pushRowsUp(gvars + 1);
|
tableLayout->pushRowsUp(gvars + 2);
|
||||||
tableLayout->pushColumnsLeft(col);
|
tableLayout->pushColumnsLeft(col);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user