QmlDesigner: Move update to extra function

Change-Id: I66cfef4ecbc1276b816fcd8397a67e8a99039813
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
Thomas Hartmann
2023-09-11 12:55:41 +02:00
parent 6ec68ca98a
commit 6744c8e081
2 changed files with 7 additions and 2 deletions

View File

@@ -765,9 +765,12 @@ void ConnectionModelBackendDelegate::setCurrentRow(int i)
//setup //setup
ConnectionModel *model = qobject_cast<ConnectionModel *>(parent()); update();
}
qDebug() << Q_FUNC_INFO << i << model; void ConnectionModelBackendDelegate::update()
{
ConnectionModel *model = qobject_cast<ConnectionModel *>(parent());
QTC_ASSERT(model, return ); QTC_ASSERT(model, return );
if (!model->connectionView()->isAttached()) if (!model->connectionView()->isAttached())

View File

@@ -270,6 +270,8 @@ public:
Q_INVOKABLE void addElse(); Q_INVOKABLE void addElse();
Q_INVOKABLE void removeElse(); Q_INVOKABLE void removeElse();
void update();
signals: signals:
void currentRowChanged(); void currentRowChanged();
void actionTypeChanged(); void actionTypeChanged();