forked from qt-creator/qt-creator
QmlJSInspector: API cleanup
Rename setSelectedItemsByObjectReference slot to gotoObjectDefinition
This commit is contained in:
@@ -277,7 +277,7 @@ void InspectorUi::connected(ClientProxy *clientProxy)
|
|||||||
m_clientProxy = clientProxy;
|
m_clientProxy = clientProxy;
|
||||||
|
|
||||||
connect(m_clientProxy, SIGNAL(selectedItemsChanged(QList<QDeclarativeDebugObjectReference>)),
|
connect(m_clientProxy, SIGNAL(selectedItemsChanged(QList<QDeclarativeDebugObjectReference>)),
|
||||||
SLOT(setSelectedItemsByObjectReference(QList<QDeclarativeDebugObjectReference>)));
|
SLOT(gotoObjectReferenceDefinition(QList<QDeclarativeDebugObjectReference>)));
|
||||||
|
|
||||||
connect(m_clientProxy, SIGNAL(enginesChanged()), SLOT(updateEngineList()));
|
connect(m_clientProxy, SIGNAL(enginesChanged()), SLOT(updateEngineList()));
|
||||||
connect(m_clientProxy, SIGNAL(serverReloaded()), this, SLOT(serverReloaded()));
|
connect(m_clientProxy, SIGNAL(serverReloaded()), this, SLOT(serverReloaded()));
|
||||||
@@ -310,7 +310,7 @@ void InspectorUi::connected(ClientProxy *clientProxy)
|
|||||||
void InspectorUi::disconnected()
|
void InspectorUi::disconnected()
|
||||||
{
|
{
|
||||||
disconnect(m_clientProxy, SIGNAL(selectedItemsChanged(QList<QDeclarativeDebugObjectReference>)),
|
disconnect(m_clientProxy, SIGNAL(selectedItemsChanged(QList<QDeclarativeDebugObjectReference>)),
|
||||||
this, SLOT(setSelectedItemsByObjectReference(QList<QDeclarativeDebugObjectReference>)));
|
this, SLOT(gotoObjectReferenceDefinition(QList<QDeclarativeDebugObjectReference>)));
|
||||||
|
|
||||||
disconnect(m_clientProxy, SIGNAL(enginesChanged()), this, SLOT(updateEngineList()));
|
disconnect(m_clientProxy, SIGNAL(enginesChanged()), this, SLOT(updateEngineList()));
|
||||||
disconnect(m_clientProxy, SIGNAL(serverReloaded()), this, SLOT(serverReloaded()));
|
disconnect(m_clientProxy, SIGNAL(serverReloaded()), this, SLOT(serverReloaded()));
|
||||||
@@ -506,7 +506,7 @@ void InspectorUi::setSimpleDockWidgetArrangement(const Debugger::DebuggerLanguag
|
|||||||
mw->setTrackingEnabled(true);
|
mw->setTrackingEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InspectorUi::setSelectedItemsByObjectReference(QList<QDeclarativeDebugObjectReference> objectReferences)
|
void InspectorUi::gotoObjectReferenceDefinition(QList<QDeclarativeDebugObjectReference> objectReferences)
|
||||||
{
|
{
|
||||||
if (objectReferences.length())
|
if (objectReferences.length())
|
||||||
gotoObjectReferenceDefinition(objectReferences.first());
|
gotoObjectReferenceDefinition(objectReferences.first());
|
||||||
|
|||||||
@@ -123,8 +123,7 @@ private slots:
|
|||||||
void enable();
|
void enable();
|
||||||
void disable();
|
void disable();
|
||||||
void gotoObjectReferenceDefinition(const QDeclarativeDebugObjectReference &obj);
|
void gotoObjectReferenceDefinition(const QDeclarativeDebugObjectReference &obj);
|
||||||
|
void gotoObjectReferenceDefinition(QList<QDeclarativeDebugObjectReference> objectReferences);
|
||||||
void setSelectedItemsByObjectReference(QList<QDeclarativeDebugObjectReference> objectReferences);
|
|
||||||
void changeSelectedItems(const QList<QDeclarativeDebugObjectReference> &objects);
|
void changeSelectedItems(const QList<QDeclarativeDebugObjectReference> &objects);
|
||||||
|
|
||||||
void updateEngineList();
|
void updateEngineList();
|
||||||
|
|||||||
Reference in New Issue
Block a user