forked from qt-creator/qt-creator
QmlDesigner: Move update to extra function
Change-Id: I66cfef4ecbc1276b816fcd8397a67e8a99039813 Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
@@ -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())
|
||||||
|
@@ -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();
|
||||||
|
Reference in New Issue
Block a user