summaryrefslogtreecommitdiffstats
path: root/examples/draganddrop/fridgemagnets/dragwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/draganddrop/fridgemagnets/dragwidget.cpp')
-rw-r--r--examples/draganddrop/fridgemagnets/dragwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/draganddrop/fridgemagnets/dragwidget.cpp b/examples/draganddrop/fridgemagnets/dragwidget.cpp
index a2593a9b35..3dcd406174 100644
--- a/examples/draganddrop/fridgemagnets/dragwidget.cpp
+++ b/examples/draganddrop/fridgemagnets/dragwidget.cpp
@@ -65,7 +65,11 @@ 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;
}