mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix minor gui wrong behavior
This commit is contained in:
@@ -180,6 +180,7 @@ void TerminalStripEditor::reload()
|
|||||||
if (m_model)
|
if (m_model)
|
||||||
{
|
{
|
||||||
m_model->reload();
|
m_model->reload();
|
||||||
|
spanMultiLevelTerminals();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ QVariant TerminalStripModel::data(const QModelIndex &index, int role) const
|
|||||||
{
|
{
|
||||||
return mrtd.led_ ? Qt::Checked : Qt::Unchecked;
|
return mrtd.led_ ? Qt::Checked : Qt::Unchecked;
|
||||||
}
|
}
|
||||||
else if (role == Qt::BackgroundRole && index.column() <= CONDUCTOR_CELL )
|
else if (role == Qt::BackgroundRole && index.column() < COLUMN_COUNT )
|
||||||
{
|
{
|
||||||
if (m_modified_cell.contains(mrtd.element_) &&
|
if (m_modified_cell.contains(mrtd.element_) &&
|
||||||
m_modified_cell.value(mrtd.element_).at(index.column()))
|
m_modified_cell.value(mrtd.element_).at(index.column()))
|
||||||
|
|||||||
Reference in New Issue
Block a user