mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-08 22:59:58 +01:00
Fix intensive call of updateUi when move a QetGraphicsTableItem
This commit is contained in:
@@ -91,11 +91,11 @@ void GraphicsTablePropertiesEditor::setTable(QetGraphicsTableItem *table)
|
||||
m_connect_list << connect(m_table_item.data(),
|
||||
&QetGraphicsTableItem::xChanged,
|
||||
this,
|
||||
&GraphicsTablePropertiesEditor::updateUi);
|
||||
&GraphicsTablePropertiesEditor::updatePosWidget);
|
||||
m_connect_list << connect(m_table_item.data(),
|
||||
&QetGraphicsTableItem::yChanged,
|
||||
this,
|
||||
&GraphicsTablePropertiesEditor::updateUi);
|
||||
&GraphicsTablePropertiesEditor::updatePosWidget);
|
||||
|
||||
|
||||
if (auto editor = PropertiesEditorFactory::propertiesEditor(table->model(), this))
|
||||
@@ -390,6 +390,12 @@ void GraphicsTablePropertiesEditor::updateUi()
|
||||
setUpEditConnection();
|
||||
}
|
||||
|
||||
void GraphicsTablePropertiesEditor::updatePosWidget()
|
||||
{
|
||||
ui->m_x_pos->setValue(m_table_item->pos().x());
|
||||
ui->m_y_pos->setValue(m_table_item->pos().y());
|
||||
}
|
||||
|
||||
void GraphicsTablePropertiesEditor::updateInfoLabel()
|
||||
{
|
||||
auto table_ = m_table_item;
|
||||
|
||||
Reference in New Issue
Block a user