forked from qt-creator/qt-creator
ProjectExplorer: Rename KitInformation to KitAspect
The name "KitInformation" does not properly convey the fact that it represents a certain *aspect* of a kit. The same goes for "KitConfigWidget", which in addition was inconsistent with "KitInformation". We now use "KitAspect" and "KitAspectWidget". Change-Id: I9804ee4cedc4d61fad533ea1dd4e4720e67fde97 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -72,7 +72,7 @@ namespace Internal {
|
||||
|
||||
static QStringList searchPaths(Kit *kit)
|
||||
{
|
||||
auto qtVersion = dynamic_cast<QnxQtVersion *>(QtSupport::QtKitInformation::qtVersion(kit));
|
||||
auto qtVersion = dynamic_cast<QnxQtVersion *>(QtSupport::QtKitAspect::qtVersion(kit));
|
||||
if (!qtVersion)
|
||||
return {};
|
||||
|
||||
@@ -157,7 +157,7 @@ QnxDebugSupport::QnxDebugSupport(RunControl *runControl)
|
||||
setCloseMode(KillAtClose);
|
||||
setUseCtrlCStub(true);
|
||||
setSolibSearchPath(searchPaths(k));
|
||||
if (auto qtVersion = dynamic_cast<QnxQtVersion *>(QtSupport::QtKitInformation::qtVersion(k)))
|
||||
if (auto qtVersion = dynamic_cast<QnxQtVersion *>(QtSupport::QtKitAspect::qtVersion(k)))
|
||||
setSysRoot(qtVersion->qnxTarget());
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ void QnxAttachDebugSupport::showProcessesDialog()
|
||||
{
|
||||
auto kitChooser = new KitChooser;
|
||||
kitChooser->setKitPredicate([](const Kit *k) {
|
||||
return k->isValid() && DeviceTypeKitInformation::deviceTypeId(k) == Constants::QNX_QNX_OS_TYPE;
|
||||
return k->isValid() && DeviceTypeKitAspect::deviceTypeId(k) == Constants::QNX_QNX_OS_TYPE;
|
||||
});
|
||||
|
||||
QnxAttachDebugDialog dlg(kitChooser);
|
||||
@@ -279,7 +279,7 @@ void QnxAttachDebugSupport::showProcessesDialog()
|
||||
// setRunControlName(tr("Remote: \"%1\" - Process %2").arg(remoteChannel).arg(m_process.pid));
|
||||
debugger->setRunControlName(tr("Remote QNX process %1").arg(pid));
|
||||
debugger->setSolibSearchPath(searchPaths(kit));
|
||||
if (auto qtVersion = dynamic_cast<QnxQtVersion *>(QtSupport::QtKitInformation::qtVersion(kit)))
|
||||
if (auto qtVersion = dynamic_cast<QnxQtVersion *>(QtSupport::QtKitAspect::qtVersion(kit)))
|
||||
debugger->setSysRoot(qtVersion->qnxTarget());
|
||||
debugger->setUseContinueInsteadOfRun(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user