diff options
Diffstat (limited to 'examples/draganddrop/fridgemagnets')
-rw-r--r-- | examples/draganddrop/fridgemagnets/dragwidget.cpp | 6 | ||||
-rw-r--r-- | examples/draganddrop/fridgemagnets/fridgemagnets.pro | 6 | ||||
-rw-r--r-- | examples/draganddrop/fridgemagnets/main.cpp | 4 |
3 files changed, 0 insertions, 16 deletions
diff --git a/examples/draganddrop/fridgemagnets/dragwidget.cpp b/examples/draganddrop/fridgemagnets/dragwidget.cpp index 3dcd406174..44b377ab89 100644 --- a/examples/draganddrop/fridgemagnets/dragwidget.cpp +++ b/examples/draganddrop/fridgemagnets/dragwidget.cpp @@ -65,11 +65,7 @@ DragWidget::DragWidget(QWidget *parent) wordLabel->show(); wordLabel->setAttribute(Qt::WA_DeleteOnClose); x += wordLabel->width() + 2; -#if defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR) - if (x >= 345) { -#else if (x >= 245) { -#endif x = 5; y += wordLabel->height() + 2; } @@ -78,12 +74,10 @@ DragWidget::DragWidget(QWidget *parent) //! [1] //! [2] - #ifndef Q_WS_S60 //Fridge magnets is used for demoing Qt on S60 and themed backgrounds look better than white QPalette newPalette = palette(); newPalette.setColor(QPalette::Window, Qt::white); setPalette(newPalette); - #endif setMinimumSize(400, qMax(200, y)); setWindowTitle(tr("Fridge Magnets")); diff --git a/examples/draganddrop/fridgemagnets/fridgemagnets.pro b/examples/draganddrop/fridgemagnets/fridgemagnets.pro index 481fffd5fe..2bbfdf0b3a 100644 --- a/examples/draganddrop/fridgemagnets/fridgemagnets.pro +++ b/examples/draganddrop/fridgemagnets/fridgemagnets.pro @@ -11,11 +11,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.txt sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/draganddrop/fridgemagnets INSTALLS += target sources -symbian { - TARGET.UID3 = 0xA000C610 - CONFIG += qt_example -} - QT += widgets -maemo5: CONFIG += qt_example diff --git a/examples/draganddrop/fridgemagnets/main.cpp b/examples/draganddrop/fridgemagnets/main.cpp index 623e6d2718..ae2ecb4bde 100644 --- a/examples/draganddrop/fridgemagnets/main.cpp +++ b/examples/draganddrop/fridgemagnets/main.cpp @@ -51,15 +51,11 @@ int main(int argc, char *argv[]) #endif DragWidget window; -#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR) - window.showMaximized(); -#else bool smallScreen = QApplication::arguments().contains("-small-screen"); if (smallScreen) window.showFullScreen(); else window.show(); -#endif return app.exec(); } |