diff options
Diffstat (limited to 'examples/richtext/orderform')
-rw-r--r-- | examples/richtext/orderform/detailsdialog.cpp | 30 | ||||
-rw-r--r-- | examples/richtext/orderform/main.cpp | 6 | ||||
-rw-r--r-- | examples/richtext/orderform/orderform.pro | 2 |
3 files changed, 0 insertions, 38 deletions
diff --git a/examples/richtext/orderform/detailsdialog.cpp b/examples/richtext/orderform/detailsdialog.cpp index 8f54bb2615..ba395ec2bb 100644 --- a/examples/richtext/orderform/detailsdialog.cpp +++ b/examples/richtext/orderform/detailsdialog.cpp @@ -53,13 +53,8 @@ DetailsDialog::DetailsDialog(const QString &title, QWidget *parent) nameEdit = new QLineEdit; addressEdit = new QTextEdit; -#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR) - offersCheckBox = new QCheckBox(tr("Send information about\n" - "products and special offers")); -#else offersCheckBox = new QCheckBox(tr("Send information about products and " "special offers")); -#endif setupItemsTable(); @@ -71,30 +66,6 @@ DetailsDialog::DetailsDialog(const QString &title, QWidget *parent) //! [0] //! [1] -#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR) - QWidget *widgetSubscriber = new QWidget; - QGridLayout *subscriberLayout = new QGridLayout; - subscriberLayout->addWidget(nameLabel, 0, 0); - subscriberLayout->addWidget(nameEdit, 0, 1); - subscriberLayout->addWidget(addressLabel, 1, 0); - subscriberLayout->addWidget(addressEdit, 1, 1); - subscriberLayout->addWidget(offersCheckBox, 2, 0, 1, 2); - widgetSubscriber->setLayout(subscriberLayout); - - QWidget *widgetOrder = new QWidget; - QVBoxLayout *orderLayout = new QVBoxLayout; - orderLayout->addWidget(itemsTable); - widgetOrder->setLayout(orderLayout); - - QTabWidget *tabWidget = new QTabWidget; - tabWidget->addTab(widgetSubscriber, "Subscriber"); - tabWidget->addTab(widgetOrder, "Order"); - - QVBoxLayout *mainLayout = new QVBoxLayout; - mainLayout->addWidget(tabWidget); - mainLayout->addWidget(buttonBox); - setLayout(mainLayout); -#else QGridLayout *mainLayout = new QGridLayout; mainLayout->addWidget(nameLabel, 0, 0); mainLayout->addWidget(nameEdit, 0, 1); @@ -104,7 +75,6 @@ DetailsDialog::DetailsDialog(const QString &title, QWidget *parent) mainLayout->addWidget(offersCheckBox, 2, 1, 1, 2); mainLayout->addWidget(buttonBox, 3, 0, 1, 3); setLayout(mainLayout); -#endif setWindowTitle(title); } diff --git a/examples/richtext/orderform/main.cpp b/examples/richtext/orderform/main.cpp index 7aff81d6ad..eb8155fd9a 100644 --- a/examples/richtext/orderform/main.cpp +++ b/examples/richtext/orderform/main.cpp @@ -47,14 +47,8 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); MainWindow window; -#if defined(Q_OS_SYMBIAN) - window.showMaximized(); -#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR) - windows.show(); -#else window.resize(640, 480); window.show(); -#endif window.createSample(); return app.exec(); } diff --git a/examples/richtext/orderform/orderform.pro b/examples/richtext/orderform/orderform.pro index 729f66c873..999b55cb96 100644 --- a/examples/richtext/orderform/orderform.pro +++ b/examples/richtext/orderform/orderform.pro @@ -10,6 +10,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS orderform.pro sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/richtext/orderform INSTALLS += target sources -symbian: CONFIG += qt_example QT += widgets printsupport -maemo5: CONFIG += qt_example |