summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/elasticnodes
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphicsview/elasticnodes')
-rw-r--r--examples/graphicsview/elasticnodes/elasticnodes.pro7
-rw-r--r--examples/graphicsview/elasticnodes/graphwidget.cpp2
-rw-r--r--examples/graphicsview/elasticnodes/main.cpp7
-rw-r--r--examples/graphicsview/elasticnodes/node.cpp12
4 files changed, 0 insertions, 28 deletions
diff --git a/examples/graphicsview/elasticnodes/elasticnodes.pro b/examples/graphicsview/elasticnodes/elasticnodes.pro
index 6b591a8c66..2a61809457 100644
--- a/examples/graphicsview/elasticnodes/elasticnodes.pro
+++ b/examples/graphicsview/elasticnodes/elasticnodes.pro
@@ -17,11 +17,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS elasticnodes.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/elasticnodes
INSTALLS += target sources
-symbian {
- TARGET.UID3 = 0xA000A642
- CONFIG += qt_example
-}
QT += widgets
-maemo5: CONFIG += qt_example
-
-simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/graphicsview/elasticnodes/graphwidget.cpp b/examples/graphicsview/elasticnodes/graphwidget.cpp
index 48a9784c54..6c54ca2381 100644
--- a/examples/graphicsview/elasticnodes/graphwidget.cpp
+++ b/examples/graphicsview/elasticnodes/graphwidget.cpp
@@ -203,7 +203,6 @@ void GraphWidget::drawBackground(QPainter *painter, const QRectF &rect)
painter->setBrush(Qt::NoBrush);
painter->drawRect(sceneRect);
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5)
// Text
QRectF textRect(sceneRect.left() + 4, sceneRect.top() + 4,
sceneRect.width() - 4, sceneRect.height() - 4);
@@ -218,7 +217,6 @@ void GraphWidget::drawBackground(QPainter *painter, const QRectF &rect)
painter->drawText(textRect.translated(2, 2), message);
painter->setPen(Qt::black);
painter->drawText(textRect, message);
-#endif
}
//! [6]
diff --git a/examples/graphicsview/elasticnodes/main.cpp b/examples/graphicsview/elasticnodes/main.cpp
index 9eb8ba11be..1c04057d1e 100644
--- a/examples/graphicsview/elasticnodes/main.cpp
+++ b/examples/graphicsview/elasticnodes/main.cpp
@@ -52,13 +52,6 @@ int main(int argc, char **argv)
QMainWindow mainWindow;
mainWindow.setCentralWidget(widget);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5)
- mainWindow.menuBar()->addAction("Shuffle", widget, SLOT(shuffle()));
- mainWindow.menuBar()->addAction("Zoom In", widget, SLOT(zoomIn()));
- mainWindow.menuBar()->addAction("Zoom Out", widget, SLOT(zoomOut()));
- mainWindow.showMaximized();
-#else
mainWindow.show();
-#endif
return app.exec();
}
diff --git a/examples/graphicsview/elasticnodes/node.cpp b/examples/graphicsview/elasticnodes/node.cpp
index b345f83640..076d8232a1 100644
--- a/examples/graphicsview/elasticnodes/node.cpp
+++ b/examples/graphicsview/elasticnodes/node.cpp
@@ -141,16 +141,9 @@ bool Node::advance()
//! [8]
QRectF Node::boundingRect() const
{
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5)
- // Add some extra space around the circle for easier touching with finger
- qreal adjust = 30;
- return QRectF( -10 - adjust, -10 - adjust,
- 20 + adjust * 2, 20 + adjust * 2);
-#else
qreal adjust = 2;
return QRectF( -10 - adjust, -10 - adjust,
23 + adjust, 23 + adjust);
-#endif
}
//! [8]
@@ -158,12 +151,7 @@ QRectF Node::boundingRect() const
QPainterPath Node::shape() const
{
QPainterPath path;
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5)
- // Add some extra space around the circle for easier touching with finger
- path.addEllipse( -40, -40, 80, 80);
-#else
path.addEllipse(-10, -10, 20, 20);
-#endif
return path;
}
//! [9]