summaryrefslogtreecommitdiffstats
path: root/examples/calendardemo/src/todoeditpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/calendardemo/src/todoeditpage.cpp')
-rw-r--r--examples/calendardemo/src/todoeditpage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/calendardemo/src/todoeditpage.cpp b/examples/calendardemo/src/todoeditpage.cpp
index b4cb0d05b5..ea60d6acaa 100644
--- a/examples/calendardemo/src/todoeditpage.cpp
+++ b/examples/calendardemo/src/todoeditpage.cpp
@@ -86,7 +86,7 @@ TodoEditPage::TodoEditPage(QWidget *parent)
m_calendarComboBox = new QComboBox(this);
// the calendar names are not know here, fill the combo box later...
-#ifndef Q_OS_SYMBIAN
+#if !(defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR))
// Add push buttons for non-Symbian platforms as they do not support soft keys
QHBoxLayout* hbLayout = new QHBoxLayout();
QPushButton *okButton = new QPushButton("Save", this);
@@ -119,7 +119,8 @@ TodoEditPage::TodoEditPage(QWidget *parent)
scrollAreaLayout->addWidget(calendarLabel);
scrollAreaLayout->addWidget(m_calendarComboBox);
scrollAreaLayout->addStretch();
-#ifndef Q_OS_SYMBIAN
+
+#if !(defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR))
scrollAreaLayout->addLayout(hbLayout);
#endif