summaryrefslogtreecommitdiff
path: root/examples/sql/drilldown/view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql/drilldown/view.cpp')
-rw-r--r--examples/sql/drilldown/view.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/examples/sql/drilldown/view.cpp b/examples/sql/drilldown/view.cpp
index 29d15057c2..42a2bfc629 100644
--- a/examples/sql/drilldown/view.cpp
+++ b/examples/sql/drilldown/view.cpp
@@ -63,9 +63,14 @@ View::View(const QString &offices, const QString &images, QWidget *parent)
QGraphicsPixmapItem *logo = scene->addPixmap(QPixmap(":/logo.png"));
logo->setPos(30, 515);
+#ifndef Q_OS_SYMBIAN
setMinimumSize(470, 620);
setMaximumSize(470, 620);
- setWindowTitle(tr("Offices World Wide"));
+#else
+ setDragMode(QGraphicsView::ScrollHandDrag);
+#endif
+
+ setWindowTitle(tr("Offices World Wide"));
}
//! [1]
@@ -126,7 +131,11 @@ void View::showInformation(ImageItem *image)
window->raise();
window->activateWindow();
} else if (window && !window->isVisible()) {
+#ifndef Q_OS_SYMBIAN
window->show();
+#else
+ window->showFullScreen();
+#endif
} else {
InformationWindow *window;
window = new InformationWindow(id, officeTable, this);
@@ -134,8 +143,12 @@ void View::showInformation(ImageItem *image)
connect(window, SIGNAL(imageChanged(int, QString)),
this, SLOT(updateImage(int, QString)));
+#ifndef Q_OS_SYMBIAN
window->move(pos() + QPoint(20, 40));
window->show();
+#else
+ window->showFullScreen();
+#endif
informationWindows.append(window);
}
}