Mobile wizards: Don't show orientation options for Harmattan & Meego.

This commit is contained in:
Christian Kandeler
2011-04-07 17:08:06 +02:00
parent 86a5da6f68
commit 11974a1449
4 changed files with 14 additions and 4 deletions

View File

@@ -31,7 +31,9 @@ public:
void loadFile(const QString &fileName);
void loadUrl(const QUrl &url);
// Note that this will only have an effect on Symbian and Fremantle.
void setOrientation(ScreenOrientation orientation);
void showExpanded();
QGraphicsWebView *webView() const;

View File

@@ -20,7 +20,9 @@ public:
explicit MainWindow(QWidget *parent = 0);
virtual ~MainWindow();
// Note that this will only have an effect on Symbian and Fremantle.
void setOrientation(ScreenOrientation orientation);
void showExpanded();
private:

View File

@@ -28,7 +28,10 @@ public:
void setMainQmlFile(const QString &file);
void addImportPath(const QString &path);
// Note that this will only have an effect on Symbian and Fremantle.
void setOrientation(ScreenOrientation orientation);
void showExpanded();
private:

View File

@@ -94,14 +94,17 @@ int AbstractMobileAppWizardDialog::nextId() const
const bool symbianTargetSelected =
m_targetsPage->isTargetSelected(QLatin1String(Constants::S60_EMULATOR_TARGET_ID))
|| m_targetsPage->isTargetSelected(QLatin1String(Constants::S60_DEVICE_TARGET_ID));
const bool maemoTargetSelected =
m_targetsPage->isTargetSelected(QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID))
const bool fremantleTargetSelected
= m_targetsPage->isTargetSelected(QLatin1String(Constants::MAEMO5_DEVICE_TARGET_ID));
const bool maemoTargetSelected = fremantleTargetSelected
|| m_targetsPage->isTargetSelected(QLatin1String(Constants::HARMATTAN_DEVICE_TARGET_ID))
|| m_targetsPage->isTargetSelected(QLatin1String(Constants::MEEGO_DEVICE_TARGET_ID));
if (currentPage() == m_targetsPage) {
if (symbianTargetSelected || maemoTargetSelected)
if (symbianTargetSelected || fremantleTargetSelected)
return m_genericOptionsPageId;
else if (maemoTargetSelected)
return m_maemoOptionsPageId;
else
return idOfNextGenericPage();
} else if (currentPage() == m_genericOptionsPage) {
@@ -122,7 +125,7 @@ int AbstractMobileAppWizardDialog::nextId() const
void AbstractMobileAppWizardDialog::initializePage(int id)
{
if (id == startId()) {
m_targetItem->setNextItems(QList<Utils::WizardProgressItem *>() << m_genericItem << itemOfNextGenericPage());
m_targetItem->setNextItems(QList<Utils::WizardProgressItem *>() << m_genericItem << m_maemoItem << itemOfNextGenericPage());
m_genericItem->setNextItems(QList<Utils::WizardProgressItem *>() << m_symbianItem << m_maemoItem);
m_symbianItem->setNextItems(QList<Utils::WizardProgressItem *>() << m_maemoItem << itemOfNextGenericPage());
} else if (id == m_genericOptionsPageId) {