QString Qt4UiCodeModelSupport::uicCommand() const { QtSupport::BaseQtVersion *version; if (m_project->needsConfiguration()) { version = QtSupport::QtKitInformation::qtVersion(ProjectExplorer::KitManager::instance()->defaultKit()); } else { ProjectExplorer::Target *target = m_project->activeTarget(); version = QtSupport::QtKitInformation::qtVersion(target->kit()); } return version ? version->uicCommand() : QString(); }
Utils::FileName UicGenerator::command() const { QtSupport::BaseQtVersion *version = nullptr; Target *target; if ((target = project()->activeTarget())) version = QtSupport::QtKitInformation::qtVersion(target->kit()); else version = QtSupport::QtKitInformation::qtVersion(KitManager::defaultKit()); if (!version) return Utils::FileName(); return Utils::FileName::fromString(version->uicCommand()); }