GuiAppParameters GuiAppWizardDialog::parameters() const { GuiAppParameters rc; rc.className = m_filesPage->className(); rc.baseClassName = m_filesPage->baseClassName(); rc.sourceFileName = m_filesPage->sourceFileName(); rc.headerFileName = m_filesPage->headerFileName(); rc.formFileName = m_filesPage->formFileName(); rc.designerForm = m_filesPage->formInputChecked(); rc.isMobileApplication = true; if (isTargetSelected(QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID)) || isTargetSelected(QLatin1String(Constants::HARMATTAN_DEVICE_TARGET_ID)) || isTargetSelected(QLatin1String(Constants::MEEGO_DEVICE_TARGET_ID))) { rc.widgetWidth = 800; rc.widgetHeight = 480; } else if (isTargetSelected(QLatin1String(Constants::S60_DEVICE_TARGET_ID)) || isTargetSelected(QLatin1String(Constants::S60_EMULATOR_TARGET_ID))) { rc.widgetWidth = 360; rc.widgetHeight = 640; } else { rc.isMobileApplication = false; rc.widgetWidth = 400; rc.widgetHeight = 300; } return rc; }
int LibraryWizardDialog::nextId() const { if (m_targetPageId != -1) { if (currentId() == m_targetPageId) { int next = m_modulesPageId; const bool symbianTargetEnabled = isTargetSelected(QLatin1String(Constants::S60_DEVICE_TARGET_ID)) || isTargetSelected(QLatin1String(Constants::S60_EMULATOR_TARGET_ID)); // If there was no Symbian target defined we omit "Symbian specific" step // We also omit this step if the library type is not dll if (symbianTargetEnabled && (type() == QtProjectParameters::SharedLibrary || type() == QtProjectParameters::Qt4Plugin)) next = m_mobilePageId; if (next == m_modulesPageId) return skipModulesPageIfNeeded(); return next; } else if (currentId() == m_mobilePageId) { return skipModulesPageIfNeeded(); } } else if (currentId() == startId()) { return skipModulesPageIfNeeded(); } return BaseQt4ProjectWizardDialog::nextId(); }