QtBase examples: Remove Maemo/Symbian-specific code.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Tue, 18 Oct 2011 07:54:31 +0000 (09:54 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 18 Oct 2011 13:47:49 +0000 (15:47 +0200)
- Maemo/Symbian are no longer supported and QWidget-based examples
  are no longer supposed to run on mobile platforms, so, remove any
  Maemo/Symbian or mobile-specific code from source files and
  profiles.
- Remove Maemo/Symbian vibration examples.
- Change Q_WS_MAC/WIN to Q_OS_MAC/WIN where appropriate.

Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Change-Id: I488a0adadb98934567aa6416206a80465c9c3a81
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
501 files changed:
examples/animation/animatedtiles/animatedtiles.pro
examples/animation/animatedtiles/main.cpp
examples/animation/appchooser/appchooser.pro
examples/animation/appchooser/main.cpp
examples/animation/easing/easing.pro
examples/animation/easing/main.cpp
examples/animation/easing/window.cpp
examples/animation/moveblocks/main.cpp
examples/animation/moveblocks/moveblocks.pro
examples/animation/states/main.cpp
examples/animation/states/states.pro
examples/animation/stickman/main.cpp
examples/animation/stickman/stickman.pro
examples/dbus/complexpingpong/complexping.pro
examples/dbus/complexpingpong/complexpong.pro
examples/dbus/dbus-chat/dbus-chat.pro
examples/dbus/dbus.pro
examples/dbus/listnames/listnames.pro
examples/dbus/pingpong/ping.pro
examples/dbus/pingpong/pong.pro
examples/dbus/remotecontrolledcar/car/car.pro
examples/dbus/remotecontrolledcar/controller/controller.pro
examples/dbus/remotecontrolledcar/remotecontrolledcar.pro
examples/desktop/desktop.pro
examples/desktop/screenshot/screenshot.pro
examples/dialogs/classwizard/classwizard.pro
examples/dialogs/configdialog/configdialog.pro
examples/dialogs/dialogs.pro
examples/dialogs/extension/extension.pro
examples/dialogs/extension/finddialog.cpp
examples/dialogs/extension/main.cpp
examples/dialogs/findfiles/findfiles.pro
examples/dialogs/findfiles/main.cpp
examples/dialogs/findfiles/window.cpp
examples/dialogs/licensewizard/licensewizard.cpp
examples/dialogs/licensewizard/licensewizard.pro
examples/dialogs/sipdialog/sipdialog.pro
examples/dialogs/standarddialogs/dialog.cpp
examples/dialogs/standarddialogs/main.cpp
examples/dialogs/standarddialogs/standarddialogs.pro
examples/dialogs/tabdialog/main.cpp
examples/dialogs/tabdialog/tabdialog.pro
examples/dialogs/trivialwizard/trivialwizard.cpp
examples/dialogs/trivialwizard/trivialwizard.pro
examples/draganddrop/draganddrop.pro
examples/draganddrop/draggableicons/draggableicons.pro
examples/draganddrop/draggableicons/dragwidget.cpp
examples/draganddrop/draggableicons/main.cpp
examples/draganddrop/draggabletext/draggabletext.pro
examples/draganddrop/draggabletext/main.cpp
examples/draganddrop/dropsite/dropsite.pro
examples/draganddrop/fridgemagnets/dragwidget.cpp
examples/draganddrop/fridgemagnets/fridgemagnets.pro
examples/draganddrop/fridgemagnets/main.cpp
examples/draganddrop/puzzle/main.cpp
examples/draganddrop/puzzle/mainwindow.cpp
examples/draganddrop/puzzle/puzzle.pro
examples/effects/blurpicker/blurpicker.cpp
examples/effects/blurpicker/blurpicker.pro
examples/effects/blurpicker/main.cpp
examples/effects/fademessage/fademessage.cpp
examples/effects/fademessage/fademessage.pro
examples/effects/fademessage/main.cpp
examples/effects/lighting/lighting.cpp
examples/effects/lighting/lighting.pro
examples/effects/lighting/main.cpp
examples/embedded/digiflip/digiflip.cpp
examples/embedded/digiflip/digiflip.pro
examples/embedded/embedded.pro
examples/embedded/flickable/flickable.pro
examples/embedded/flickable/main.cpp
examples/embedded/flightinfo/flightinfo.cpp
examples/embedded/flightinfo/flightinfo.pro
examples/embedded/lightmaps/lightmaps.cpp
examples/embedded/lightmaps/lightmaps.pro
examples/embedded/lightmaps/main.cpp
examples/embedded/lightmaps/mapzoom.cpp
examples/embedded/raycasting/raycasting.cpp
examples/embedded/raycasting/raycasting.pro
examples/embedded/styleexample/styleexample.pro
examples/examples.pro
examples/gestures/imagegestures/imagegestures.pro
examples/graphicsview/anchorlayout/anchorlayout.pro
examples/graphicsview/anchorlayout/main.cpp
examples/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro
examples/graphicsview/basicgraphicslayouts/main.cpp
examples/graphicsview/boxes/glextensions.h
examples/graphicsview/chip/chip.pro
examples/graphicsview/collidingmice/collidingmice.pro
examples/graphicsview/collidingmice/main.cpp
examples/graphicsview/diagramscene/diagramscene.pro
examples/graphicsview/dragdroprobot/dragdroprobot.pro
examples/graphicsview/dragdroprobot/main.cpp
examples/graphicsview/elasticnodes/elasticnodes.pro
examples/graphicsview/elasticnodes/graphwidget.cpp
examples/graphicsview/elasticnodes/main.cpp
examples/graphicsview/elasticnodes/node.cpp
examples/graphicsview/embeddeddialogs/embeddeddialogs.pro
examples/graphicsview/flowlayout/flowlayout.pro
examples/graphicsview/flowlayout/main.cpp
examples/graphicsview/graphicsview.pro
examples/graphicsview/padnavigator/main.cpp
examples/graphicsview/padnavigator/padnavigator.pro
examples/graphicsview/simpleanchorlayout/main.cpp
examples/graphicsview/simpleanchorlayout/simpleanchorlayout.pro
examples/graphicsview/weatheranchorlayout/main.cpp
examples/graphicsview/weatheranchorlayout/weatheranchorlayout.pro
examples/ipc/ipc.pro
examples/ipc/localfortuneclient/client.cpp
examples/ipc/localfortuneclient/client.h
examples/ipc/localfortuneclient/localfortuneclient.pro
examples/ipc/localfortuneclient/main.cpp
examples/ipc/localfortuneserver/localfortuneserver.pro
examples/ipc/localfortuneserver/main.cpp
examples/ipc/localfortuneserver/server.cpp
examples/ipc/localfortuneserver/server.h
examples/ipc/sharedmemory/sharedmemory.pro
examples/itemviews/addressbook/addressbook.pro
examples/itemviews/addressbook/main.cpp
examples/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro
examples/itemviews/basicsortfiltermodel/main.cpp
examples/itemviews/basicsortfiltermodel/window.cpp
examples/itemviews/basicsortfiltermodel/window.h
examples/itemviews/chart/chart.pro
examples/itemviews/chart/main.cpp
examples/itemviews/coloreditorfactory/coloreditorfactory.pro
examples/itemviews/coloreditorfactory/main.cpp
examples/itemviews/combowidgetmapper/combowidgetmapper.pro
examples/itemviews/combowidgetmapper/main.cpp
examples/itemviews/customsortfiltermodel/customsortfiltermodel.pro
examples/itemviews/customsortfiltermodel/main.cpp
examples/itemviews/customsortfiltermodel/window.cpp
examples/itemviews/customsortfiltermodel/window.h
examples/itemviews/dirview/dirview.pro
examples/itemviews/dirview/main.cpp
examples/itemviews/editabletreemodel/editabletreemodel.pro
examples/itemviews/editabletreemodel/main.cpp
examples/itemviews/editabletreemodel/mainwindow.cpp
examples/itemviews/fetchmore/fetchmore.pro
examples/itemviews/fetchmore/main.cpp
examples/itemviews/frozencolumn/frozencolumn.pro
examples/itemviews/frozencolumn/main.cpp
examples/itemviews/interview/interview.pro
examples/itemviews/itemviews.pro
examples/itemviews/pixelator/main.cpp
examples/itemviews/pixelator/pixelator.pro
examples/itemviews/puzzle/main.cpp
examples/itemviews/puzzle/mainwindow.cpp
examples/itemviews/puzzle/puzzle.pro
examples/itemviews/simpledommodel/main.cpp
examples/itemviews/simpledommodel/simpledommodel.pro
examples/itemviews/simpletreemodel/main.cpp
examples/itemviews/simpletreemodel/simpletreemodel.pro
examples/itemviews/simplewidgetmapper/main.cpp
examples/itemviews/simplewidgetmapper/simplewidgetmapper.pro
examples/itemviews/spinboxdelegate/main.cpp
examples/itemviews/spinboxdelegate/spinboxdelegate.pro
examples/itemviews/spreadsheet/spreadsheet.pro
examples/itemviews/stardelegate/main.cpp
examples/itemviews/stardelegate/stardelegate.pro
examples/ja_JP/linguist/hellotr/hellotr.pro
examples/layouts/basiclayouts/basiclayouts.pro
examples/layouts/basiclayouts/main.cpp
examples/layouts/borderlayout/borderlayout.pro
examples/layouts/borderlayout/main.cpp
examples/layouts/dynamiclayouts/dialog.cpp
examples/layouts/dynamiclayouts/dialog.h
examples/layouts/dynamiclayouts/dynamiclayouts.pro
examples/layouts/dynamiclayouts/main.cpp
examples/layouts/flowlayout/flowlayout.pro
examples/layouts/flowlayout/main.cpp
examples/layouts/layouts.pro
examples/linguist/arrowpad/arrowpad.pro
examples/linguist/hellotr/hellotr.pro
examples/linguist/linguist.pro
examples/linguist/trollprint/trollprint.pro
examples/mainwindows/application/application.pro
examples/mainwindows/application/main.cpp
examples/mainwindows/dockwidgets/dockwidgets.pro
examples/mainwindows/mainwindow/mainwindow.cpp
examples/mainwindows/mainwindow/mainwindow.pro
examples/mainwindows/mainwindows.pro
examples/mainwindows/mdi/main.cpp
examples/mainwindows/mdi/mdi.pro
examples/mainwindows/menus/main.cpp
examples/mainwindows/menus/mainwindow.cpp
examples/mainwindows/menus/menus.pro
examples/mainwindows/recentfiles/main.cpp
examples/mainwindows/recentfiles/recentfiles.pro
examples/mainwindows/sdi/main.cpp
examples/mainwindows/sdi/sdi.pro
examples/network/bearermonitor/bearermonitor.cpp
examples/network/bearermonitor/bearermonitor.h
examples/network/bearermonitor/bearermonitor.pro
examples/network/blockingfortuneclient/blockingclient.cpp
examples/network/blockingfortuneclient/blockingclient.h
examples/network/blockingfortuneclient/blockingfortuneclient.pro
examples/network/blockingfortuneclient/main.cpp
examples/network/broadcastreceiver/broadcastreceiver.pro
examples/network/broadcastreceiver/main.cpp
examples/network/broadcastreceiver/receiver.cpp
examples/network/broadcastreceiver/receiver.h
examples/network/broadcastsender/broadcastsender.pro
examples/network/broadcastsender/main.cpp
examples/network/download/download.pro
examples/network/downloadmanager/downloadmanager.pro
examples/network/fortuneclient/fortuneclient.pro
examples/network/fortuneclient/main.cpp
examples/network/fortuneserver/fortuneserver.pro
examples/network/fortuneserver/main.cpp
examples/network/googlesuggest/googlesuggest.pro
examples/network/http/http.pro
examples/network/http/httpwindow.cpp
examples/network/http/httpwindow.h
examples/network/http/main.cpp
examples/network/loopback/dialog.cpp
examples/network/loopback/dialog.h
examples/network/loopback/loopback.pro
examples/network/loopback/main.cpp
examples/network/multicastreceiver/multicastreceiver.pro
examples/network/multicastsender/multicastsender.pro
examples/network/network-chat/main.cpp
examples/network/network-chat/network-chat.pro
examples/network/network-chat/peermanager.cpp
examples/network/network.pro
examples/network/qftp/ftpwindow.cpp
examples/network/qftp/main.cpp
examples/network/qftp/qftp.pro
examples/network/securesocketclient/main.cpp
examples/network/securesocketclient/securesocketclient.pro
examples/network/securesocketclient/sslclient.cpp
examples/network/threadedfortuneserver/dialog.cpp
examples/network/threadedfortuneserver/main.cpp
examples/network/threadedfortuneserver/threadedfortuneserver.pro
examples/network/torrent/torrent.pro
examples/opengl/2dpainting/2dpainting.pro
examples/opengl/cube/cube.pro
examples/opengl/framebufferobject2/framebufferobject2.pro
examples/opengl/grabber/grabber.pro
examples/opengl/hellogl/hellogl.pro
examples/opengl/hellogl_es2/glwidget.cpp
examples/opengl/hellogl_es2/hellogl_es2.pro
examples/opengl/opengl.pro
examples/opengl/overpainting/overpainting.pro
examples/opengl/pbuffers/pbuffers.pro
examples/opengl/pbuffers2/pbuffers2.pro
examples/opengl/samplebuffers/samplebuffers.pro
examples/opengl/textures/textures.pro
examples/painting/affine/affine.pro
examples/painting/basicdrawing/basicdrawing.pro
examples/painting/basicdrawing/main.cpp
examples/painting/basicdrawing/window.cpp
examples/painting/composition/composition.cpp
examples/painting/composition/composition.h
examples/painting/composition/composition.pro
examples/painting/concentriccircles/concentriccircles.pro
examples/painting/concentriccircles/main.cpp
examples/painting/deform/deform.pro
examples/painting/fontsampler/fontsampler.pro
examples/painting/fontsampler/main.cpp
examples/painting/fontsampler/mainwindow.cpp
examples/painting/gradients/gradients.pro
examples/painting/imagecomposition/imagecomposer.cpp
examples/painting/imagecomposition/imagecomposition.pro
examples/painting/imagecomposition/main.cpp
examples/painting/painterpaths/main.cpp
examples/painting/painterpaths/painterpaths.pro
examples/painting/painterpaths/window.cpp
examples/painting/painting.pro
examples/painting/pathstroke/pathstroke.pro
examples/painting/shared/arthurwidgets.cpp
examples/painting/shared/shared.pri
examples/painting/shared/shared.pro
examples/painting/transformations/main.cpp
examples/painting/transformations/transformations.pro
examples/qtconcurrent/imagescaling/imagescaling.pro
examples/qtconcurrent/imagescaling/main.cpp
examples/qtconcurrent/map/main.cpp
examples/qtconcurrent/map/map.pro
examples/qtconcurrent/progressdialog/main.cpp
examples/qtconcurrent/progressdialog/progressdialog.pro
examples/qtconcurrent/qtconcurrent.pro
examples/qtconcurrent/runfunction/main.cpp
examples/qtconcurrent/runfunction/runfunction.pro
examples/qtconcurrent/wordcount/main.cpp
examples/qtconcurrent/wordcount/wordcount.pro
examples/qtestlib/qtestlib.pro
examples/qtestlib/tutorial1/tutorial1.pro
examples/qtestlib/tutorial2/tutorial2.pro
examples/qtestlib/tutorial3/tutorial3.pro
examples/qtestlib/tutorial4/tutorial4.pro
examples/qtestlib/tutorial5/containers.cpp
examples/qtestlib/tutorial5/tutorial5.pro
examples/qws/dbscreen/dbscreen.pro
examples/qws/framebuffer/framebuffer.pro
examples/qws/mousecalibration/mousecalibration.pro
examples/qws/simpledecoration/simpledecoration.pro
examples/qws/svgalib/svgalib.pro
examples/richtext/calendar/calendar.pro
examples/richtext/calendar/main.cpp
examples/richtext/calendar/mainwindow.cpp
examples/richtext/orderform/detailsdialog.cpp
examples/richtext/orderform/main.cpp
examples/richtext/orderform/orderform.pro
examples/richtext/richtext.pro
examples/richtext/syntaxhighlighter/main.cpp
examples/richtext/syntaxhighlighter/syntaxhighlighter.pro
examples/richtext/textedit/textedit.cpp
examples/richtext/textedit/textedit.pro
examples/scroller/graphicsview/main.cpp
examples/sql/books/books.pro
examples/sql/cachedtable/cachedtable.pro
examples/sql/cachedtable/main.cpp
examples/sql/drilldown/drilldown.pro
examples/sql/drilldown/main.cpp
examples/sql/drilldown/view.cpp
examples/sql/masterdetail/main.cpp
examples/sql/masterdetail/mainwindow.cpp
examples/sql/masterdetail/masterdetail.pro
examples/sql/querymodel/main.cpp
examples/sql/querymodel/querymodel.pro
examples/sql/relationaltablemodel/relationaltablemodel.cpp
examples/sql/relationaltablemodel/relationaltablemodel.pro
examples/sql/sql.pro
examples/sql/sqlbrowser/sqlbrowser.pro
examples/sql/sqlwidgetmapper/main.cpp
examples/sql/sqlwidgetmapper/sqlwidgetmapper.pro
examples/sql/tablemodel/tablemodel.cpp
examples/sql/tablemodel/tablemodel.pro
examples/statemachine/eventtransitions/eventtransitions.pro
examples/statemachine/eventtransitions/main.cpp
examples/statemachine/factorial/factorial.pro
examples/statemachine/pingpong/pingpong.pro
examples/statemachine/rogue/main.cpp
examples/statemachine/rogue/rogue.pro
examples/statemachine/rogue/window.cpp
examples/statemachine/rogue/window.h
examples/statemachine/trafficlight/main.cpp
examples/statemachine/trafficlight/trafficlight.pro
examples/statemachine/twowaybutton/main.cpp
examples/statemachine/twowaybutton/twowaybutton.pro
examples/threads/mandelbrot/main.cpp
examples/threads/mandelbrot/mandelbrot.pro
examples/threads/mandelbrot/mandelbrotwidget.cpp
examples/threads/mandelbrot/mandelbrotwidget.h
examples/threads/queuedcustomtype/main.cpp
examples/threads/queuedcustomtype/queuedcustomtype.pro
examples/threads/semaphores/semaphores.cpp
examples/threads/semaphores/semaphores.pro
examples/threads/threads.pro
examples/threads/waitconditions/waitconditions.cpp
examples/threads/waitconditions/waitconditions.pro
examples/tools/codecs/codecs.pro
examples/tools/completer/completer.pro
examples/tools/contiguouscache/contiguouscache.pro
examples/tools/customcompleter/customcompleter.pro
examples/tools/customtype/customtype.pro
examples/tools/customtypesending/customtypesending.pro
examples/tools/echoplugin/echoplugin.pro
examples/tools/echoplugin/echowindow/echowindow.pro
examples/tools/echoplugin/plugin/plugin.pro
examples/tools/i18n/i18n.pro
examples/tools/inputpanel/inputpanel.pro
examples/tools/plugandpaint/plugandpaint.pro
examples/tools/plugandpaintplugins/basictools/basictools.pro
examples/tools/plugandpaintplugins/extrafilters/extrafilters.pro
examples/tools/plugandpaintplugins/plugandpaintplugins.pro
examples/tools/regexp/regexp.pro
examples/tools/settingseditor/mainwindow.cpp
examples/tools/settingseditor/settingseditor.pro
examples/tools/styleplugin/plugin/plugin.pro
examples/tools/styleplugin/styleplugin.pro
examples/tools/styleplugin/stylewindow/stylewindow.pro
examples/tools/tools.pro
examples/tools/treemodelcompleter/treemodelcompleter.pro
examples/tools/undo/undo.pro
examples/tools/undoframework/undoframework.pro
examples/touch/dials/dials.pro
examples/touch/fingerpaint/fingerpaint.pro
examples/touch/knobs/knobs.pro
examples/touch/pinchzoom/pinchzoom.pro
examples/tutorials/addressbook-fr/part1/part1.pro
examples/tutorials/addressbook-fr/part2/part2.pro
examples/tutorials/addressbook-fr/part3/part3.pro
examples/tutorials/addressbook-fr/part4/part4.pro
examples/tutorials/addressbook-fr/part5/part5.pro
examples/tutorials/addressbook-fr/part6/part6.pro
examples/tutorials/addressbook-fr/part7/part7.pro
examples/tutorials/addressbook/addressbook.pro
examples/tutorials/addressbook/part1/part1.pro
examples/tutorials/addressbook/part2/part2.pro
examples/tutorials/addressbook/part3/part3.pro
examples/tutorials/addressbook/part4/part4.pro
examples/tutorials/addressbook/part5/part5.pro
examples/tutorials/addressbook/part6/part6.pro
examples/tutorials/addressbook/part7/part7.pro
examples/tutorials/modelview/1_readonly/1_readonly.pro [changed mode: 0755->0644]
examples/tutorials/modelview/2_formatting/2_formatting.pro [changed mode: 0755->0644]
examples/tutorials/modelview/3_changingmodel/3_changingmodel.pro [changed mode: 0755->0644]
examples/tutorials/modelview/4_headers/4_headers.pro [changed mode: 0755->0644]
examples/tutorials/modelview/5_edit/5_edit.pro [changed mode: 0755->0644]
examples/tutorials/modelview/6_treeview/6_treeview.pro [changed mode: 0755->0644]
examples/tutorials/modelview/7_selections/7_selections.pro [changed mode: 0755->0644]
examples/tutorials/modelview/modelview.pro [changed mode: 0755->0644]
examples/tutorials/threads/clock/clock.pro [changed mode: 0755->0644]
examples/tutorials/threads/helloconcurrent/helloconcurrent.pro [changed mode: 0755->0644]
examples/tutorials/threads/hellothread/hellothread.pro [changed mode: 0755->0644]
examples/tutorials/threads/hellothreadpool/hellothreadpool.pro [changed mode: 0755->0644]
examples/tutorials/threads/movedobject/movedobject.pro [changed mode: 0755->0644]
examples/tutorials/widgets/childwidget/childwidget.pro
examples/tutorials/widgets/nestedlayouts/nestedlayouts.pro
examples/tutorials/widgets/toplevel/toplevel.pro
examples/tutorials/widgets/windowlayout/windowlayout.pro
examples/widgets/analogclock/analogclock.pro
examples/widgets/analogclock/main.cpp
examples/widgets/applicationicon/applicationicon.pro
examples/widgets/applicationicon/main.cpp
examples/widgets/calculator/calculator.cpp
examples/widgets/calculator/calculator.pro
examples/widgets/calculator/main.cpp
examples/widgets/calendarwidget/calendarwidget.pro
examples/widgets/charactermap/charactermap.pro
examples/widgets/codeeditor/codeeditor.pro
examples/widgets/codeeditor/main.cpp
examples/widgets/digitalclock/digitalclock.pro
examples/widgets/digitalclock/main.cpp
examples/widgets/elidedlabel/elidedlabel.pro
examples/widgets/elidedlabel/testwidget.cpp
examples/widgets/groupbox/groupbox.pro
examples/widgets/groupbox/main.cpp
examples/widgets/icons/icons.pro
examples/widgets/icons/main.cpp
examples/widgets/imageviewer/imageviewer.pro
examples/widgets/imageviewer/main.cpp
examples/widgets/lineedits/lineedits.pro
examples/widgets/lineedits/main.cpp
examples/widgets/maemovibration/buttonwidget.cpp [deleted file]
examples/widgets/maemovibration/buttonwidget.h [deleted file]
examples/widgets/maemovibration/data/48x48/maemovibration.png [deleted file]
examples/widgets/maemovibration/data/64x64/maemovibration.png [deleted file]
examples/widgets/maemovibration/data/maemovibration.desktop [deleted file]
examples/widgets/maemovibration/data/maemovibration.service [deleted file]
examples/widgets/maemovibration/maemovibration.pro [deleted file]
examples/widgets/maemovibration/main.cpp [deleted file]
examples/widgets/maemovibration/mcevibrator.cpp [deleted file]
examples/widgets/maemovibration/mcevibrator.h [deleted file]
examples/widgets/movie/main.cpp
examples/widgets/movie/movie.pro
examples/widgets/orientation/mainwindow.cpp
examples/widgets/orientation/orientation.pro
examples/widgets/scribble/main.cpp
examples/widgets/scribble/scribble.pro
examples/widgets/shapedclock/main.cpp
examples/widgets/shapedclock/shapedclock.pro
examples/widgets/sliders/main.cpp
examples/widgets/sliders/sliders.pro
examples/widgets/softkeys/softkeys.pro
examples/widgets/spinboxes/main.cpp
examples/widgets/spinboxes/spinboxes.pro
examples/widgets/styles/styles.pro
examples/widgets/stylesheet/main.cpp
examples/widgets/stylesheet/stylesheet.pro
examples/widgets/symbianvibration/main.cpp [deleted file]
examples/widgets/symbianvibration/mainwindow.cpp [deleted file]
examples/widgets/symbianvibration/mainwindow.h [deleted file]
examples/widgets/symbianvibration/symbianvibration.pro [deleted file]
examples/widgets/symbianvibration/vibrationsurface.cpp [deleted file]
examples/widgets/symbianvibration/vibrationsurface.h [deleted file]
examples/widgets/symbianvibration/xqvibra.cpp [deleted file]
examples/widgets/symbianvibration/xqvibra.h [deleted file]
examples/widgets/symbianvibration/xqvibra_p.cpp [deleted file]
examples/widgets/symbianvibration/xqvibra_p.h [deleted file]
examples/widgets/tablet/main.cpp
examples/widgets/tablet/tablet.pro
examples/widgets/tetrix/main.cpp
examples/widgets/tetrix/tetrix.pro
examples/widgets/tooltips/main.cpp
examples/widgets/tooltips/tooltips.pro
examples/widgets/validators/main.cpp
examples/widgets/validators/validators.pro
examples/widgets/widgets.pro
examples/widgets/wiggly/main.cpp
examples/widgets/wiggly/wiggly.pro
examples/widgets/windowflags/main.cpp
examples/widgets/windowflags/windowflags.pro
examples/xml/dombookmarks/dombookmarks.pro
examples/xml/dombookmarks/main.cpp
examples/xml/dombookmarks/mainwindow.cpp
examples/xml/htmlinfo/htmlinfo.pro
examples/xml/rsslisting/main.cpp
examples/xml/rsslisting/rsslisting.cpp
examples/xml/rsslisting/rsslisting.h
examples/xml/rsslisting/rsslisting.pro
examples/xml/saxbookmarks/main.cpp
examples/xml/saxbookmarks/mainwindow.cpp
examples/xml/saxbookmarks/saxbookmarks.pro
examples/xml/streambookmarks/main.cpp
examples/xml/streambookmarks/mainwindow.cpp
examples/xml/streambookmarks/streambookmarks.pro
examples/xml/xml.pro
examples/xml/xmlstreamlint/xmlstreamlint.pro

index 791bbf6..1bba994 100644 (file)
@@ -7,9 +7,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS animatedtiles.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/animation/animatedtiles
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000D7D1
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
index c59c981..55dbd39 100644 (file)
@@ -210,11 +210,7 @@ int main(int argc, char **argv)
     view->setBackgroundBrush(bgPix);
     view->setCacheMode(QGraphicsView::CacheBackground);
     view->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
-#ifdef Q_OS_SYMBIAN
-    view->showMaximized();
-#else
     view->show();
-#endif
 
     QStateMachine states;
     states.addState(rootState);
index 3969b55..158a0ec 100644 (file)
@@ -7,9 +7,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS appchooser.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/animation/appchooser
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000E3F5
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
index 873054c..55068c6 100644 (file)
@@ -164,12 +164,8 @@ int main(int argc, char **argv)
     machine.setInitialState(group);
     machine.start();
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    window.showMaximized();
-#else
     window.resize(300, 300);
     window.show();
-#endif
 
     return app.exec();
 }
index b26ce30..155d17d 100644 (file)
@@ -13,10 +13,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS easing.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/animation/easing
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000E3F6
-    CONFIG += qt_example
-}
 QT += widgets
 
-maemo5: CONFIG += qt_example
index 0d63a31..7936810 100644 (file)
@@ -47,14 +47,8 @@ int main(int argc, char **argv)
     QApplication app(argc, argv);
     Window w;
 
-#if defined(Q_OS_SYMBIAN)
-    w.showMaximized();
-#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    w.show();
-#else
     w.resize(400, 400);
     w.show();
-#endif
 
     return app.exec();
 }
index 869bca4..208acd0 100644 (file)
 
 Window::Window(QWidget *parent)
     : QWidget(parent),
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
-    m_iconSize(32, 32)
-#else
     m_iconSize(64, 64)
-#endif
 {
     m_ui.setupUi(this);
     QButtonGroup *buttonGroup = findChild<QButtonGroup *>();     // ### workaround for uic in 4.4
index 24e5f05..a5aba45 100644 (file)
@@ -310,13 +310,8 @@ int main(int argc, char **argv)
     machine.start();
 //![9]
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    window.showMaximized();
-    window.fitInView(scene.sceneRect() );
-#else
     window.resize(300, 300);
     window.show();
-#endif
 
     qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
 
index b82370d..7c242e3 100644 (file)
@@ -6,9 +6,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS moveblocks.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/animation/moveblocks
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000E3F7
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
index f37c2bd..891254e 100644 (file)
@@ -277,11 +277,7 @@ int main(int argc, char *argv[])
 
     GraphicsView view(&scene);
 
-#if defined(Q_OS_SYMBIAN)
-    view.showMaximized();
-#else
     view.show();
-#endif
 
     return app.exec();
 }
index 5c0d281..adf0e8d 100644 (file)
@@ -7,9 +7,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS states.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/animation/states
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000E3F8
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
index c5c3eb3..208d346 100644 (file)
@@ -56,11 +56,6 @@ int main(int argc, char **argv)
     StickMan *stickMan = new StickMan;
     stickMan->setDrawSticks(false);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    RectButton *buttonJump = new RectButton("Jump"); buttonJump->setPos(100, 125);
-    RectButton *buttonDance = new RectButton("Dance"); buttonDance->setPos(100, 200);
-    RectButton *buttonChill = new RectButton("Chill"); buttonChill->setPos(100, 275);
-#else
     QGraphicsTextItem *textItem = new QGraphicsTextItem();
     textItem->setHtml("<font color=\"white\"><b>Stickman</b>"
         "<p>"
@@ -77,18 +72,11 @@ int main(int argc, char **argv)
     qreal w = textItem->boundingRect().width();
     QRectF stickManBoundingRect = stickMan->mapToScene(stickMan->boundingRect()).boundingRect();
     textItem->setPos(-w / 2.0, stickManBoundingRect.bottom() + 25.0);
-#endif
 
     QGraphicsScene scene;
     scene.addItem(stickMan);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    scene.addItem(buttonJump);
-    scene.addItem(buttonDance);
-    scene.addItem(buttonChill);
-#else
     scene.addItem(textItem);
-#endif
     scene.setBackgroundBrush(Qt::black);
 
     GraphicsView view;
@@ -101,28 +89,15 @@ int main(int argc, char **argv)
     view.resize(sceneRect.width() + 100, sceneRect.height() + 100);
     view.setSceneRect(sceneRect);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
-    view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
-    view.showMaximized();
-    view.fitInView(scene.sceneRect(), Qt::KeepAspectRatio);
-#else
     view.show();
     view.setFocus();
-#endif
 
     LifeCycle cycle(stickMan, &view);
     cycle.setDeathAnimation(":/animations/dead");
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    cycle.addActivity(":/animations/jumping", Qt::Key_J, buttonJump, SIGNAL(clicked()));
-    cycle.addActivity(":/animations/dancing", Qt::Key_D, buttonDance, SIGNAL(clicked()));
-    cycle.addActivity(":/animations/chilling", Qt::Key_C, buttonChill, SIGNAL(clicked()));
-#else
     cycle.addActivity(":/animations/jumping", Qt::Key_J);
     cycle.addActivity(":/animations/dancing", Qt::Key_D);
     cycle.addActivity(":/animations/chilling", Qt::Key_C);
-#endif
 
     cycle.start();
 
index 340a502..43aaec1 100644 (file)
@@ -20,9 +20,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS stickman.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/animation/stickman
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000E3F9
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
index c84ef08..bc45e99 100644 (file)
@@ -14,7 +14,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus/complexpingpong
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index a9ca7ca..0934740 100644 (file)
@@ -14,7 +14,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus/complexpingpong
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index 3009045..e1a3539 100644 (file)
@@ -17,8 +17,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.xml
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus/chat
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index b3c0559..12b39e2 100644 (file)
@@ -14,6 +14,4 @@ sources.files = *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index dc9c26e..a863bbc 100644 (file)
@@ -14,7 +14,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus/listnames
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index 9d3f2da..533371c 100644 (file)
@@ -15,7 +15,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus/pingpong
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index f82be77..37a5a5c 100644 (file)
@@ -15,7 +15,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus/pingpong
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index 7ae919c..761181a 100644 (file)
@@ -18,8 +18,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.xml
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus/remotecontrolledcar/car
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index 5e8a82e..36983e0 100644 (file)
@@ -19,8 +19,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.xml
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus/remotecontrolledcar/controller
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index 2959170..2638f91 100644 (file)
@@ -7,6 +7,4 @@ sources.files = *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dbus/remotecontrolledcar
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 02d3ec8..fc23208 100644 (file)
@@ -8,6 +8,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS desktop.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/desktop
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 1402ad4..e9f53f7 100644 (file)
@@ -8,9 +8,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS screenshot.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/desktop/screenshot
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 6dd1cac..d50ba67 100644 (file)
@@ -9,9 +9,5 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs/classwizard
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 51a7f45..643c2a2 100644 (file)
@@ -11,11 +11,7 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs/configdialog
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
 
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 47444c1..a59e480 100644 (file)
@@ -5,7 +5,7 @@ SUBDIRS       = classwizard \
                 tabdialog \
                 trivialwizard
 
-!symbian:!wince*: SUBDIRS += licensewizard \
+!wince*: SUBDIRS += licensewizard \
                     extension \
                     findfiles
 
@@ -16,6 +16,4 @@ sources.files = README *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 5511f37..7e11dda 100644 (file)
@@ -8,7 +8,5 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs/extension
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 simulator: warning(This example might not fully work on Simulator platform)
index 0e797ed..6edaa06 100644 (file)
@@ -74,42 +74,11 @@ FindDialog::FindDialog(QWidget *parent)
 //! [2]
 
 //! [3]
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
-    // Create menu
-    QMenu *menu = new QMenu(this);
-
-    // Create Find menu item
-    menu->addAction(tr("Find"));
-
-    // Create More menu item
-    QAction *moreAction = menu->addAction(tr("More"));
-    moreAction->setCheckable(true);
-
-    // Create Options CBA
-    QAction *optionAction = new QAction(tr("Options"), this);
-
-    // Set defined menu into Options button
-    optionAction->setMenu(menu);
-    optionAction->setSoftKeyRole(QAction::PositiveSoftKey);
-    addAction(optionAction);
-
-    // Connect More menu item to setVisible slot
-    connect(moreAction, SIGNAL(triggered(bool)), extension, SLOT(setVisible(bool)));
-
-    // Create Exit CBA
-    QAction *backSoftKeyAction = new QAction(QString(tr("Exit")), this);
-    backSoftKeyAction->setSoftKeyRole(QAction::NegativeSoftKey);
-
-    // Exit button closes the application
-    connect(backSoftKeyAction, SIGNAL(triggered()), qApp, SLOT(quit()));
-    addAction(backSoftKeyAction);
-#else
     buttonBox = new QDialogButtonBox(Qt::Vertical);
     buttonBox->addButton(findButton, QDialogButtonBox::ActionRole);
     buttonBox->addButton(moreButton, QDialogButtonBox::ActionRole);
 
     connect(moreButton, SIGNAL(toggled(bool)), extension, SLOT(setVisible(bool)));
-#endif
 
     QVBoxLayout *extensionLayout = new QVBoxLayout;
     extensionLayout->setMargin(0);
@@ -130,13 +99,9 @@ FindDialog::FindDialog(QWidget *parent)
     leftLayout->addWidget(fromStartCheckBox);
 
     QGridLayout *mainLayout = new QGridLayout;
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_SIMULATOR)
     mainLayout->setSizeConstraint(QLayout::SetFixedSize);
-#endif
     mainLayout->addLayout(leftLayout, 0, 0);
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_SIMULATOR)
     mainLayout->addWidget(buttonBox, 0, 1);
-#endif
     mainLayout->addWidget(extension, 1, 0, 1, 2);
     mainLayout->setRowStretch(2, 1);
 
index 9937b6d..b54c129 100644 (file)
@@ -47,11 +47,7 @@ int main(int argc, char *argv[])
     QApplication app(argc, argv);
     FindDialog dialog;
 
-#ifdef Q_OS_SYMBIAN
-    dialog.showMaximized();
-#else
     dialog.show();
-#endif
 
     return app.exec();
 }
index c19d47e..51d1c0e 100644 (file)
@@ -8,6 +8,4 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs/findfiles
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index c5a324a..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#ifdef Q_OS_SYMBIAN
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index d2ffd09..d051539 100644 (file)
@@ -77,9 +77,7 @@ Window::Window(QWidget *parent)
     setLayout(mainLayout);
 
     setWindowTitle(tr("Find Files"));
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_SIMULATOR)
     resize(700, 300);
-#endif
 }
 //! [1]
 
@@ -193,11 +191,7 @@ void Window::showFiles(const QStringList &files)
         filesTable->setItem(row, 1, sizeItem);
     }
     filesFoundLabel->setText(tr("%1 file(s) found").arg(files.size()) +
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5)
-                             (" (Select file to open it)"));
-#else
                              (" (Double click on a file to open it)"));
-#endif
     filesFoundLabel->setWordWrap(true);
 }
 //! [8]
@@ -218,9 +212,6 @@ QComboBox *Window::createComboBox(const QString &text)
     comboBox->setEditable(true);
     comboBox->addItem(text);
     comboBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    comboBox->setMinimumContentsLength(3);
-#endif
     return comboBox;
 }
 //! [10]
index 1c95871..a159914 100644 (file)
@@ -60,7 +60,7 @@ LicenseWizard::LicenseWizard(QWidget *parent)
 //! [2]
 
 //! [3]
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
 //! [3] //! [4]
     setWizardStyle(ModernStyle);
 #endif
index 20b5336..c613257 100644 (file)
@@ -9,9 +9,5 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs/licensewizard
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets printsupport
-maemo5: CONFIG += qt_example
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index cea038e..72db93f 100644 (file)
@@ -8,12 +8,8 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs/sipdialog
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
 
 QT += widgets
 
-maemo5: CONFIG += qt_example
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 28fdaaa..4566da3 100644 (file)
@@ -184,19 +184,7 @@ Dialog::Dialog(QWidget *parent)
     layout->addWidget(errorButton, 14, 0);
     layout->addWidget(errorLabel, 14, 1);
     layout->addWidget(native, 15, 0);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    QWidget *widget = new QWidget;
-    widget->setLayout(layout);
-
-    QScrollArea *scrollArea = new QScrollArea(this);
-    scrollArea->setWidget(widget);
-
-    QHBoxLayout *mainLayout = new QHBoxLayout;
-    mainLayout->addWidget(scrollArea);
-    setLayout(mainLayout);
-#else
     setLayout(layout);
-#endif
 
     setWindowTitle(tr("Standard Dialogs"));
 }
index 5dbf2cf..11b6f50 100644 (file)
@@ -56,11 +56,7 @@ int main(int argc, char *argv[])
         app.installTranslator(translator);
 
     Dialog dialog;
-#ifdef Q_OS_SYMBIAN
-    dialog.showMaximized();
-#else
     dialog.show();
-#endif
 
     return app.exec();
 }
index 59cd79f..cbcb4d7 100644 (file)
@@ -8,8 +8,6 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs/standarddialogs
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
 
 QT += widgets
-maemo5: CONFIG += qt_example
index 6c83aa0..879b16d 100644 (file)
@@ -53,11 +53,7 @@ int main(int argc, char *argv[])
         fileName = ".";
 
     TabDialog tabdialog(fileName);
-#ifdef Q_OS_SYMBIAN
-    tabdialog.showMaximized();
-#else
     tabdialog.show();
-#endif
 
     return app.exec();
 }
index 4e01a68..66ac14d 100644 (file)
@@ -8,9 +8,5 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs/tabdialog
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
index df7d4e6..5e3ef97 100644 (file)
@@ -128,11 +128,7 @@ int main(int argc, char *argv[])
     wizard.addPage(createConclusionPage());
 
     wizard.setWindowTitle("Trivial Wizard");
-#ifdef Q_OS_SYMBIAN
-    wizard.showMaximized();
-#else
     wizard.show();
-#endif
 
     return app.exec();
 }
index b2a285e..26d488d 100644 (file)
@@ -6,8 +6,5 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/dialogs/trivialwizard
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 6759520..a209ae3 100644 (file)
@@ -6,7 +6,6 @@ SUBDIRS     = draggableicons \
               puzzle
 
 wince*: SUBDIRS -= dropsite
-symbian: SUBDIRS -= dropsite
 # install
 sources.files = README *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/draganddrop
index 792de0a..9f41561 100644 (file)
@@ -9,9 +9,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/draganddrop/draggableicons
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C615
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
index e465e8a..7a788df 100644 (file)
 DragWidget::DragWidget(QWidget *parent)
     : QFrame(parent)
 {
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-#else
     setMinimumSize(200, 200);
-#endif
     setFrameStyle(QFrame::Sunken | QFrame::StyledPanel);
     setAcceptDrops(true);
 
index a6ade67..7a80b92 100644 (file)
@@ -55,11 +55,7 @@ int main(int argc, char *argv[])
 
     mainWidget.setLayout(horizontalLayout);
     mainWidget.setWindowTitle(QObject::tr("Draggable Icons"));
-#ifdef Q_OS_SYMBIAN
-    mainWidget.showMaximized();
-#else
     mainWidget.show();
-#endif
 
     return app.exec();
 }
index 38c2066..1fd8e5c 100644 (file)
@@ -11,10 +11,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.txt *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/draganddrop/draggabletext
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000CF64
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-simulator: warning(This example might not fully work on Simulator platform)
+
index 0ae794b..4d0a121 100644 (file)
@@ -47,10 +47,6 @@ int main(int argc, char *argv[])
 
     QApplication app(argc, argv);
     DragWidget window;
-#ifdef Q_OS_SYMBIAN
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index c725992..8198b19 100644 (file)
@@ -10,9 +10,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/draganddrop/dropsite
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 3dcd406..44b377a 100644 (file)
@@ -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"));
index 481fffd..2bbfdf0 100644 (file)
@@ -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
index 623e6d2..ae2ecb4 100644 (file)
@@ -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();
 }
index b432ddc..6034194 100644 (file)
@@ -49,10 +49,6 @@ int main(int argc, char *argv[])
     QApplication app(argc, argv);
     MainWindow window;
     window.openImage(":/images/example.jpg");
-#ifdef Q_OS_SYMBIAN
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index c00892a..800213e 100644 (file)
@@ -138,11 +138,7 @@ void MainWindow::setupWidgets()
 {
     QFrame *frame = new QFrame;
     QHBoxLayout *frameLayout = new QHBoxLayout(frame);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
-    puzzleWidget = new PuzzleWidget(260);
-#else
     puzzleWidget = new PuzzleWidget(400);
-#endif
 
     piecesList = new PiecesList(puzzleWidget->pieceSize(), this);
 
index d084827..7c69a41 100644 (file)
@@ -15,17 +15,9 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.jpg
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/draganddrop/puzzle
 INSTALLS += target sources
 
-symbian:{
-   TARGET.UID3 = 0xA000CF65
-   CONFIG += qt_example
-   addFile.files = example.jpg
-   addFile.path = .
-   DEPLOYMENT += addFile
-}
 wince*: {
    addFile.files = example.jpg
    addFile.path = .
    DEPLOYMENT += addFile
 }
 QT += widgets
-maemo5: CONFIG += qt_example
index 5883c74..00771a5 100644 (file)
@@ -139,9 +139,6 @@ void BlurPicker::keyPressEvent(QKeyEvent *event)
 
 void BlurPicker::resizeEvent(QResizeEvent */*event*/)
 {
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    fitInView(sceneRect(), Qt::KeepAspectRatio);
-#endif
 }
 
 void BlurPicker::mousePressEvent(QMouseEvent *event)
index ca651b8..c477ea6 100644 (file)
@@ -9,5 +9,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/effects/blurpicker
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
index 5138fcc..2fbe1f1 100644 (file)
@@ -48,12 +48,8 @@ int main(int argc, char **argv)
     BlurPicker blurPicker;
     blurPicker.setWindowTitle(QT_TRANSLATE_NOOP(QGraphicsView, "Application Picker"));
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    blurPicker.showMaximized();
-#else
     blurPicker.setFixedSize(400, 300);
     blurPicker.show();
-#endif
 
     return app.exec();
 }
index b6e94e5..27d84b5 100644 (file)
@@ -124,9 +124,5 @@ void FadeMessage::setupScene()
     connect(press, SIGNAL(clicked()), SLOT(togglePopup()));
     m_scene.addWidget(press);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    press->move(200, 210);
-#else
     press->move(300, 500);
-#endif
 }
index 261bee4..c40ee76 100644 (file)
@@ -12,8 +12,6 @@ sources.files = $$SOURCES \
     fademessage.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/effects/fademessage
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
 QT += widgets
 simulator: warning(This example might not fully work on Simulator platform)
index 8c72a45..83d6d8e 100644 (file)
@@ -48,12 +48,8 @@ int main(int argc, char **argv)
 
     FadeMessage widget;
     widget.setWindowTitle(QT_TRANSLATE_NOOP(QGraphicsView, "Popup Message with Effect"));
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    widget.showMaximized();
-#else
     widget.setFixedSize(400, 600);
     widget.show();
-#endif
 
     return app.exec();
 }
index 4532faf..3c9fed7 100644 (file)
@@ -136,7 +136,4 @@ void Lighting::animate()
 
 void Lighting::resizeEvent(QResizeEvent */*event*/)
 {
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    fitInView(sceneRect(), Qt::KeepAspectRatio);
-#endif
 }
index 1876a7b..16be936 100644 (file)
@@ -8,6 +8,4 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/effects/lighting
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
index fff3d73..69063a5 100644 (file)
@@ -48,12 +48,8 @@ int main(int argc, char **argv)
     Lighting lighting;
     lighting.setWindowTitle(QT_TRANSLATE_NOOP(QGraphicsView, "Lighting and Shadows"));
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    lighting.showMaximized();
-#else
     lighting.resize(640, 480);
     lighting.show();
-#endif
 
     return app.exec();
 }
index 38501d3..dfe8432 100644 (file)
@@ -117,10 +117,6 @@ protected:
     QPixmap drawDigits(int n, const QRect &rect) {
 
         int scaleFactor = 2;
-#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
-        if (rect.height() > 240)
-            scaleFactor = 1;
-#endif
 
         QString str = QString::number(n);
         if (str.length() == 1)
@@ -192,10 +188,8 @@ protected:
 
     void paintFlip() {
         QPainter p(this);
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_OS_WINCE_WM)
         p.setRenderHint(QPainter::SmoothPixmapTransform, true);
         p.setRenderHint(QPainter::Antialiasing, true);
-#endif
         p.fillRect(rect(), Qt::black);
 
         int hw = width() / 2;
@@ -319,16 +313,10 @@ public:
         connect(slideAction, SIGNAL(triggered()), SLOT(chooseSlide()));
         connect(flipAction, SIGNAL(triggered()), SLOT(chooseFlip()));
         connect(rotateAction, SIGNAL(triggered()), SLOT(chooseRotate()));
-#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
-        menuBar()->addAction(slideAction);
-        menuBar()->addAction(flipAction);
-        menuBar()->addAction(rotateAction);
-#else
         addAction(slideAction);
         addAction(flipAction);
         addAction(rotateAction);
         setContextMenuPolicy(Qt::ActionsContextMenu);
-#endif
     }
 
     void updateTime() {
@@ -414,12 +402,8 @@ int main(int argc, char *argv[])
     QApplication app(argc, argv);
 
     DigiFlip time;
-#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
-    time.showMaximized();
-#else
     time.resize(320, 240);
     time.show();
-#endif
 
     return app.exec();
 }
index cd64f7c..29e2150 100644 (file)
@@ -1,10 +1,5 @@
 SOURCES = digiflip.cpp
 
-symbian {
-    TARGET.UID3 = 0xA000CF72
-    CONFIG += qt_example
-}
-
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/digiflip
 sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/digiflip
index 8670fcb..fbdfe2e 100644 (file)
@@ -9,5 +9,4 @@ sources.files = README *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded
 INSTALLS += sources
 
-symbian: CONFIG += qt_demo
 QT += widgets widgets
index d31e7eb..82b39ac 100644 (file)
@@ -1,11 +1,6 @@
 SOURCES = flickable.cpp main.cpp
 HEADERS = flickable.h
 
-symbian {
-    TARGET.UID3 = 0xA000CF73
-    CONFIG += qt_example
-}
-
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/flickable
 sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/flickable
index 5ecc0c1..9f86281 100644 (file)
@@ -222,12 +222,8 @@ int main(int argc, char *argv[])
 
     ColorList list;
     list.setWindowTitle("Kinetic Scrolling");
-#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
-    list.showMaximized();
-#else
     list.resize(320, 320);
     list.show();
-#endif
 
     return app.exec();
 }
index 592357c..c0beb9e 100644 (file)
@@ -126,16 +126,10 @@ public:
         connect(randomAction, SIGNAL(triggered()), SLOT(randomFlight()));
         connect(&m_manager, SIGNAL(finished(QNetworkReply*)),
                 this, SLOT(handleNetworkData(QNetworkReply*)));
-#if defined(Q_OS_SYMBIAN)
-        menuBar()->addAction(searchTodayAction);
-        menuBar()->addAction(searchYesterdayAction);
-        menuBar()->addAction(randomAction);
-#else
         addAction(searchTodayAction);
         addAction(searchYesterdayAction);
         addAction(randomAction);
         setContextMenuPolicy(Qt::ActionsContextMenu);
-#endif
     }
 
 private slots:
@@ -388,12 +382,8 @@ int main(int argc, char **argv)
     QApplication app(argc, argv);
 
     FlightInfo w;
-#if defined(Q_OS_SYMBIAN)
-    w.showMaximized();
-#else
     w.resize(360, 504);
     w.show();
-#endif
 
     return app.exec();
 }
index 89a7265..a7a4fce 100644 (file)
@@ -5,12 +5,6 @@ FORMS += form.ui
 RESOURCES = flightinfo.qrc
 QT += network widgets
 
-symbian {
-    TARGET.UID3 = 0xA000CF74
-    CONFIG += qt_example
-    TARGET.CAPABILITY = NetworkServices
-}
-
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/flightinfo
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/flightinfo
index 2489ddc..2b97aba 100644 (file)
@@ -122,11 +122,6 @@ void LightMaps::paintEvent(QPaintEvent *event)
     p.begin(this);
     m_normalMap->render(&p, event->rect());
     p.setPen(Qt::black);
-#if defined(Q_OS_SYMBIAN)
-    QFont font = p.font();
-    font.setPixelSize(13);
-    p.setFont(font);
-#endif
     p.drawText(rect(),  Qt::AlignBottom | Qt::TextWordWrap,
                 "Map data CCBYSA 2009 OpenStreetMap.org contributors");
     p.end();
index 1f638b5..92ef6b9 100644 (file)
@@ -8,13 +8,6 @@ SOURCES   = lightmaps.cpp \
             slippymap.cpp
 QT += network widgets
 
-symbian {
-    TARGET.UID3 = 0xA000CF75
-    CONFIG += qt_example
-    TARGET.CAPABILITY = NetworkServices
-    TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
-}
-
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/lightmaps
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/lightmaps
index 85f74e6..999c355 100644 (file)
 
 int main(int argc, char **argv)
 {
-#if defined(Q_WS_X11)
-    QApplication::setGraphicsSystem("raster");
-#endif
 
     QApplication app(argc, argv);
     app.setApplicationName("LightMaps");
 
     MapZoom w;
-#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
-    w.showMaximized();
-#else
     w.resize(600, 450);
     w.show();
-#endif
 
     return app.exec();
 }
index 225c54c..c1b43f0 100644 (file)
@@ -64,13 +64,6 @@ MapZoom::MapZoom()
     connect(nightModeAction, SIGNAL(triggered()), map, SLOT(toggleNightMode()));
     connect(osmAction, SIGNAL(triggered()), SLOT(aboutOsm()));
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
-    menuBar()->addAction(osloAction);
-    menuBar()->addAction(berlinAction);
-    menuBar()->addAction(jakartaAction);
-    menuBar()->addAction(nightModeAction);
-    menuBar()->addAction(osmAction);
-#else
     QMenu *menu = menuBar()->addMenu(tr("&Options"));
     menu->addAction(osloAction);
     menu->addAction(berlinAction);
@@ -78,7 +71,6 @@ MapZoom::MapZoom()
     menu->addSeparator();
     menu->addAction(nightModeAction);
     menu->addAction(osmAction);
-#endif
 
     QNetworkConfigurationManager manager;
     if (manager.capabilities() & QNetworkConfigurationManager::NetworkSessionRequired) {
index 0a50fb0..f2de58a 100644 (file)
@@ -380,12 +380,8 @@ int main(int argc, char **argv)
 
     Raycasting w;
     w.setWindowTitle("Raycasting");
-#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
-    w.showMaximized();
-#else
     w.resize(640, 480);
     w.show();
-#endif
 
     return app.exec();
 }
index 181eadf..9c562d4 100644 (file)
@@ -2,11 +2,6 @@ TEMPLATE = app
 SOURCES = raycasting.cpp
 RESOURCES += raycasting.qrc
 
-symbian {
-    TARGET.UID3 = 0xA000CF76
-    CONFIG += qt_example
-}
-
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/raycasting
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/raycasting
index 5b1273e..3cd4d0a 100644 (file)
@@ -11,8 +11,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.html
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/embedded/styleexample
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A63F
-    CONFIG += qt_example
-}
 QT += widgets widgets
index 93f4b61..763ff4e 100644 (file)
@@ -31,22 +31,9 @@ SUBDIRS       = \
                 gestures
 }
 
-symbian: SUBDIRS = \
-                graphicsview \
-                itemviews \
-                network \
-                painting \
-                widgets \
-                draganddrop \
-                mainwindows \
-                sql \
-                animation \
-                gestures \
-                xml
-
 qpa:SUBDIRS += qpa
 
-wince*|symbian|embedded|x11:!contains(QT_CONFIG, no-gui): SUBDIRS += embedded
+wince*|embedded|x11:!contains(QT_CONFIG, no-gui): SUBDIRS += embedded
 
 embedded:SUBDIRS += qws
 contains(QT_BUILD_PARTS, tools):!contains(QT_CONFIG, no-gui):SUBDIRS += qtestlib
@@ -60,6 +47,4 @@ sources.files = README *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 03fd2e8..70825ad 100644 (file)
@@ -15,12 +15,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/gestures/imagegestures
 INSTALLS += target \
     sources
 
-symbian {
-    TARGET.UID3 = 0xA000D7D0
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
-maemo5: warning(This example does not work on Maemo platform)
-simulator: warning(This example does not work on Simulator platform)
+
index abe55f2..7b18a62 100644 (file)
@@ -9,7 +9,5 @@ INSTALLS += target sources
 TARGET = anchorlayout
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example might not fully work on Simulator platform)
index f9f93fb..d19dd38 100644 (file)
@@ -123,11 +123,7 @@ int main(int argc, char **argv)
     scene.setBackgroundBrush(Qt::darkGreen);
     QGraphicsView view(&scene);
 
-#if defined(Q_WS_S60)
-    view.showMaximized();
-#else
     view.show();
-#endif
 
     return app.exec();
 }
index 88fa818..202c8d8 100644 (file)
@@ -11,10 +11,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES basicgraphicslayouts.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/basicgraphicslayouts
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A645
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-simulator: warning(This example might not fully work on Simulator platform)
index 4a9e8f9..5edd130 100644 (file)
@@ -51,12 +51,8 @@ int main(int argc, char **argv)
     Window *window = new Window;
     scene.addItem(window);
     QGraphicsView view(&scene);
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    view.showMaximized();
-#else
     view.resize(600, 600);
     view.show();
-#endif
 
     return app.exec();
 }
index 54de548..f9c5dbc 100644 (file)
@@ -69,7 +69,7 @@ glMapBuffer
 glUnmapBuffer
 */
 
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
 # ifndef APIENTRYP
 #   ifdef APIENTRY
 #     define APIENTRYP APIENTRY *
index 5bf1b88..94a461a 100644 (file)
@@ -18,4 +18,3 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.png *.pro *.html *.doc images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/chip
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
index 1c1c268..d834602 100644 (file)
@@ -13,10 +13,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS collidingmice.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/collidingmice
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A643
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-simulator: warning(This example might not fully work on Simulator platform)
+
index 5618879..5bba275 100644 (file)
@@ -79,12 +79,8 @@ int main(int argc, char **argv)
     view.setDragMode(QGraphicsView::ScrollHandDrag);
 //! [5] //! [6]
     view.setWindowTitle(QT_TRANSLATE_NOOP(QGraphicsView, "Colliding Mice"));
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    view.showMaximized();
-#else
     view.resize(400, 300);
     view.show();
-#endif
 
     QTimer timer;
     QObject::connect(&timer, SIGNAL(timeout()), &scene, SLOT(advance()));
index 99cd4de..e45f4a8 100644 (file)
@@ -18,10 +18,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS diagramscene.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/diagramscene
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
 QT += widgets
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index db5d94a..3e33bad 100644 (file)
@@ -17,8 +17,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS dragdroprobot.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/dragdroprobot
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example might not fully work on Simulator platform)
index 9b6f95c..c90aef0 100644 (file)
@@ -55,9 +55,6 @@ public:
 protected:
     virtual void resizeEvent(QResizeEvent *)
     {
-#if defined(Q_OS_SYMBIAN)
-        fitInView(sceneRect(), Qt::KeepAspectRatio);
-#endif
     }
 };
 
@@ -90,11 +87,7 @@ int main(int argc, char **argv)
     view.setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
     view.setBackgroundBrush(QColor(230, 200, 167));
     view.setWindowTitle("Drag and Drop Robot");
-#if defined(Q_OS_SYMBIAN)
-    view.showMaximized();
-#else
      view.show();
-#endif
 
     return app.exec();
 }
index 6b591a8..2a61809 100644 (file)
@@ -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)
index 48a9784..6c54ca2 100644 (file)
@@ -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]
 
index 9eb8ba1..1c04057 100644 (file)
@@ -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();
 }
index b345f83..076d823 100644 (file)
@@ -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]
index 1f4ef91..6244df4 100644 (file)
@@ -17,4 +17,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/embeddeddialogs
 INSTALLS += target sources
 
 QT += widgets
-symbian: CONFIG += qt_example
index f8d1e48..8d1f7b8 100644 (file)
@@ -9,6 +9,4 @@ HEADERS += flowlayout.h window.h
 SOURCES += flowlayout.cpp main.cpp window.cpp
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 simulator: warning(This example might not fully work on Simulator platform)
index 8f5a0fa..88bbb79 100644 (file)
@@ -50,12 +50,8 @@ int main(int argc, char **argv)
     Window *w = new Window;
     scene.addItem(w);
 
-#if defined(Q_OS_SYMBIAN)
-    view->showMaximized();
-#else
     view->resize(400, 300);
     view->show();
-#endif
 
     return app.exec();
 }
index a9aeb0d..6b7de52 100644 (file)
@@ -5,9 +5,7 @@ SUBDIRS       = \
               embeddeddialogs \
               collidingmice \
               padnavigator \
-             basicgraphicslayouts
-
-!symbian: SUBDIRS += \
+              basicgraphicslayouts \
               diagramscene \
               dragdroprobot \
               flowlayout \
@@ -27,6 +25,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS graphicsview.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 9a397c7..4cdf71c 100644 (file)
@@ -49,11 +49,7 @@ int main(int argc, char *argv[])
     Q_INIT_RESOURCE(padnavigator);
 
     PadNavigator navigator(QSize(3, 3));
-#if defined(Q_OS_SYMBIAN)
-    navigator.showMaximized();
-#else
     navigator.show();
-#endif
     return app.exec();
 }
 //! [0]
index f0287f1..2c1d043 100644 (file)
@@ -25,11 +25,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/padnavigator
 INSTALLS += target sources
 
 CONFIG += console
-
-symbian {
-    TARGET.UID3 = 0xA000A644
-    CONFIG += qt_example
-}
-maemo5: CONFIG += qt_example
-
-simulator: warning(This example might not fully work on Simulator platform)
index ff1ac2b..a909552 100644 (file)
@@ -127,14 +127,8 @@ int main(int argc, char *argv[])
     view->setScene(scene);
     view->setWindowTitle(QApplication::translate("simpleanchorlayout", "Simple Anchor Layout"));
 
-#if defined(Q_OS_SYMBIAN)
-    view->showMaximized();
-#elif defined(Q_WS_MAEMO_5)
-    view-show();
-#else
     view->resize(360, 320);
     view->show();
-#endif
 
     return app.exec();
 }
index 80cc3a1..b044d4e 100644 (file)
@@ -9,6 +9,4 @@ INSTALLS += target sources
 TARGET = simpleanchorlayout
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 simulator: warning(This example might not fully work on Simulator platform)
index b1f2c72..e87756b 100644 (file)
@@ -190,10 +190,7 @@ int main(int argc, char **argv)
     QApplication app(argc, argv);
 
     QGraphicsScene scene;
-#if defined(Q_OS_SYMBIAN)
-#else
     scene.setSceneRect(0, 0, 800, 480);
-#endif
 
     // pixmaps widgets
     PixmapWidget *title = new PixmapWidget(QPixmap(":/images/title.jpg"));
@@ -268,13 +265,8 @@ int main(int argc, char **argv)
     // QGV setup
     scene.addItem(w);
     scene.setBackgroundBrush(Qt::white);
-#if defined(Q_OS_SYMBIAN)
-    GraphicsView *view = new GraphicsView(&scene, w);
-    view->showMaximized();
-#else
     QGraphicsView *view = new QGraphicsView(&scene);
     view->show();
-#endif
 
     return app.exec();
 }
index 5f1dfd3..4c2fdc6 100644 (file)
@@ -13,6 +13,4 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/weatheranchorlayout
 INSTALLS += target sources
 
 QT += widgets
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 simulator: warning(This example might not fully work on Simulator platform)
index 3c07ce9..d7b4fbb 100644 (file)
@@ -8,6 +8,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS ipc.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/ipc
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 2884fac..e637cce 100644 (file)
 #include "client.h"
 
 Client::Client(QWidget *parent)
-#ifdef Q_WS_MAEMO_5
-    : QWidget(parent)
-#else
     : QDialog(parent)
-#endif
 {
     hostLabel = new QLabel(tr("&Server name:"));
     hostLineEdit = new QLineEdit("fortune");
index b0f0e36..30dc482 100644 (file)
 #ifndef CLIENT_H
 #define CLIENT_H
 
-#ifdef Q_WS_MAEMO_5
-#include <QWidget>
-#else
 #include <QDialog>
-#endif
 
 #include <qlocalsocket.h>
 
@@ -57,11 +53,7 @@ class QPushButton;
 class QLocalSocket;
 QT_END_NAMESPACE
 
-#ifdef Q_WS_MAEMO_5
-class Client : public QWidget
-#else
 class Client : public QDialog
-#endif
 {
     Q_OBJECT
 
index bace957..ee46a06 100644 (file)
@@ -9,9 +9,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS localfortuneclient.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/ipc/localfortuneclient
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 simulator: warning(This example might not fully work on Simulator platform)
index 8e6feeb..557ca3a 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Client client;
-#if defined(Q_WS_S60)
-    client.showMaximized();
-#else
     client.show();
-#endif
     return app.exec();
 }
index 4c55f3b..4deda45 100644 (file)
@@ -9,7 +9,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS localfortuneserver.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/ipc/localfortuneserver
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example might not fully work on Simulator platform)
index fc0c698..ebae3fd 100644 (file)
@@ -49,11 +49,7 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Server server;
-#if defined(Q_WS_S60)
-    server.showMaximized();
-#else
     server.show();
-#endif
     qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
     return app.exec();
 }
index e68e5de..684c81f 100644 (file)
 #include <qlocalsocket.h>
 
 Server::Server(QWidget *parent)
-#ifdef Q_WS_MAEMO_5
-    : QWidget(parent)
-#else
     : QDialog(parent)
-#endif
 {
     statusLabel = new QLabel;
     statusLabel->setWordWrap(true);
index 313862c..5f00ba4 100644 (file)
 #ifndef SERVER_H
 #define SERVER_H
 
-#ifdef Q_WS_MAEMO_5
-#include <QWidget>
-#else
 #include <QDialog>
-#endif
 
 QT_BEGIN_NAMESPACE
 class QLabel;
@@ -53,11 +49,7 @@ class QPushButton;
 class QLocalServer;
 QT_END_NAMESPACE
 
-#ifdef Q_WS_MAEMO_5
-class Server : public QWidget
-#else
 class Server : public QDialog
-#endif
 {
     Q_OBJECT
 
index 7c5b5dc..d11e16e 100644 (file)
@@ -12,10 +12,6 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/ipc/sharedmemory
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example does not work on Symbian platform)
-maemo5: warning(This example does not work on Maemo platform)
 simulator: warning(This example does not work on Simulator platform)
index 5eeb601..32cbc4c 100644 (file)
@@ -15,11 +15,5 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/addressbook
 sources.files = $$SOURCES $$HEADERS $$RESOURCES addressbook.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/addressbook
 INSTALLS += target sources
-
-symbian {
-    TARGET.UID3 = 0xA000A646
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
index 2c01aec..0a0ccb7 100644 (file)
@@ -46,11 +46,7 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     MainWindow mw;
-#if defined(Q_OS_SYMBIAN)
-    mw.showMaximized();
-#else
     mw.show();
-#endif
     return app.exec();
 }
 //! [0]
index a317f44..75f96e4 100644 (file)
@@ -9,6 +9,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/basicsortfiltermodel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 003f6a4..8f8a2a7 100644 (file)
@@ -88,10 +88,6 @@ int main(int argc, char *argv[])
     QApplication app(argc, argv);
     Window window;
     window.setSourceModel(createMailModel(&window));
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 9fcd363..08bdc04 100644 (file)
@@ -89,38 +89,6 @@ Window::Window()
     connect(sortCaseSensitivityCheckBox, SIGNAL(toggled(bool)),
             this, SLOT(sortChanged()));
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    sourceWidget = new QWidget;
-    filterWidget = new QWidget;
-    proxyWidget = new QWidget;
-
-    QHBoxLayout *sourceLayout = new QHBoxLayout;
-    sourceLayout->addWidget(sourceView);
-    sourceWidget->setLayout(sourceLayout);
-
-    QGridLayout *filterLayout = new QGridLayout;
-    filterLayout->addWidget(filterPatternLabel, 1, 0);
-    filterLayout->addWidget(filterPatternLineEdit, 1, 1, 1, 2);
-    filterLayout->addWidget(filterSyntaxLabel, 2, 0);
-    filterLayout->addWidget(filterSyntaxComboBox, 2, 1, 1, 2);
-    filterLayout->addWidget(filterColumnLabel, 3, 0);
-    filterLayout->addWidget(filterColumnComboBox, 3, 1, 1, 2);
-    filterLayout->addWidget(filterCaseSensitivityCheckBox, 4, 0, 1, 2);
-    filterLayout->addWidget(sortCaseSensitivityCheckBox, 4, 2);
-    filterWidget->setLayout(filterLayout);
-
-    QHBoxLayout *proxyLayout = new QHBoxLayout;
-    proxyLayout->addWidget(proxyView);
-    proxyWidget->setLayout(proxyLayout);
-
-    QVBoxLayout *mainLayout = new QVBoxLayout;
-
-    QTabWidget *tabWidget = new QTabWidget;
-    tabWidget->addTab(sourceWidget, "Source");
-    tabWidget->addTab(filterWidget, "Filters");
-    tabWidget->addTab(proxyWidget, "Proxy");
-    mainLayout->addWidget(tabWidget);
-#else
     sourceGroupBox = new QGroupBox(tr("Original Model"));
     proxyGroupBox = new QGroupBox(tr("Sorted/Filtered Model"));
 
@@ -144,7 +112,6 @@ Window::Window()
 
     mainLayout->addWidget(sourceGroupBox);
     mainLayout->addWidget(proxyGroupBox);
-#endif
 
     setLayout(mainLayout);
 
index fbdffc3..92b5008 100644 (file)
@@ -71,14 +71,8 @@ private slots:
 private:
     QSortFilterProxyModel *proxyModel;
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    QWidget *sourceWidget;
-    QWidget *filterWidget;
-    QWidget *proxyWidget;
-#else
     QGroupBox *sourceGroupBox;
     QGroupBox *proxyGroupBox;
-#endif
     QTreeView *sourceView;
     QTreeView *proxyView;
     QCheckBox *filterCaseSensitivityCheckBox;
index 34d6995..310bb85 100644 (file)
@@ -4,7 +4,7 @@ RESOURCES   = chart.qrc
 SOURCES     = main.cpp \
               mainwindow.cpp \
               pieview.cpp
-unix:!mac:!symbian:!vxworks:!integrity:LIBS+= -lm
+unix:!mac:!vxworks:!integrity:LIBS+= -lm
 
 TARGET.EPOCHEAPSIZE = 0x200000 0x800000
 
@@ -14,10 +14,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.cht
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/chart
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A647
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
index 52d8f28..9366540 100644 (file)
@@ -48,10 +48,6 @@ int main(int argc, char *argv[])
 
     QApplication app(argc, argv);
     MainWindow window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 387efd5..07e1296 100644 (file)
@@ -10,9 +10,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/coloreditorfactory
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
index 7690ba9..bbb1d25 100644 (file)
@@ -47,11 +47,7 @@ int main(int argv, char **args)
     QApplication app(argv, args);
 
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
 
     return app.exec();
 }
index 46fce72..9ea1fa0 100644 (file)
@@ -9,5 +9,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/combowidgetmapper
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
index 9e45ede..41e756d 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char **argv)
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 05087f9..a2288b9 100644 (file)
@@ -11,6 +11,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/customsortfiltermodel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index e643062..34be2f6 100644 (file)
@@ -89,11 +89,7 @@ int main(int argc, char *argv[])
     QApplication app(argc, argv);
     Window window;
     window.setSourceModel(createMailModel(&window));
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
 //! [0]
index 323eef9..95b5f58 100644 (file)
@@ -59,13 +59,8 @@ Window::Window()
     QHBoxLayout *sourceLayout = new QHBoxLayout;
     //! [2]
     sourceLayout->addWidget(sourceView);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    sourceWidget = new QWidget;
-    sourceWidget->setLayout(sourceLayout);
-#else
     sourceGroupBox = new QGroupBox(tr("Original Model"));
     sourceGroupBox->setLayout(sourceLayout);
-#endif
     //! [2]
 
     //! [3]
@@ -114,26 +109,6 @@ Window::Window()
     proxyView->setSortingEnabled(true);
     proxyView->sortByColumn(1, Qt::AscendingOrder);
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    QGridLayout *filterLayout = new QGridLayout;
-    filterLayout->addWidget(filterPatternLabel, 0, 0);
-    filterLayout->addWidget(filterPatternLineEdit, 0, 1);
-    filterLayout->addWidget(filterSyntaxComboBox, 0, 2);
-    filterLayout->addWidget(filterCaseSensitivityCheckBox, 1, 0, 1, 3);
-    filterLayout->addWidget(fromLabel, 2, 0);
-    filterLayout->addWidget(fromDateEdit, 2, 1, 1, 2);
-    filterLayout->addWidget(toLabel, 3, 0);
-    filterLayout->addWidget(toDateEdit, 3, 1, 1, 2);
-
-    filterWidget = new QWidget;
-    filterWidget->setLayout(filterLayout);
-
-    QHBoxLayout *proxyLayout = new QHBoxLayout;
-    proxyLayout->addWidget(proxyView);
-
-    proxyWidget = new QWidget;
-    proxyWidget->setLayout(proxyLayout);
-#else
     QGridLayout *proxyLayout = new QGridLayout;
     proxyLayout->addWidget(proxyView, 0, 0, 1, 3);
     proxyLayout->addWidget(filterPatternLabel, 1, 0);
@@ -147,21 +122,9 @@ Window::Window()
 
     proxyGroupBox = new QGroupBox(tr("Sorted/Filtered Model"));
     proxyGroupBox->setLayout(proxyLayout);
-#endif
     //! [5]
 
     //! [6]
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    QTabWidget *tabWidget = new QTabWidget;
-    tabWidget->addTab(sourceWidget, "Original");
-    tabWidget->addTab(filterWidget, "Filters");
-    tabWidget->addTab(proxyWidget, "Sorted");
-
-    QVBoxLayout *mainLayout = new QVBoxLayout;
-    mainLayout->addWidget(tabWidget);
-    setLayout(mainLayout);
-    setWindowTitle(tr("Custom Model"));
-#else
     QVBoxLayout *mainLayout = new QVBoxLayout;
     mainLayout->addWidget(sourceGroupBox);
     mainLayout->addWidget(proxyGroupBox);
@@ -169,7 +132,6 @@ Window::Window()
 
     setWindowTitle(tr("Custom Sort/Filter Model"));
     resize(500, 450);
-#endif
 }
 //! [6]
 
index 50ec1f4..15baffc 100644 (file)
@@ -72,14 +72,8 @@ private slots:
 private:
     MySortFilterProxyModel *proxyModel;
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5 ) || defined(Q_WS_SIMULATOR)
-    QWidget *sourceWidget;
-    QWidget *filterWidget;
-    QWidget *proxyWidget;
-#else
     QGroupBox *sourceGroupBox;
     QGroupBox *proxyGroupBox;
-#endif
     QTreeView *sourceView;
     QTreeView *proxyView;
     QCheckBox *filterCaseSensitivityCheckBox;
index 2401ee9..825f20c 100644 (file)
@@ -6,6 +6,4 @@ sources.files = $$SOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/dirview
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index c150409..dbb5b7a 100644 (file)
@@ -55,12 +55,8 @@ int main(int argc, char *argv[])
     tree.setSortingEnabled(true);
 
     tree.setWindowTitle(QObject::tr("Dir View"));
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5)
-    tree.showMaximized();
-#else
     tree.resize(640, 480);
     tree.show();
-#endif
 
     return app.exec();
 }
index e844994..f862985 100644 (file)
@@ -15,6 +15,4 @@ sources.files = $$FORMS $$HEADERS $$RESOURCES $$SOURCES *.pro *.txt
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/editabletreemodel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index c499bb7..5a2cc77 100644 (file)
@@ -48,10 +48,6 @@ int main(int argc, char *argv[])
 
     QApplication app(argc, argv);
     MainWindow window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index a6a294e..3080684 100644 (file)
@@ -48,10 +48,6 @@ MainWindow::MainWindow(QWidget *parent)
 {
     setupUi(this);
 
-#ifdef Q_WS_MAEMO_5
-    // Alternating row colors look bad on Maemo
-    view->setAlternatingRowColors(false);
-#endif
 
     QStringList headers;
     headers << tr("Title") << tr("Description");
index 848a12f..28af7e9 100644 (file)
@@ -11,5 +11,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/fetchmore
 INSTALLS += target sources
 
 QT += widgets
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
index c2deca3..aedfd9f 100644 (file)
@@ -45,10 +45,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 79eedf7..34a4a4d 100644 (file)
@@ -9,5 +9,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/frozencolumn
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
index 79f8ad4..f6aa489 100644 (file)
@@ -81,14 +81,8 @@ int main( int argc, char** argv )
       FreezeTableWidget *tableView = new FreezeTableWidget(model);
 
       tableView->setWindowTitle(QObject::tr("Frozen Column Example"));
-#if defined(Q_OS_SYMBIAN)
-      tableView->showMaximized();
-#elif defined(Q_WS_MAEMO_5)
-      tableView->show();
-#else
       tableView->resize(560,680);
       tableView->show();
-#endif
       return app.exec();
 }
 
index fec3ec1..5cd0d1f 100644 (file)
@@ -17,4 +17,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/interview
 INSTALLS += target sources
 
 QT += widgets
-symbian: CONFIG += qt_example
index 3048aa1..347c259 100644 (file)
@@ -22,6 +22,4 @@ sources.files = README *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 0324b3a..e7f45e3 100644 (file)
@@ -48,11 +48,7 @@ int main(int argc, char *argv[])
 
     QApplication app(argc, argv);
     MainWindow window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     window.openImage(":/images/qt.png");
     return app.exec();
 }
index 91a78aa..7a482a1 100644 (file)
@@ -13,6 +13,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/pixelator
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets printsupport
-maemo5: CONFIG += qt_example
index bdba287..6034194 100644 (file)
@@ -49,10 +49,6 @@ int main(int argc, char *argv[])
     QApplication app(argc, argv);
     MainWindow window;
     window.openImage(":/images/example.jpg");
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 9787512..5142de1 100644 (file)
@@ -125,11 +125,7 @@ void MainWindow::setupWidgets()
     QFrame *frame = new QFrame;
     QHBoxLayout *frameLayout = new QHBoxLayout(frame);
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
-    puzzleWidget = new PuzzleWidget(260);
-#else
     puzzleWidget = new PuzzleWidget(400);
-#endif
 
     piecesList = new QListView;
     piecesList->setDragEnabled(true);
index 2f15daf..bcc8ab2 100644 (file)
@@ -13,12 +13,10 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.jpg
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/puzzle
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 wince* {
    DEPLOYMENT_PLUGIN += qjpeg qgif qtiff
 }
 
 QT += widgets
-maemo5: CONFIG += qt_example
 
index 94496f8..74a14b0 100644 (file)
@@ -46,13 +46,7 @@ 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)
-    window.show();
-#else
     window.resize(640, 480);
     window.show();
-#endif
     return app.exec();
 }
index 4044ae3..2d30e71 100644 (file)
@@ -14,5 +14,3 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/simpledommodel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
index 15e6bc3..1cca363 100644 (file)
@@ -56,10 +56,6 @@ int main(int argc, char *argv[])
     QTreeView view;
     view.setModel(&model);
     view.setWindowTitle(QObject::tr("Simple Tree Model"));
-#if defined(Q_OS_SYMBIAN)
-    view.showMaximized();
-#else
     view.show();
-#endif
     return app.exec();
 }
index 336544d..cd4f8af 100644 (file)
@@ -12,6 +12,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.txt
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/simpletreemodel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 9e45ede..41e756d 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char **argv)
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index b496064..3b2fd8b 100644 (file)
@@ -8,6 +8,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/simplewidgetmapper
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 50d2ef1..e078d7f 100644 (file)
@@ -80,11 +80,7 @@ int main(int argc, char *argv[])
 
 //! [3]
     tableView.setWindowTitle(QObject::tr("Spin Box Delegate"));
-#if defined(Q_OS_SYMBIAN)
-    tableView.showMaximized();
-#else
     tableView.show();
-#endif
     return app.exec();
 }
 //! [3]
index 1859252..f6416ff 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/spinboxdelegate
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index aaa90e7..f00dfb4 100644 (file)
@@ -32,4 +32,3 @@ sources.files = $$SOURCES $$RESOURCES *.pro images $$HEADERS
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/spreadsheet
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
index a9d5e96..78245d0 100644 (file)
@@ -100,11 +100,7 @@ int main(int argc, char *argv[])
 
     tableWidget.resizeColumnsToContents();
     tableWidget.resize(500, 300);
-#if defined(Q_OS_SYMBIAN)
-    tableWidget.showMaximized();
-#else
     tableWidget.show();
-#endif
 
     return app.exec();
 }
index 56679be..915c26a 100644 (file)
@@ -12,10 +12,6 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/stardelegate
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
 QT += widgets
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index ab51bc8..b7dd215 100644 (file)
@@ -10,6 +10,4 @@ sources.files = $$SOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/linguist/hellotr
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 7751e13..b2c4ad8 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/layouts/basiclayouts
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 6b60775..767cf0f 100644 (file)
@@ -46,11 +46,7 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Dialog dialog;
-#if defined(Q_OS_SYMBIAN)
-    dialog.showMaximized();
-#else
     dialog.show();
-#endif
 
     return app.exec();
 }
index 76a939d..6727af6 100644 (file)
@@ -10,6 +10,4 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/layouts/borderlayout
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 4a43828..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index d07903d..6e4f1ef 100644 (file)
 #include "dialog.h"
 
 Dialog::Dialog(QWidget *parent)
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    : QWidget(parent)
-#else
     : QDialog(parent)
-#endif
 {
     createRotableGroupBox();
     createOptionsGroupBox();
index 3ada992..f40d160 100644 (file)
@@ -54,11 +54,7 @@ class QLabel;
 class QPushButton;
 QT_END_NAMESPACE
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-class Dialog : public QWidget
-#else
 class Dialog : public QDialog
-#endif
 {
     Q_OBJECT
 
index f6ab779..3cc4c08 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/layouts/dynamiclayouts
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index c30db12..03ac9ad 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Dialog dialog;
-#if defined(Q_OS_SYMBIAN)
-    dialog.showMaximized();
-#else
     dialog.show();
-#endif
     return app.exec();
 }
index f59c4bc..4ac0a43 100644 (file)
@@ -10,6 +10,4 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/layouts/flowlayout
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 4a43828..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index f1940c1..8299052 100644 (file)
@@ -9,6 +9,4 @@ sources.files = README *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/layouts
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 8181ee0..a897587 100644 (file)
@@ -15,10 +15,6 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/linguist/arrowpad
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 0a3ed48..0cd0699 100644 (file)
@@ -10,10 +10,6 @@ sources.files = $$SOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/linguist/hellotr
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 416a6e6..aa50f03 100644 (file)
@@ -8,6 +8,4 @@ sources.files = README *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/linguist
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 0588424..5c7d7ff 100644 (file)
@@ -11,10 +11,6 @@ sources.files = $$SOURCES $$HEADERS $$TRANSLATIONS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/linguist/trollprint
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index f66fa5f..ef866a6 100644 (file)
@@ -11,9 +11,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS application.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows/application
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 14c7af2..9a9dc9c 100644 (file)
@@ -51,11 +51,7 @@ int main(int argc, char *argv[])
     app.setOrganizationName("Trolltech");
     app.setApplicationName("Application Example");
     MainWindow mainWin;
-#if defined(Q_OS_SYMBIAN)
-    mainWin.showMaximized();
-#else
     mainWin.show();
-#endif
     return app.exec();
 }
 //! [0]
index bea8f4c..42eab88 100644 (file)
@@ -9,10 +9,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES dockwidgets.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows/dockwidgets
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets printsupport
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index ef1485a..15ee5bd 100644 (file)
@@ -75,7 +75,7 @@ static const char * const message =
     "<p>Each dock widget contains a colored frame and a context "
     "(right-click) menu.</p>"
 
-#ifdef Q_WS_MAC
+#ifdef Q_OS_MAC
     "<p>On Mac OS X, the \"Black\" dock widget has been created as a "
     "<em>Drawer</em>, which is a special kind of QDockWidget.</p>"
 #endif
@@ -312,7 +312,7 @@ void MainWindow::setupDockWidgets(const QMap<QString, QSize> &customSizeHints)
         uint flags;
         Qt::DockWidgetArea area;
     } sets [] = {
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
         { "Black", 0, Qt::LeftDockWidgetArea },
 #else
         { "Black", Qt::Drawer, Qt::LeftDockWidgetArea },
index afe03a5..1381c46 100644 (file)
@@ -15,4 +15,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows/mainwindow
 INSTALLS += target sources
 
 QT += widgets
-symbian: CONFIG += qt_example
index 69897e3..cf8f4b6 100644 (file)
@@ -15,6 +15,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS mainwindows.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 4e21e75..1a10a19 100644 (file)
@@ -48,10 +48,6 @@ int main(int argc, char *argv[])
 
     QApplication app(argc, argv);
     MainWindow mainWin;
-#if defined(Q_OS_SYMBIAN)
-    mainWin.showMaximized();
-#else
     mainWin.show();
-#endif
     return app.exec();
 }
index 3112128..a4387fe 100644 (file)
@@ -11,9 +11,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS mdi.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows/mdi
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index dffe803..01c8ada 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     MainWindow window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index eae4e6e..2a1c3da 100644 (file)
@@ -53,12 +53,8 @@ MainWindow::MainWindow()
     QWidget *topFiller = new QWidget;
     topFiller->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
 
-#ifdef Q_OS_SYMBIAN
-    infoLabel = new QLabel(tr("<i>Choose a menu option</i>"));
-#else
     infoLabel = new QLabel(tr("<i>Choose a menu option, or right-click to "
                               "invoke a context menu</i>"));
-#endif
     infoLabel->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
     infoLabel->setAlignment(Qt::AlignCenter);
 
@@ -77,10 +73,8 @@ MainWindow::MainWindow()
     createActions();
     createMenus();
 
-#ifndef Q_OS_SYMBIAN
     QString message = tr("A context menu is available by right-clicking");
     statusBar()->showMessage(message);
-#endif
 
     setWindowTitle(tr("Menus"));
     setMinimumSize(160, 160);
index c004ef7..5ed1e0d 100644 (file)
@@ -8,11 +8,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS menus.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows/menus
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000CF66
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-simulator: warning(This example might not fully work on Simulator platform)
index 37891b3..3bbf013 100644 (file)
@@ -48,10 +48,6 @@ int main(int argc, char *argv[])
     app.setOrganizationName("Trolltech");
     app.setApplicationName("Recent Files Example");
     MainWindow *mainWin = new MainWindow;
-#if defined(Q_OS_SYMBIAN)
-    mainWin->showMaximized();
-#else
     mainWin->show();
-#endif
     return app.exec();
 }
index ecc78f2..5425efc 100644 (file)
@@ -8,8 +8,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS recentfiles.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows/recentfiles
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example might not fully work on Simulator platform)
index ae3586c..0fb8a03 100644 (file)
@@ -49,10 +49,6 @@ int main(int argc, char *argv[])
     app.setApplicationName("SDI Example");
     app.setOrganizationName("Trolltech");
     MainWindow *mainWin = new MainWindow;
-#if defined(Q_OS_SYMBIAN)
-    mainWin->showMaximized();
-#else
     mainWin->show();
-#endif
     return app.exec();
 }
index c868761..cd5e0f1 100644 (file)
@@ -9,9 +9,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS sdi.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows/sdi
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 43ae8e9..a543c93 100644 (file)
@@ -63,9 +63,6 @@ BearerMonitor::BearerMonitor(QWidget *parent)
     delete tabWidget->currentWidget();
     sessionGroup->hide();
 #endif
-#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE) || defined(MAEMO_UI) || defined(Q_WS_SIMULATOR)
-    setWindowState(Qt::WindowMaximized);
-#endif
     updateConfigurations();
     onlineStateChanged(!manager.allConfigurations(QNetworkConfiguration::Active).isEmpty());
     QNetworkConfiguration defaultConfiguration = manager.defaultConfiguration();
index f4dbf81..c4199d6 100644 (file)
 
 #include <qnetworkconfigmanager.h>
 #include <qnetworksession.h>
-#if defined (Q_OS_SYMBIAN) || defined(Q_OS_WINCE) || defined(Q_WS_SIMULATOR)
-#include "ui_bearermonitor_240_320.h"
-#elif defined(MAEMO_UI)
-#include "ui_bearermonitor_maemo.h"
-#else
 #include "ui_bearermonitor_640_480.h"
-#endif
 
 QT_USE_NAMESPACE
 
@@ -72,7 +66,7 @@ private slots:
 
     void onlineStateChanged(bool isOnline);
 
-#if defined(Q_OS_WIN) || defined(Q_WS_SIMULATOR)
+#if defined(Q_OS_WIN)
     void registerNetwork();
     void unregisterNetwork();
 #endif
@@ -81,9 +75,7 @@ private slots:
 
     void createSessionFor(QTreeWidgetItem *item);
     void createNewSession();
-#ifndef MAEMO_UI
     void deleteSession();
-#endif
     void performScan();
 
 private:
index 8b2b33a..3486bc1 100644 (file)
@@ -23,11 +23,3 @@ wince*:LIBS += -lws2
 
 CONFIG += console
 
-symbian: {
-    TARGET.CAPABILITY = NetworkServices ReadUserData
-    CONFIG += qt_example
-}
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
index 0491433..8867e25 100644 (file)
@@ -68,10 +68,6 @@ BlockingClient::BlockingClient(QWidget *parent)
     portLineEdit = new QLineEdit;
     portLineEdit->setValidator(new QIntValidator(1, 65535, this));
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    Qt::InputMethodHint hints = Qt::ImhDigitsOnly;
-    portLineEdit->setInputMethodHints(hints);
-#endif
 
     hostLabel->setBuddy(hostLineEdit);
     portLabel->setBuddy(portLineEdit);
@@ -80,23 +76,6 @@ BlockingClient::BlockingClient(QWidget *parent)
                                 "Fortune Server example as well."));
     statusLabel->setWordWrap(true);
 
-#ifdef Q_OS_SYMBIAN
-    QMenu *menu = new QMenu(this);
-    fortuneAction = menu->addAction(tr("Get Fortune"));
-    fortuneAction->setVisible(false);
-
-    QAction *optionsAction = new QAction(tr("Options"), this);
-    optionsAction->setMenu(menu);
-    optionsAction->setSoftKeyRole(QAction::PositiveSoftKey);
-    addAction(optionsAction);
-
-    exitAction = new QAction(tr("Exit"), this);
-    exitAction->setSoftKeyRole(QAction::NegativeSoftKey);
-    addAction(exitAction);
-
-    connect(fortuneAction, SIGNAL(triggered()), this, SLOT(requestNewFortune()));
-    connect(exitAction, SIGNAL(triggered()), this, SLOT(close()));
-#else
     getFortuneButton = new QPushButton(tr("Get Fortune"));
     getFortuneButton->setDefault(true);
     getFortuneButton->setEnabled(false);
@@ -109,7 +88,6 @@ BlockingClient::BlockingClient(QWidget *parent)
 
     connect(getFortuneButton, SIGNAL(clicked()), this, SLOT(requestNewFortune()));
     connect(quitButton, SIGNAL(clicked()), this, SLOT(close()));
-#endif
 
     connect(hostLineEdit, SIGNAL(textChanged(QString)),
             this, SLOT(enableGetFortuneButton()));
@@ -129,9 +107,7 @@ BlockingClient::BlockingClient(QWidget *parent)
     mainLayout->addWidget(portLabel, 1, 0);
     mainLayout->addWidget(portLineEdit, 1, 1);
     mainLayout->addWidget(statusLabel, 2, 0, 1, 2);
-#ifndef Q_OS_SYMBIAN
     mainLayout->addWidget(buttonBox, 3, 0, 1, 2);
-#endif
     setLayout(mainLayout);
 
     setWindowTitle(tr("Blocking Fortune Client"));
@@ -141,11 +117,7 @@ BlockingClient::BlockingClient(QWidget *parent)
 //! [2]
 void BlockingClient::requestNewFortune()
 {
-#ifdef Q_OS_SYMBIAN
-    fortuneAction->setVisible(false);
-#else
     getFortuneButton->setEnabled(false);
-#endif
     thread.requestNewFortune(hostLineEdit->text(),
                              portLineEdit->text().toInt());
 }
@@ -163,11 +135,7 @@ void BlockingClient::showFortune(const QString &nextFortune)
 //! [4]
     currentFortune = nextFortune;
     statusLabel->setText(currentFortune);
-#ifdef Q_OS_SYMBIAN
-    fortuneAction->setVisible(true);
-#else
     getFortuneButton->setEnabled(true);
-#endif
 }
 //! [4]
 
@@ -192,19 +160,11 @@ void BlockingClient::displayError(int socketError, const QString &message)
                                  .arg(message));
     }
 
-#ifdef Q_OS_SYMBIAN
-    fortuneAction->setVisible(true);
-#else
     getFortuneButton->setEnabled(true);
-#endif
 }
 
 void BlockingClient::enableGetFortuneButton()
 {
     bool enable(!hostLineEdit->text().isEmpty() && !portLineEdit->text().isEmpty());
-#ifdef Q_OS_SYMBIAN
-    fortuneAction->setVisible(enable);
-#else
     getFortuneButton->setEnabled(enable);
-#endif
 }
index 83ff93b..99b97f1 100644 (file)
@@ -73,14 +73,9 @@ private:
     QLineEdit *hostLineEdit;
     QLineEdit *portLineEdit;
     QLabel *statusLabel;
-#ifdef Q_OS_SYMBIAN
-    QAction *fortuneAction;
-    QAction *exitAction;
-#else
     QPushButton *getFortuneButton;
     QPushButton *quitButton;
     QDialogButtonBox *buttonBox;
-#endif
 
     FortuneThread thread;
     QString currentFortune;
index 3fe6f7c..c8689b3 100644 (file)
@@ -13,11 +13,3 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS blockingfortuneclient.pr
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/blockingfortuneclient
 INSTALLS += target sources
 
-symbian: {
-    CONFIG += qt_example
-    TARGET.CAPABILITY = NetworkServices
-}
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
index 97ce59f..b674640 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     BlockingClient client;
-#ifdef Q_OS_SYMBIAN
-    client.showMaximized();
-#else
     client.show();
-#endif
     return app.exec();
 }
index bc6b0ee..712da49 100644 (file)
@@ -11,8 +11,3 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS broadcastreceiver.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/broadcastreceiver
 INSTALLS += target sources
 
-symbian: {
-    CONFIG += qt_example
-    TARGET.CAPABILITY = NetworkServices
-}
-maemo5: CONFIG += qt_example
index 80d0bba..748f4b5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Receiver receiver;
-#ifdef Q_OS_SYMBIAN
-    receiver.showMaximized();
-#else
     receiver.show();
-#endif
     return app.exec();
 }
index e083028..6a49046 100644 (file)
@@ -49,13 +49,7 @@ Receiver::Receiver(QWidget *parent)
     statusLabel = new QLabel(tr("Listening for broadcasted messages"));
     statusLabel->setWordWrap(true);
 
-#ifdef Q_OS_SYMBIAN
-    quitAction = new QAction(tr("Exit"), this);
-    quitAction->setSoftKeyRole(QAction::NegativeSoftKey);
-    addAction(quitAction);
-#else
     quitButton = new QPushButton(tr("&Quit"));
-#endif
 
 //! [0]
     udpSocket = new QUdpSocket(this);
@@ -66,13 +60,6 @@ Receiver::Receiver(QWidget *parent)
     connect(udpSocket, SIGNAL(readyRead()),
             this, SLOT(processPendingDatagrams()));
 //! [1]
-#ifdef Q_OS_SYMBIAN
-    connect(quitAction, SIGNAL(triggered()), this, SLOT(close()));
-
-    QVBoxLayout *mainLayout = new QVBoxLayout;
-    mainLayout->addWidget(statusLabel);
-    setLayout(mainLayout);
-#else
     connect(quitButton, SIGNAL(clicked()), this, SLOT(close()));
 
     QHBoxLayout *buttonLayout = new QHBoxLayout;
@@ -84,7 +71,6 @@ Receiver::Receiver(QWidget *parent)
     mainLayout->addWidget(statusLabel);
     mainLayout->addLayout(buttonLayout);
     setLayout(mainLayout);
-#endif
 
     setWindowTitle(tr("Broadcast Receiver"));
 }
index 3084da1..7a282d2 100644 (file)
@@ -62,11 +62,7 @@ private slots:
 
 private:
     QLabel *statusLabel;
-#ifdef Q_OS_SYMBIAN
-    QAction *quitAction;
-#else
     QPushButton *quitButton;
-#endif
     QUdpSocket *udpSocket;
 };
 
index 0944164..40f173f 100644 (file)
@@ -10,9 +10,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/broadcastsender
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS broadcastsender.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/broadcastsender
 INSTALLS += target sources
-
-symbian: {
-    CONFIG += qt_example
-    TARGET.CAPABILITY = NetworkServices
-}
-maemo5: CONFIG += qt_example
index 88be21d..7c70255 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Sender sender;
-#ifdef Q_OS_SYMBIAN
-    sender.showMaximized();
-#else
     sender.show();
-#endif
     return app.exec();
 }
index a3b270d..7c53044 100644 (file)
@@ -17,8 +17,5 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/download
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 2f83f41..6b7e4f8 100644 (file)
@@ -18,8 +18,6 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/downloadmanager
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
 OTHER_FILES += \
     debian/changelog \
@@ -28,5 +26,4 @@ OTHER_FILES += \
     debian/copyright \
     debian/README \
     debian/rules
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index b5cb3b4..b8d311b 100644 (file)
@@ -10,14 +10,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/fortuneclient
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS fortuneclient.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/fortuneclient
 INSTALLS += target sources
-
-symbian {
-    CONFIG += qt_example
-    TARGET.CAPABILITY = "NetworkServices ReadUserData WriteUserData"
-    TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
-}
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index bf3cec1..f6c459e 100644 (file)
@@ -45,11 +45,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Client client;
-#ifdef Q_OS_SYMBIAN
-    // Make application better looking and more usable on small screen
-    client.showMaximized();
-#else
     client.show();
-#endif
     return client.exec();
 }
index ed865e4..ac7e82f 100644 (file)
@@ -10,15 +10,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/fortuneserver
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS fortuneserver.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/fortuneserver
 INSTALLS += target sources
-
-symbian {
-    TARGET.UID3 = 0xA000E406
-    CONFIG += qt_example
-    TARGET.CAPABILITY = "NetworkServices ReadUserData"
-    TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
-}
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index 74f182e..6c0e9ee 100644 (file)
@@ -49,11 +49,7 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Server server;
-#ifdef Q_OS_SYMBIAN
-    server.showMaximized();
-#else
     server.show();
-#endif
     qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
     return server.exec();
 }
index 97866f6..b5ff5f1 100644 (file)
@@ -8,9 +8,5 @@ sources.files = $$SOURCES $$HEADERS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/googlesuggest
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 6f4b7be..8349de4 100644 (file)
@@ -11,9 +11,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/http
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS http.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/http
 INSTALLS += target sources
-
-symbian: {
-    CONFIG += qt_example
-    TARGET.CAPABILITY = NetworkServices
-}
-maemo5: CONFIG += qt_example
index 77c1e31..082dc91 100644 (file)
 #include "ui_authenticationdialog.h"
 
 HttpWindow::HttpWindow(QWidget *parent)
-#ifdef Q_WS_MAEMO_5
-    : QWidget(parent)
-#else
     : QDialog(parent)
-#endif
 {
 #ifndef QT_NO_OPENSSL
     urlLineEdit = new QLineEdit("https://qt.nokia.com/");
@@ -72,9 +68,7 @@ HttpWindow::HttpWindow(QWidget *parent)
     buttonBox->addButton(downloadButton, QDialogButtonBox::ActionRole);
     buttonBox->addButton(quitButton, QDialogButtonBox::RejectRole);
 
-#ifndef Q_WS_MAEMO_5
     progressDialog = new QProgressDialog(this);
-#endif
 
     connect(urlLineEdit, SIGNAL(textChanged(QString)),
             this, SLOT(enableDownloadButton()));
@@ -85,9 +79,7 @@ HttpWindow::HttpWindow(QWidget *parent)
     connect(&qnam, SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)),
             this, SLOT(sslErrors(QNetworkReply*,QList<QSslError>)));
 #endif
-#ifndef Q_WS_MAEMO_5
     connect(progressDialog, SIGNAL(canceled()), this, SLOT(cancelDownload()));
-#endif
     connect(downloadButton, SIGNAL(clicked()), this, SLOT(downloadFile()));
     connect(quitButton, SIGNAL(clicked()), this, SLOT(close()));
 
@@ -145,10 +137,8 @@ void HttpWindow::downloadFile()
         return;
     }
 
-#ifndef Q_WS_MAEMO_5
     progressDialog->setWindowTitle(tr("HTTP"));
     progressDialog->setLabelText(tr("Downloading %1.").arg(fileName));
-#endif
     downloadButton->setEnabled(false);
 
     // schedule the request
@@ -174,15 +164,11 @@ void HttpWindow::httpFinished()
             file = 0;
         }
         reply->deleteLater();
-#ifndef Q_WS_MAEMO_5
         progressDialog->hide();
-#endif
         return;
     }
 
-#ifndef Q_WS_MAEMO_5
     progressDialog->hide();
-#endif
     file->flush();
     file->close();
 
@@ -233,13 +219,8 @@ void HttpWindow::updateDataReadProgress(qint64 bytesRead, qint64 totalBytes)
     if (httpRequestAborted)
         return;
 
-#ifndef Q_WS_MAEMO_5
     progressDialog->setMaximum(totalBytes);
     progressDialog->setValue(bytesRead);
-#else
-    Q_UNUSED(bytesRead);
-    Q_UNUSED(totalBytes);
-#endif
 }
 
 void HttpWindow::enableDownloadButton()
index 8bbe1a2..0ec87af 100644 (file)
 #ifndef HTTPWINDOW_H
 #define HTTPWINDOW_H
 
-#ifdef Q_WS_MAEMO_5
-#include <QWidget>
-#else
 #include <QDialog>
-#endif
 #include <QNetworkAccessManager>
 #include <QUrl>
 
@@ -63,11 +59,7 @@ class QNetworkReply;
 
 QT_END_NAMESPACE
 
-#ifdef Q_WS_MAEMO_5
-class HttpWindow : public QWidget
-#else
 class HttpWindow : public QDialog
-#endif
 {
     Q_OBJECT
 
@@ -92,9 +84,7 @@ private:
     QLabel *statusLabel;
     QLabel *urlLabel;
     QLineEdit *urlLineEdit;
-#ifndef Q_WS_MAEMO_5
     QProgressDialog *progressDialog;
-#endif
     QPushButton *downloadButton;
     QPushButton *quitButton;
     QDialogButtonBox *buttonBox;
index e4f1574..ae20f6f 100644 (file)
@@ -47,20 +47,9 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
 
-#if defined(Q_OS_SYMBIAN)
-    // Change current directory from default private to c:\data
-    // in order that user can access the downloaded content
-    QDir::setCurrent("c:\\data");
-#elif defined(Q_WS_MAEMO_5)
-    QDir::setCurrent("/home/user");
-#endif
 
     HttpWindow httpWin;
 
-#if defined(Q_OS_SYMBIAN)
-    httpWin.showMaximized();
-#else
     httpWin.show();
-#endif
     return app.exec();
 }
index f9a5126..34fc999 100644 (file)
 
 #include "dialog.h"
 
-#if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)
 static const int TotalBytes = 50 * 1024 * 1024;
-#else
-static const int TotalBytes = 5 * 1024 * 1024;
-#endif
 static const int PayloadSize = 64 * 1024; // 64 KB
 
 Dialog::Dialog(QWidget *parent)
@@ -58,22 +54,6 @@ Dialog::Dialog(QWidget *parent)
     serverProgressBar = new QProgressBar;
     serverStatusLabel = new QLabel(tr("Server ready"));
 
-#ifdef Q_OS_SYMBIAN
-    QMenu *menu = new QMenu(this);
-
-    QAction *optionsAction = new QAction(tr("Options"), this);
-    optionsAction->setSoftKeyRole(QAction::PositiveSoftKey);
-    optionsAction->setMenu(menu);
-    addAction(optionsAction);
-
-    startAction = menu->addAction(tr("Start"), this, SLOT(start()));
-
-    quitAction = new QAction(tr("Exit"), this);
-    quitAction->setSoftKeyRole(QAction::NegativeSoftKey);
-    addAction(quitAction);
-
-    connect(quitAction, SIGNAL(triggered()), this, SLOT(close()));
-#else
     startButton = new QPushButton(tr("&Start"));
     quitButton = new QPushButton(tr("&Quit"));
 
@@ -83,7 +63,6 @@ Dialog::Dialog(QWidget *parent)
 
     connect(startButton, SIGNAL(clicked()), this, SLOT(start()));
     connect(quitButton, SIGNAL(clicked()), this, SLOT(close()));
-#endif
     connect(&tcpServer, SIGNAL(newConnection()),
             this, SLOT(acceptConnection()));
     connect(&tcpClient, SIGNAL(connected()), this, SLOT(startTransfer()));
@@ -99,9 +78,7 @@ Dialog::Dialog(QWidget *parent)
     mainLayout->addWidget(serverStatusLabel);
     mainLayout->addStretch(1);
     mainLayout->addSpacing(10);
-#ifndef Q_OS_SYMBIAN
     mainLayout->addWidget(buttonBox);
-#endif
     setLayout(mainLayout);
 
     setWindowTitle(tr("Loopback"));
@@ -109,11 +86,7 @@ Dialog::Dialog(QWidget *parent)
 
 void Dialog::start()
 {
-#ifdef Q_OS_SYMBIAN
-    startAction->setVisible(false);
-#else
     startButton->setEnabled(false);
-#endif
 
 #ifndef QT_NO_CURSOR
     QApplication::setOverrideCursor(Qt::WaitCursor);
@@ -169,11 +142,7 @@ void Dialog::updateServerProgress()
 
     if (bytesReceived == TotalBytes) {
         tcpServerConnection->close();
-#ifdef Q_OS_SYMBIAN
-        startAction->setVisible(true);
-#else
         startButton->setEnabled(true);
-#endif
 #ifndef QT_NO_CURSOR
         QApplication::restoreOverrideCursor();
 #endif
@@ -210,11 +179,7 @@ void Dialog::displayError(QAbstractSocket::SocketError socketError)
     serverProgressBar->reset();
     clientStatusLabel->setText(tr("Client ready"));
     serverStatusLabel->setText(tr("Server ready"));
-#ifdef Q_OS_SYMBIAN
-    startAction->setVisible(true);
-#else
     startButton->setEnabled(true);
-#endif
 #ifndef QT_NO_CURSOR
     QApplication::restoreOverrideCursor();
 #endif
index b48c090..8261b22 100644 (file)
@@ -76,14 +76,9 @@ private:
     QLabel *clientStatusLabel;
     QLabel *serverStatusLabel;
 
-#ifdef Q_OS_SYMBIAN
-    QAction *startAction;
-    QAction *quitAction;
-#else
     QPushButton *startButton;
     QPushButton *quitButton;
     QDialogButtonBox *buttonBox;
-#endif
 
     QTcpServer tcpServer;
     QTcpSocket tcpClient;
index c96868f..760a366 100644 (file)
@@ -10,9 +10,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/loopback
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS loopback.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/loopback
 INSTALLS += target sources
-
-symbian: {
-    CONFIG += qt_example
-    TARGET.CAPABILITY = NetworkServices
-}
-maemo5: CONFIG += qt_example
index 7f26fd4..03ac9ad 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Dialog dialog;
-#ifdef Q_OS_SYMBIAN
-    dialog.showMaximized();
-#else
     dialog.show();
-#endif
     return app.exec();
 }
index caeca7f..9f0ba09 100644 (file)
@@ -11,4 +11,3 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS multicastreceiver.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/multicastreceiver
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
index a0cdc61..bc49b3e 100644 (file)
@@ -9,4 +9,3 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS multicastsender.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/multicastsender
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
index a126172..94a4dac 100644 (file)
@@ -88,11 +88,6 @@ int main(int argc, char *argv[])
     }
 
     ChatDialog dialog;
-#ifdef Q_OS_SYMBIAN
-    // Make application better looking and more usable on small screen
-    dialog.showMaximized();
-#else
     dialog.show();
-#endif
     return app.exec();
 }
index f6650f1..49b32aa 100644 (file)
@@ -18,13 +18,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS network-chat.pro *.chat
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/network-chat
 INSTALLS += target sources
 
-symbian {
-    CONFIG += qt_example
-    LIBS += -lcharconv
-    TARGET.CAPABILITY = "NetworkServices ReadUserData WriteUserData"
-    TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
-}
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
index 0e5bd17..a0374e7 100644 (file)
@@ -69,11 +69,7 @@ PeerManager::PeerManager(Client *client)
     }
 
     if (username.isEmpty())
-#ifndef Q_OS_SYMBIAN
         username = "unknown";
-#else
-        username = "QtS60";
-#endif
 
     updateAddresses();
     serverPort = 0;
index 90079f9..f12a6a1 100644 (file)
@@ -27,13 +27,10 @@ SUBDIRS       = \
     contains(QT_CONFIG, openssl-linked):SUBDIRS += securesocketclient
 }
 
-symbian: SUBDIRS = qftp
 
 # install
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS network.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 1c0d057..b0d2e5d 100644 (file)
@@ -51,10 +51,6 @@ FtpWindow::FtpWindow(QWidget *parent)
     ftpServerLabel->setBuddy(ftpServerLineEdit);
 
     statusLabel = new QLabel(tr("Please enter the name of an FTP server."));
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    // Use word wrapping to fit the text on screen
-    statusLabel->setWordWrap( true );
-#endif
 
     fileList = new QTreeWidget;
     fileList->setEnabled(false);
@@ -93,22 +89,11 @@ FtpWindow::FtpWindow(QWidget *parent)
     QHBoxLayout *topLayout = new QHBoxLayout;
     topLayout->addWidget(ftpServerLabel);
     topLayout->addWidget(ftpServerLineEdit);
-#ifndef Q_OS_SYMBIAN
     topLayout->addWidget(cdToParentButton);
     topLayout->addWidget(connectButton);
-#else
-    // Make app better lookin on small screen
-    QHBoxLayout *topLayout2 = new QHBoxLayout;
-    topLayout2->addWidget(cdToParentButton);
-    topLayout2->addWidget(connectButton);
-#endif
 
     QVBoxLayout *mainLayout = new QVBoxLayout;
     mainLayout->addLayout(topLayout);
-#ifdef Q_OS_SYMBIAN
-    // Make app better lookin on small screen
-    mainLayout->addLayout(topLayout2);
-#endif
     mainLayout->addWidget(fileList);
     mainLayout->addWidget(statusLabel);
     mainLayout->addWidget(buttonBox);
index f6eb2d4..15689b5 100644 (file)
 #include <QApplication>
 #include "ftpwindow.h"
 
-#ifdef Q_OS_SYMBIAN
-#include <QDir>
-#include <QDesktopWidget>
-#endif
 
 int main(int argc, char *argv[])
 {
     Q_INIT_RESOURCE(ftp);
-#ifdef Q_OS_SYMBIAN
-    // Change current directory from default private to c:\data
-    // in order that user can access the downloaded content
-    QDir::setCurrent( "c:\\data" );
-#endif
     QApplication app(argc, argv);
     FtpWindow ftpWin;
-#ifdef Q_OS_SYMBIAN
-    // Make application better looking and more usable on small screen
-    ftpWin.showMaximized();
-#else
     ftpWin.show();
-#endif
     return ftpWin.exec();
 }
index f0efe63..c554b37 100644 (file)
@@ -11,14 +11,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/qftp
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/qftp
 INSTALLS += target sources
-
-symbian {
-    TARGET.UID3 = 0xA000A648
-    CONFIG += qt_example
-    INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
-    TARGET.CAPABILITY="NetworkServices ReadUserData WriteUserData"
-}
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
index ca50f31..c15534b 100644 (file)
@@ -56,11 +56,7 @@ int main(int argc, char **argv)
     }
 
     SslClient client;
-#ifdef Q_OS_SYMBIAN
-    client.showMaximized();
-#else
     client.show();
-#endif
 
     return app.exec();
 }
index 94c01cd..39da475 100644 (file)
@@ -15,10 +15,3 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.png *.jpg images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/securesocketclient
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000CF67
-    CONFIG += qt_example
-    TARGET.CAPABILITY = NetworkServices
-}
-maemo5: CONFIG += qt_example
-
index 9d6af86..8d862c4 100644 (file)
@@ -192,9 +192,6 @@ void SslClient::sslErrors(const QList<QSslError> &errors)
         ui.sslErrorList->addItem(error.errorString());
 
     executingDialog = true;
-#ifdef Q_OS_SYMBIAN
-    errorDialog.showMaximized();
-#endif
     if (errorDialog.exec() == QDialog::Accepted)
         socket->ignoreSslErrors();
     executingDialog = false;
@@ -208,9 +205,6 @@ void SslClient::displayCertificateInfo()
 {
     CertificateInfo *info = new CertificateInfo(this);
     info->setCertificateChain(socket->peerCertificateChain());
-#ifdef Q_OS_SYMBIAN
-    info->showMaximized();
-#endif
     info->exec();
     info->deleteLater();
 }
index e620761..2340a6b 100644 (file)
@@ -51,14 +51,8 @@ Dialog::Dialog(QWidget *parent)
 {
     statusLabel = new QLabel;
     statusLabel->setWordWrap(true);
-#ifdef Q_OS_SYMBIAN
-    QAction *quitAction = new QAction(tr("Exit"), this);
-    quitAction->setSoftKeyRole(QAction::NegativeSoftKey);
-    addAction(quitAction);
-#else
     quitButton = new QPushButton(tr("Quit"));
     quitButton->setAutoDefault(false);
-#endif
 
     if (!server.listen()) {
         QMessageBox::critical(this, tr("Threaded Fortune Server"),
@@ -85,13 +79,6 @@ Dialog::Dialog(QWidget *parent)
                             "Run the Fortune Client example now.")
                          .arg(ipAddress).arg(server.serverPort()));
 
-#ifdef Q_OS_SYMBIAN
-    connect(quitAction, SIGNAL(triggered()), this, SLOT(close()));
-
-    QVBoxLayout *mainLayout = new QVBoxLayout;
-    mainLayout->addWidget(statusLabel);
-    setLayout(mainLayout);
-#else
     connect(quitButton, SIGNAL(clicked()), this, SLOT(close()));
 
     QHBoxLayout *buttonLayout = new QHBoxLayout;
@@ -103,6 +90,5 @@ Dialog::Dialog(QWidget *parent)
     mainLayout->addWidget(statusLabel);
     mainLayout->addLayout(buttonLayout);
     setLayout(mainLayout);
-#endif
     setWindowTitle(tr("Threaded Fortune Server"));
 }
index 1e245e9..0bf75aa 100644 (file)
@@ -49,11 +49,7 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Dialog dialog;
-#ifdef Q_OS_SYMBIAN
-    dialog.showMaximized();
-#else
     dialog.show();
-#endif
     qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
     return app.exec();
 }
index 1b4cd59..8520ed4 100644 (file)
@@ -15,11 +15,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS threadedfortuneserver.pr
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/threadedfortuneserver
 INSTALLS += target sources
 
-symbian: {
-    CONFIG += qt_example
-    TARGET.CAPABILITY = NetworkServices
-}
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
index b2da8b6..36bc795 100644 (file)
@@ -38,9 +38,5 @@ sources.files += icons forms 3rdparty
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/network/torrent
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 5d361bc..d481289 100644 (file)
@@ -16,8 +16,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS 2dpainting.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/2dpainting
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 652812b..ef6f526 100644 (file)
@@ -33,8 +33,5 @@ contains(QT_CONFIG, opengl) {
     message(OpenGL support is not available.)
 }
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index d3fce13..f835e88 100644 (file)
@@ -10,9 +10,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES framebufferobject2.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/framebufferobject2
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example does not work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 6a73201..6eebfdb 100644 (file)
@@ -11,9 +11,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS grabber.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/grabber
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example does not work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 82372c5..7b61ef4 100644 (file)
@@ -16,9 +16,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellogl.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/hellogl
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example does not work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 90c322b..9cb14b2 100644 (file)
@@ -57,9 +57,7 @@ GLWidget::GLWidget(QWidget *parent)
     setAttribute(Qt::WA_NoSystemBackground);
     setAutoBufferSwap(false);
     m_showBubbles = true;
-#ifndef Q_WS_QWS
     setMinimumSize(300, 250);
-#endif
 }
 
 GLWidget::~GLWidget()
index 2eef986..d5bc7ba 100644 (file)
@@ -25,7 +25,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellogl_es2.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/hellogl_es2
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 maemo5 {
     # Debian package name may not contain numbers or special characters
@@ -34,5 +33,4 @@ maemo5 {
     CONFIG += qt_example
 }
 
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 5502ee2..a5d5dbc 100644 (file)
@@ -33,6 +33,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS opengl.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 1584c3c..926024a 100644 (file)
@@ -21,9 +21,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/overpainting
 INSTALLS += target \
     sources
 
-symbian:CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example does not work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 3264be3..431ad7a 100644 (file)
@@ -17,9 +17,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/pbuffers
 INSTALLS += target \
     sources
 
-symbian:CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example does not work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 9b30d79..bc3b7bb 100644 (file)
@@ -19,9 +19,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES pbuffers2.pro *.png *.svg
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/pbuffers2
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example does not work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index d8f9ff1..a903a0b 100644 (file)
@@ -9,9 +9,5 @@ sources.files = $$SOURCES $$HEADERS samplebuffers.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/samplebuffers
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example does not work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index d8941b3..5da023f 100644 (file)
@@ -12,8 +12,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS textures.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/opengl/textures
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 1441811..80f966e 100644 (file)
@@ -18,12 +18,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.html *.jpg
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/affine
 INSTALLS += target sources
 
-symbian {
-    CONFIG += qt_example
-}
-
-maemo5: CONFIG += qt_example
-
 wince*: {
     DEPLOYMENT_PLUGIN += qjpeg
 }
index 0e9c699..0e0328e 100644 (file)
@@ -11,11 +11,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS basicdrawing.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/basicdrawing
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A649
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-simulator: warning(This example might not fully work on Simulator platform)
index aa839f6..6662742 100644 (file)
@@ -48,10 +48,6 @@ int main(int argc, char *argv[])
 
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 6f750c4..949f4c8 100644 (file)
@@ -74,11 +74,7 @@ Window::Window()
 //! [2]
     penWidthSpinBox = new QSpinBox;
     penWidthSpinBox->setRange(0, 20);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    penWidthSpinBox->setSpecialValueText(tr("0"));
-#else
     penWidthSpinBox->setSpecialValueText(tr("0 (cosmetic pen)"));
-#endif
 
     penWidthLabel = new QLabel(tr("Pen &Width:"));
     penWidthLabel->setBuddy(penWidthSpinBox);
@@ -172,9 +168,6 @@ Window::Window()
 //! [9]
     QGridLayout *mainLayout = new QGridLayout;
 //! [9] //! [10]
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    mainLayout->setSizeConstraint(QLayout::SetNoConstraint);
-#endif
     mainLayout->setColumnStretch(0, 1);
     mainLayout->setColumnStretch(3, 1);
     mainLayout->addWidget(renderArea, 0, 0, 1, 4);
index b3f810b..e376d90 100644 (file)
@@ -239,13 +239,8 @@ CompositionRenderer::CompositionRenderer(QWidget *parent)
 {
     m_animation_enabled = true;
     m_animationTimer = startTimer(animationInterval);
-#ifdef Q_WS_QWS
-    m_image = QPixmap(":res/composition/flower.jpg");
-    m_image.setAlphaChannel(QPixmap(":res/composition/flower_alpha.jpg"));
-#else
     m_image = QImage(":res/composition/flower.jpg");
     m_image.setAlphaChannel(QImage(":res/composition/flower_alpha.jpg"));
-#endif
     m_circle_alpha = 127;
     m_circle_hue = 255;
     m_current_object = NoObject;
@@ -324,11 +319,7 @@ void CompositionRenderer::drawBase(QPainter &p)
 
     p.setPen(Qt::NoPen);
     p.setRenderHint(QPainter::SmoothPixmapTransform);
-#ifdef Q_WS_QWS
-    p.drawPixmap(rect(), m_image);
-#else
     p.drawImage(rect(), m_image);
-#endif
 }
 
 void CompositionRenderer::drawSource(QPainter &p)
@@ -456,37 +447,24 @@ void CompositionRenderer::paint(QPainter *painter)
     {
         // using a QImage
         if (m_buffer.size() != size()) {
-#ifdef Q_WS_QWS
-            m_base_buffer = QPixmap(size());
-            m_base_buffer.fill(Qt::transparent);
-#else
             m_buffer = QImage(size(), QImage::Format_ARGB32_Premultiplied);
             m_base_buffer = QImage(size(), QImage::Format_ARGB32_Premultiplied);
 
             m_base_buffer.fill(0);
-#endif
 
             QPainter p(&m_base_buffer);
 
             drawBase(p);
         }
 
-#ifdef Q_WS_QWS
-        m_buffer = m_base_buffer;
-#else
         memcpy(m_buffer.bits(), m_base_buffer.bits(), m_buffer.byteCount());
-#endif
 
         {
             QPainter p(&m_buffer);
             drawSource(p);
         }
 
-#ifdef Q_WS_QWS
-        painter->drawPixmap(0, 0, m_buffer);
-#else
         painter->drawImage(0, 0, m_buffer);
-#endif
     }
 }
 
index 86e8f5c..73d49bf 100644 (file)
@@ -161,15 +161,9 @@ private:
 
     QPainter::CompositionMode m_composition_mode;
 
-#ifdef Q_WS_QWS
-    QPixmap m_image;
-    QPixmap m_buffer;
-    QPixmap m_base_buffer;
-#else
     QImage m_image;
     QImage m_buffer;
     QImage m_base_buffer;
-#endif
 
     int m_circle_alpha;
     int m_circle_hue;
index c8e5ab0..8641109 100644 (file)
@@ -17,7 +17,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.png *.jpg *.pro *.html
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/composition
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 win32-msvc* {
     QMAKE_CXXFLAGS += /Zm500
index a889673..0f87b99 100644 (file)
@@ -10,10 +10,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS concentriccircles.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/concentriccircles
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A64A
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
index 4a43828..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 2bfc5d3..bd70450 100644 (file)
@@ -17,8 +17,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/deform
 sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.html
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/deform
 INSTALLS += target sources
-
-symbian {
-    TARGET.UID3 = 0xA000A63D
-    CONFIG += qt_example
-}
index 63892a3..539fc48 100644 (file)
@@ -9,6 +9,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS fontsampler.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/fontsampler
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets printsupport
-maemo5: CONFIG += qt_example
index dffe803..01c8ada 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     MainWindow window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 9efd307..ad0ce55 100644 (file)
@@ -50,9 +50,6 @@ MainWindow::MainWindow(QWidget *parent)
 {
     setupUi(this);
 
-#if defined(Q_OS_SYMBIAN)
-    addDockWidget(Qt::BottomDockWidgetArea, dockWidget);
-#endif
 
     sampleSizes << 32 << 24 << 16 << 14 << 12 << 8 << 4 << 2 << 1;
     markedCount = 0;
@@ -147,11 +144,7 @@ void MainWindow::showFont(QTreeWidgetItem *item)
     QString oldText = textEdit->toPlainText().trimmed();
     bool modified = textEdit->document()->isModified();
     textEdit->clear();
-#if defined(Q_OS_SYMBIAN)
-    textEdit->document()->setDefaultFont(QFont(family, 10, weight, italic));
-#else
     textEdit->document()->setDefaultFont(QFont(family, 32, weight, italic));
-#endif
 
     QTextCursor cursor = textEdit->textCursor();
     QTextBlockFormat blockFormat;
index 66f19c0..4d3efe1 100644 (file)
@@ -17,4 +17,3 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.html
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/gradients
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
index e0173ff..fee4f2a 100644 (file)
 #include "imagecomposer.h"
 
 //! [0]
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
-static const QSize resultSize(50, 50);
-#else
 static const QSize resultSize(200, 200);
-#endif
 //! [0]
 
 //! [1]
@@ -108,10 +104,7 @@ ImageComposer::ImageComposer()
     mainLayout->addWidget(destinationButton, 0, 2, 3, 1);
     mainLayout->addWidget(equalLabel, 1, 3);
     mainLayout->addWidget(resultLabel, 0, 4, 3, 1);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-#else
     mainLayout->setSizeConstraint(QLayout::SetFixedSize);
-#endif
     setLayout(mainLayout);
 //! [4]
 
index e8841ea..edf434f 100644 (file)
@@ -9,10 +9,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES images *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/imagecomposition
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A64B
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
index f97a3ff..e70fa5f 100644 (file)
@@ -49,11 +49,7 @@ int main(int argc, char *argv[])
 
     QApplication app(argc, argv);
     ImageComposer composer;
-#if defined(Q_OS_SYMBIAN)
-    composer.showMaximized();
-#else
     composer.show();
-#endif
     return app.exec();
 }
 //! [0]
index 4a43828..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 6ead35f..c988ba2 100644 (file)
@@ -3,7 +3,7 @@ HEADERS       = renderarea.h \
 SOURCES       = main.cpp \
                 renderarea.cpp \
                 window.cpp
-unix:!mac:!symbian:!vxworks:!integrity:LIBS += -lm
+unix:!mac:!vxworks:!integrity:LIBS += -lm
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/painterpaths
@@ -11,10 +11,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS painterpaths.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/painterpaths
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A64C
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
index 1139ad0..641d359 100644 (file)
@@ -130,14 +130,12 @@ Window::Window()
 //! [9]
 
 //! [10]
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_SIMULATOR)
     renderAreas.push_back(new RenderArea(rectPath));
     renderAreas.push_back(new RenderArea(roundRectPath));
     renderAreas.push_back(new RenderArea(ellipsePath));
     renderAreas.push_back(new RenderArea(piePath));
     renderAreas.push_back(new RenderArea(polygonPath));
     renderAreas.push_back(new RenderArea(groupPath));
-#endif
     renderAreas.push_back(new RenderArea(textPath));
     renderAreas.push_back(new RenderArea(bezierPath));
     renderAreas.push_back(new RenderArea(starPath));
@@ -211,18 +209,12 @@ Window::Window()
 
 //! [16] //! [17]
     QGridLayout *topLayout = new QGridLayout;
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    topLayout->setSizeConstraint(QLayout::SetNoConstraint);
-#endif
 
     int i=0;
     for(QList<RenderArea*>::iterator it = renderAreas.begin(); it != renderAreas.end(); it++, i++)
         topLayout->addWidget(*it, i / 3, i % 3);
 
     QGridLayout *mainLayout = new QGridLayout;
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    mainLayout->setSizeConstraint(QLayout::SetNoConstraint);
-#endif
     mainLayout->addLayout(topLayout, 0, 0, 1, 4);
     mainLayout->addWidget(fillRuleLabel, 1, 0);
     mainLayout->addWidget(fillRuleComboBox, 1, 1, 1, 3);
@@ -234,10 +226,8 @@ Window::Window()
     mainLayout->addWidget(penWidthSpinBox, 3, 1, 1, 3);
     mainLayout->addWidget(penColorLabel, 4, 0);
     mainLayout->addWidget(penColorComboBox, 4, 1, 1, 3);
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_SIMULATOR)
     mainLayout->addWidget(rotationAngleLabel, 5, 0);
     mainLayout->addWidget(rotationAngleSpinBox, 5, 1, 1, 3);
-#endif
     setLayout(mainLayout);
 //! [17]
 
index 263cc73..927d940 100644 (file)
@@ -18,9 +18,7 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS painting.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
 examples_affine.subdir = affine
 examples_composition.subdir = composition
index d3f6596..60a5cd7 100644 (file)
@@ -18,7 +18,3 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.html
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/pathstroke
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A63E
-    CONFIG += qt_example
-}
index c1abc4b..6a01832 100644 (file)
@@ -108,11 +108,7 @@ void ArthurFrame::enableOpenGL(bool use_opengl)
 
 void ArthurFrame::paintEvent(QPaintEvent *e)
 {
-#ifdef Q_WS_QWS
-    static QPixmap *static_image = 0;
-#else
     static QImage *static_image = 0;
-#endif
     QPainter painter;
     if (preferImage()
 #ifdef QT_OPENGL_SUPPORT
@@ -121,11 +117,7 @@ void ArthurFrame::paintEvent(QPaintEvent *e)
         ) {
         if (!static_image || static_image->size() != size()) {
             delete static_image;
-#ifdef Q_WS_QWS
-            static_image = new QPixmap(size());
-#else
             static_image = new QImage(size(), QImage::Format_RGB32);
-#endif
         }
         painter.begin(static_image);
 
@@ -197,11 +189,7 @@ void ArthurFrame::paintEvent(QPaintEvent *e)
         ) {
         painter.end();
         painter.begin(this);
-#ifdef Q_WS_QWS
-        painter.drawPixmap(e->rect(), *static_image, e->rect());
-#else
         painter.drawImage(e->rect(), *static_image, e->rect());
-#endif
     }
 
 #ifdef QT_OPENGL_SUPPORT
index fb7b04c..2d6b3c7 100644 (file)
@@ -16,6 +16,5 @@ contains(CONFIG, debug_and_release_target) {
 
 hpux-acc*:LIBS += $$SHARED_FOLDER/libdemo_shared.a
 hpuxi-acc*:LIBS += $$SHARED_FOLDER/libdemo_shared.a
-symbian:LIBS += -ldemo_shared.lib
-!hpuxi-acc*:!hpux-acc*:!symbian:LIBS += -ldemo_shared
+!hpuxi-acc*:!hpux-acc*:LIBS += -ldemo_shared
 
index 8fc58ae..212f3a2 100644 (file)
@@ -32,8 +32,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/shared
 INSTALLS += sources
 
 !cross_compile:INSTALLS += target
-
-symbian {
-    TARGET.UID3 = 0xA000A63C
-    CONFIG += qt_demo
-}
index 4a43828..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 2e76a13..a261c53 100644 (file)
@@ -10,13 +10,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS transformations.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/transformations
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A64D
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index cb931c7..c5cf5c9 100644 (file)
@@ -12,10 +12,8 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtconcurrent/imagescaling
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 wince*: DEPLOYMENT_PLUGIN += qgif qjpeg qtiff
 QT += widgets
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example does not work on Simulator platform)
index 963422f..bca8408 100644 (file)
@@ -48,11 +48,7 @@ int main(int argc, char *argv[])
     QApplication app(argc,argv);
 
     Images imageView;
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    imageView.showMaximized();
-#else
     imageView.show();
-#endif
 
     return app.exec();
 }
@@ -67,11 +63,7 @@ int main(int argc, char *argv[])
     QLabel *label = new QLabel(text);
     label->setWordWrap(true);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    label->showMaximized();
-#else
     label->show();
-#endif
     qDebug() << text;
 
     app.exec();
index 76b1447..a3618b4 100644 (file)
@@ -83,11 +83,7 @@ int main(int argc, char *argv[])
     QLabel *label = new QLabel(text);
     label->setWordWrap(true);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    label->showMaximized();
-#else
     label->show();
-#endif
     qDebug() << text;
 
     app.exec();
index b5976d6..978eae4 100644 (file)
@@ -13,8 +13,6 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtconcurrent/map
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example does not work on Simulator platform)
index 8473d05..956d059 100644 (file)
@@ -98,11 +98,7 @@ int main(int argc, char *argv[])
     QLabel *label = new QLabel(text);
     label->setWordWrap(true);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    label->showMaximized();
-#else
     label->show();
-#endif
     qDebug() << text;
 
     app.exec();
index 506a572..fbc239d 100644 (file)
@@ -12,8 +12,6 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtconcurrent/progressdialog
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example does not work on Simulator platform)
index a1594a2..e4a366d 100644 (file)
@@ -14,6 +14,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS qtconcurrent.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtconcurrent
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 86fdf80..f369ee8 100644 (file)
@@ -74,11 +74,7 @@ int main(int argc, char *argv[])
     QLabel *label = new QLabel(text);
     label->setWordWrap(true);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    label->showMaximized();
-#else
     label->show();
-#endif
     qDebug() << text;
 
     app.exec();
index 80495e1..d41b88e 100644 (file)
@@ -12,8 +12,6 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtconcurrent/runfunction
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example does not work on Simulator platform)
index 56be795..25ded55 100644 (file)
@@ -124,11 +124,7 @@ int main(int argc, char** argv)
 {
     QApplication app(argc, argv);
     qDebug() << "finding files...";
-#ifdef Q_WS_MAEMO_5
-    QStringList files = findFiles("/usr/", QStringList() << "*.sh");
-#else
     QStringList files = findFiles("../../", QStringList() << "*.cpp" << "*.h");
-#endif
     qDebug() << files.count() << "files";
 
     qDebug() << "warmup";
@@ -172,11 +168,7 @@ int main(int argc, char *argv[])
     QLabel *label = new QLabel(text);
     label->setWordWrap(true);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
-    label->showMaximized();
-#else
     label->show();
-#endif
     qDebug() << text;
 
     app.exec();
index 2980792..ee4887c 100644 (file)
@@ -12,8 +12,6 @@ sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtconcurrent/wordcount
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example does not work on Simulator platform)
index 025c2b5..ac7c290 100644 (file)
@@ -7,6 +7,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS qtestlib.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index ee3d12a..04bd515 100644 (file)
@@ -7,13 +7,4 @@ sources.files = $$SOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial1
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C60B
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index d19be2e..e3cfd10 100644 (file)
@@ -7,13 +7,4 @@ sources.files = $$SOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial2
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C60C
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index 344b97f..f9ea8be 100644 (file)
@@ -7,13 +7,4 @@ sources.files = $$SOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial3
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C60D
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index 17fa04c..cf0e317 100644 (file)
@@ -7,13 +7,4 @@ sources.files = $$SOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial4
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C60E
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index b96ba31..345f9e9 100644 (file)
@@ -132,11 +132,7 @@ struct Large { // A "large" item type
 };
 
 // Symbian devices typically have limited memory
-#ifdef Q_OS_SYMBIAN
-#  define LARGE_MAX_SIZE 2000
-#else
 #  define LARGE_MAX_SIZE 20000
-#endif
 
 class tst_vector_vs_std : public QObject
 {
index 42afe42..950996c 100644 (file)
@@ -7,13 +7,4 @@ sources.files = $$SOURCES *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial5
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C60F
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index 08d6c41..e20e3e1 100644 (file)
@@ -10,7 +10,4 @@ SOURCES     = dbscreendriverplugin.cpp \
               dbscreen.cpp 
 
 QT += widgets
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index 1d32350..1043917 100644 (file)
@@ -11,8 +11,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qws/framebuffer
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)
index 5637e73..fb91216 100644 (file)
@@ -11,9 +11,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qws/mousecalibration
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example does not work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example does not work on Simulator platform)
index e26ffd5..274b87a 100644 (file)
@@ -12,9 +12,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qws/simpledecoration
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example does not work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example does not work on Simulator platform)
index 7d21b18..7058750 100644 (file)
@@ -18,9 +18,5 @@ SOURCES       = svgalibscreen.cpp \
           svgalibplugin.cpp
 
 QT += widgets
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example does not work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example does not work on Simulator platform)
index 265e0e9..f65e885 100644 (file)
@@ -3,7 +3,6 @@ SOURCES     = main.cpp \
               mainwindow.cpp
 
 # App cannot be with name "calendar" in Symbian due to same named system component.
-symbian: TARGET = calendarapp
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/richtext/calendar
@@ -11,6 +10,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS calendar.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/richtext/calendar
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index fa94aa3..808f724 100644 (file)
@@ -46,13 +46,7 @@ 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)
-    window.show();
-#else
     window.resize(640, 256);
     window.show();
-#endif
     return app.exec();
 }
index ff65b7e..c8cb833 100644 (file)
@@ -82,11 +82,7 @@ MainWindow::MainWindow()
             this, SLOT(setFontSize(int)));
 //! [3]
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
-    fontSizeSpinBox->setValue(4);
-#else
     fontSizeSpinBox->setValue(10);
-#endif
 
 //! [4]
     QHBoxLayout *controlsLayout = new QHBoxLayout;
index 8f54bb2..ba395ec 100644 (file)
@@ -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);
 }
index 7aff81d..eb8155f 100644 (file)
@@ -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();
 }
index 729f66c..999b55c 100644 (file)
@@ -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
index 8b36c4b..053f2be 100644 (file)
@@ -10,6 +10,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS richtext.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/richtext
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index e0e5e4f..eecfb12 100644 (file)
@@ -46,13 +46,7 @@ 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)
-    window.show();
-#else
     window.resize(640, 512);
     window.show();
-#endif
     return app.exec();
 }
index 9abd82f..0f9b447 100644 (file)
@@ -10,7 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS syntaxhighlighter.pro ex
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/richtext/syntaxhighlighter
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 wince*: {
    addFiles.files = main.cpp mainwindow.cpp
@@ -18,5 +17,4 @@ wince*: {
    DEPLOYMENT += addFiles
 }
 QT += widgets
-maemo5: CONFIG += qt_example
 
index e765f58..d76d9de 100644 (file)
@@ -67,7 +67,7 @@
 #include <QPrintPreviewDialog>
 #include <QMimeData>
 
-#ifdef Q_WS_MAC
+#ifdef Q_OS_MAC
 const QString rsrcPath = ":/images/mac";
 #else
 const QString rsrcPath = ":/images/win";
index b364a00..ffbf9a7 100644 (file)
@@ -20,4 +20,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/richtext/textedit
 INSTALLS += target sources
 
 QT += widgets printsupport
-symbian: CONFIG += qt_example
index 8f0019a..ec92f03 100644 (file)
@@ -281,12 +281,8 @@ int main(int argc, char *argv[])
     QApplication a(argc, argv);
     bool touch = (a.arguments().contains(QLatin1String("--touch")));
     MainWindow mw(touch);
-#ifdef Q_WS_S60
-    mw.showMaximized();
-#else
     mw.show();
-#endif
-#ifdef Q_WS_MAC
+#ifdef Q_OS_MAC
     mw.raise();
 #endif
     return a.exec();
index 316e2d9..5a26d17 100644 (file)
@@ -13,7 +13,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/books
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 wince*: {
     CONFIG(debug, debug|release):sqlPlugins.files = $$QT_BUILD_TREE/plugins/sqldrivers/*d4.dll
index 9b89a91..48d3d27 100644 (file)
@@ -10,5 +10,3 @@ sources.files = $$SOURCES *.h $$RESOURCES $$FORMS cachedtable.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/cachedtable
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
index ecbf565..3869f7a 100644 (file)
@@ -51,11 +51,7 @@ int main(int argc, char *argv[])
         return 1;
 
     TableEditor editor("person");
-#if defined(Q_OS_SYMBIAN)
-    editor.showMaximized();
-#else
     editor.show();
-#endif
     return app.exec();
 }
 //! [0]
index 8209dd5..a6f593e 100644 (file)
@@ -14,11 +14,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/drilldown
 sources.files = $$SOURCES *.h $$RESOURCES $$FORMS drilldown.pro *.png *.jpg images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/drilldown
 INSTALLS += target sources
-
-symbian {
-    TARGET.UID3 = 0xA000C612
-    CONFIG += qt_example
-}
-maemo5: CONFIG += qt_example
-
-simulator: warning(This example might not fully work on Simulator platform)
index 462eb0f..c38e343 100644 (file)
@@ -53,11 +53,7 @@ int main(int argc, char *argv[])
         return 1;
 
     View view("offices", "images");
-#ifndef Q_OS_SYMBIAN
     view.show();
-#else
-    view.showMaximized();
-#endif
 #ifdef QT_KEYPAD_NAVIGATION
     QApplication::setNavigationMode(Qt::NavigationModeCursorAuto);
 #endif
index 883b28b..d0f240b 100644 (file)
@@ -62,12 +62,8 @@ View::View(const QString &offices, const QString &images, QWidget *parent)
     QGraphicsPixmapItem *logo = scene->addPixmap(QPixmap(":/logo.png"));
     logo->setPos(30, 515);
 
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5)
     setMinimumSize(470, 620);
     setMaximumSize(470, 620);
-#else
-    setDragMode(QGraphicsView::ScrollHandDrag);
-#endif
 
    setWindowTitle(tr("Offices World Wide"));
 }
@@ -130,11 +126,7 @@ void View::showInformation(ImageItem *image)
         window->raise();
         window->activateWindow();
     } else if (window && !window->isVisible()) {
-#ifndef Q_OS_SYMBIAN
         window->show();
-#else
-        window->showMaximized();
-#endif
     } else {
         InformationWindow *window;
         window = new InformationWindow(id, officeTable, this);
@@ -142,12 +134,8 @@ 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->showMaximized();
-#endif
         informationWindows.append(window);
     }
 }
index 5829108..0e2aca5 100644 (file)
@@ -54,10 +54,6 @@ int main(int argc, char *argv[])
 
     QFile *albumDetails = new QFile("albumdetails.xml");
     MainWindow window("artists", "albums", albumDetails);
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 77b869e..d00946c 100644 (file)
@@ -77,10 +77,8 @@ MainWindow::MainWindow(const QString &artistTable, const QString &albumTable,
     layout->addWidget(artists, 0, 0);
     layout->addWidget(albums, 1, 0);
     layout->addWidget(details, 0, 1, 2, 1);
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5)
     layout->setColumnStretch(1, 1);
     layout->setColumnMinimumWidth(0, 500);
-#endif
 
     QWidget *widget = new QWidget;
     widget->setLayout(layout);
@@ -88,9 +86,7 @@ MainWindow::MainWindow(const QString &artistTable, const QString &albumTable,
     createMenuBar();
 
     showImageLabel();
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5)
     resize(850, 400);
-#endif
     setWindowTitle(tr("Music Archive"));
 }
 
index fcbc642..2160ad3 100644 (file)
@@ -14,13 +14,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/masterdetail
 sources.files = $$SOURCES *.h $$RESOURCES $$FORMS masterdetail.pro *.xml images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/masterdetail
 INSTALLS += target sources
-
-symbian {
-    TARGET.UID3 = 0xA000D7CF
-    CONFIG += qt_example
-}
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index d001fda..30b4954 100644 (file)
@@ -56,17 +56,12 @@ QTableView* createView(QSqlQueryModel *model, const QString &title = "")
 {
     QTableView *view = new QTableView;
     view->setModel(model);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    Q_UNUSED(title);
-    view->resizeColumnsToContents();
-#else
     static int offset = 0;
 
     view->setWindowTitle(title);
     view->move(100 + offset, 100 + offset);
     offset += 20;
     view->show();
-#endif
 
     return view;
 }
@@ -85,17 +80,9 @@ int main(int argc, char *argv[])
     initializeModel(&editableModel);
     initializeModel(&customModel);
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    QTabWidget *tabWidget = new QTabWidget;
-    tabWidget->addTab(createView(&plainModel), QObject::tr("Plain"));
-    tabWidget->addTab(createView(&editableModel), QObject::tr("Editable"));
-    tabWidget->addTab(createView(&customModel), QObject::tr("Custom"));
-    tabWidget->showMaximized();
-#else
     createView(&plainModel, QObject::tr("Plain Query Model"));
     createView(&editableModel, QObject::tr("Editable Query Model"));
     createView(&customModel, QObject::tr("Custom Query Model"));
-#endif
 
     return app.exec();
 }
index 8e3db2a..0a335ae 100644 (file)
@@ -12,5 +12,3 @@ sources.files = $$SOURCES *.h $$RESOURCES $$FORMS querymodel.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/querymodel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
index 3d8d106..41dbdd2 100644 (file)
@@ -108,11 +108,7 @@ int main(int argc, char *argv[])
     initializeModel(&model);
 
     QTableView *view = createView(QObject::tr("Relational Table Model"), &model);
-#if defined(Q_OS_SYMBIAN)
-    view->showMaximized();
-#else
     view->show();
-#endif
 
     return app.exec();
 }
index a8bc4fc..2c741d0 100644 (file)
@@ -8,5 +8,3 @@ sources.files = $$SOURCES *.h $$RESOURCES $$FORMS relationaltablemodel.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/relationaltablemodel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
index 68b54e4..6825286 100644 (file)
@@ -1,14 +1,14 @@
 TEMPLATE      = subdirs
 
 SUBDIRS             =   books \
-                        drilldown
-!symbian: SUBDIRS   +=  cachedtable \
+                        drilldown \
+                         cachedtable \
                         relationaltablemodel \
                         sqlwidgetmapper
 
 !wince*:  SUBDIRS   +=  masterdetail
 
-!wince*:!symbian: SUBDIRS += \
+!wince*:  SUBDIRS += \
                         querymodel \
                         tablemodel
 
@@ -23,6 +23,4 @@ sources.files = connection.h sql.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql
 INSTALLS += sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 73a17b2..d2f1cac 100644 (file)
@@ -18,7 +18,6 @@ sources.files = $$SOURCES $$HEADERS $$FORMS *.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/sqlbrowser
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 wince*: {
     DEPLOYMENT_PLUGIN += qsqlite
index 9e45ede..41e756d 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char **argv)
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 6d2f028..75256d7 100644 (file)
@@ -11,6 +11,4 @@ INSTALLS += target sources
 
 wince*: DEPLOYMENT_PLUGIN += qsqlite
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
index e1a11d1..dc246d7 100644 (file)
@@ -58,11 +58,7 @@ QTableView *createView(QSqlTableModel *model, const QString &title = "")
 {
     QTableView *view = new QTableView;
     view->setModel(model);
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    Q_UNUSED(title)
-#else
     view->setWindowTitle(title);
-#endif
     return view;
 }
 
@@ -76,20 +72,12 @@ int main(int argc, char *argv[])
 
     initializeModel(&model);
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    QTabWidget *tabWidget = new QTabWidget;
-    tabWidget->addTab(createView(&model), "View 1");
-    tabWidget->addTab(createView(&model), "View 2");
-
-    tabWidget->showMaximized();
-#else
     QTableView *view1 = createView(&model, QObject::tr("Table Model (View 1)"));
     QTableView *view2 = createView(&model, QObject::tr("Table Model (View 2)"));
 
     view1->show();
     view2->move(view1->x() + view1->width() + 20, view1->y());
     view2->show();
-#endif
 
     return app.exec();
 }
index b59507d..0853f4c 100644 (file)
@@ -8,5 +8,3 @@ sources.files = $$SOURCES *.h $$RESOURCES $$FORMS tablemodel.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/sql/tablemodel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
index 374ef3a..8a9d84e 100644 (file)
@@ -7,7 +7,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/statemachine/eventtransitions
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example might not fully work on Simulator platform)
index 291c1d4..e202f5e 100644 (file)
@@ -108,11 +108,7 @@ int main(int argc, char **argv)
     QApplication app(argc, argv);
     Window window;
     window.resize(300, 300);
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
 
     return app.exec();
 }
index 6fbfd8e..fe3dd23 100644 (file)
@@ -10,7 +10,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS factorial.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/statemachine/factorial
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example does not work on Symbian platform)
index e15f593..1cfddaf 100644 (file)
@@ -10,7 +10,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS pingpong.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/statemachine/pingpong
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example does not work on Symbian platform)
index 2939e4a..b52b55f 100644 (file)
@@ -47,11 +47,7 @@ int main(int argv, char **args)
     QApplication app(argv, args);
 
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
 
     return app.exec();
 }
index 001f3e4..4ed132d 100644 (file)
@@ -10,6 +10,4 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/statemachine/rogue
 INSTALLS += target sources
 
 QT += widgets
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
index fa62362..d5c0660 100644 (file)
@@ -63,11 +63,7 @@ Window::Window()
             }
         }
     }
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
-    font.setPointSize(5);
-#else
     font.setPointSize(12);
-#endif
     setFont(font);
 
 //![1]
index bdadad4..025ec79 100644 (file)
@@ -49,13 +49,8 @@ class QStateMachine;
 class QTransition;
 QT_END_NAMESPACE
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
-#define WIDTH 43
-#define HEIGHT 14
-#else
 #define WIDTH 35
 #define HEIGHT 20
-#endif
 
 //![0]
 class Window : public QWidget
index 353dfb7..9b10360 100644 (file)
@@ -88,9 +88,6 @@ public:
         : QWidget(parent)
     {
         QVBoxLayout *vbox = new QVBoxLayout(this);
-#ifdef Q_WS_MAEMO_5
-        vbox->setContentsMargins(320, 0, 320, 0);
-#endif
         m_red = new LightWidget(Qt::red);
         vbox->addWidget(m_red);
         m_yellow = new LightWidget(Qt::yellow);
@@ -177,14 +174,8 @@ int main(int argc, char **argv)
     QApplication app(argc, argv);
 
     TrafficLight widget;
-#if defined(Q_OS_SYMBIAN)
-    widget.showMaximized();
-#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    widget.show();
-#else
     widget.resize(110, 300);
     widget.show();
-#endif
 
     return app.exec();
 }
index 9ea94f7..5bc0cda 100644 (file)
@@ -7,6 +7,4 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/statemachine/trafficlight
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
index 3956c2e..a6c7000 100644 (file)
@@ -74,14 +74,8 @@ int main(int argc, char **argv)
 //! [4]
 
 //! [5]
-#if defined(Q_OS_SYMBIAN)
-    button.showMaximized();
-#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    button.show();
-#else
     button.resize(100, 50);
     button.show();
-#endif
     return app.exec();
 }
 //! [5]
index 3b37be7..ffbd982 100644 (file)
@@ -7,6 +7,4 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/statemachine/twowaybutton
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
index 5211c20..610534d 100644 (file)
@@ -47,11 +47,7 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     MandelbrotWidget widget;
-#if defined(Q_WS_S60)
-    widget.showMaximized();
-#else
     widget.show();
-#endif
     return app.exec();
 }
 //! [0]
index 0e053af..dc2ab69 100644 (file)
@@ -4,7 +4,7 @@ SOURCES       = main.cpp \
                 mandelbrotwidget.cpp \
                 renderthread.cpp
 
-unix:!mac:!symbian:!vxworks:!integrity:LIBS += -lm
+unix:!mac:!vxworks:!integrity:LIBS += -lm
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/threads/mandelbrot
@@ -12,6 +12,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS mandelbrot.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/threads/mandelbrot
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 7cee70f..0db19a7 100644 (file)
@@ -74,20 +74,6 @@ MandelbrotWidget::MandelbrotWidget(QWidget *parent)
 #endif
     resize(550, 400);
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    ZoomButton *zoomIn = new ZoomButton(tr("Zoom In"), ZoomInFactor, this);
-    ZoomButton *zoomOut = new ZoomButton(tr("Zoom Out"), ZoomOutFactor, this);
-
-    QGridLayout *layout = new QGridLayout(this);
-    layout->addWidget(zoomIn, 0, 1);
-    layout->addWidget(zoomOut, 1, 1);
-    layout->setColumnStretch(0, 10);
-    layout->setRowStretch(2, 10);
-    setLayout(layout);
-
-    connect(zoomIn, SIGNAL(zoom(double)), this, SLOT(zoom(double)));
-    connect(zoomOut, SIGNAL(zoom(double)), this, SLOT(zoom(double)));
-#endif
 }
 //! [1]
 
@@ -129,7 +115,6 @@ void MandelbrotWidget::paintEvent(QPaintEvent * /* event */)
     }
 //! [8] //! [9]
 
-#if !defined(Q_WS_S60) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_SIMULATOR)
     QString text = tr("Use mouse wheel or the '+' and '-' keys to zoom. "
                       "Press and hold left mouse button to scroll.");
     QFontMetrics metrics = painter.fontMetrics();
@@ -142,7 +127,6 @@ void MandelbrotWidget::paintEvent(QPaintEvent * /* event */)
     painter.setPen(Qt::white);
     painter.drawText((width() - textWidth) / 2,
                      metrics.leading() + metrics.ascent(), text);
-#endif
 }
 //! [9]
 
index 53bbeb6..ead394c 100644 (file)
 #include <QWidget>
 #include "renderthread.h"
 
-#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-#include <QPushButton>
-
-class ZoomButton : public QPushButton
-{
-    Q_OBJECT
-public:
-    ZoomButton(const QString &text, double zoomFactor, QWidget *parent = NULL)
-        : QPushButton(text, parent), m_ZoomFactor(zoomFactor)
-    {
-        connect(this, SIGNAL(clicked()), this, SLOT(handleClick()));
-    }
-
-signals:
-    void zoom(double zoomFactor);
-
-private slots:
-    void handleClick()
-    {
-        emit zoom(m_ZoomFactor);
-    }
-
-private:
-    const double m_ZoomFactor;
-};
-#endif
 
 //! [0]
 class MandelbrotWidget : public QWidget
index 356352a..d70a88a 100644 (file)
@@ -119,11 +119,7 @@ int main(int argc, char *argv[])
     qsrand(QTime::currentTime().elapsed());
 
     Window window;
-#if defined(Q_WS_S60)
-    window.showMaximized();
-#else
     window.show();
-#endif
 
     window.loadImage(createImage(256, 256));
 //! [main finish]
index 415f4f1..a2da59e 100644 (file)
@@ -13,6 +13,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS mandelbrot.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/threads/mandelbrot
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
index 3632895..9b818f3 100644 (file)
 #include <stdlib.h>
 
 //! [0]
-#ifdef Q_WS_S60
-const int DataSize = 300;
-#else
 const int DataSize = 100000;
-#endif
 
 const int BufferSize = 8192;
 char buffer[BufferSize];
@@ -84,14 +80,8 @@ public:
     {
         for (int i = 0; i < DataSize; ++i) {
             usedBytes.acquire();
-    #ifdef Q_WS_S60
-            QString text(buffer[i % BufferSize]);
-            freeBytes.release();
-            emit stringConsumed(text);
-    #else
             fprintf(stderr, "%c", buffer[i % BufferSize]);
             freeBytes.release();
-    #endif
         }
         fprintf(stderr, "\n");
     }
@@ -108,24 +98,6 @@ protected:
 int main(int argc, char *argv[])
 //! [5] //! [6]
 {
-#ifdef Q_WS_S60
-    // Self made console for Symbian
-    QApplication app(argc, argv);
-    QPlainTextEdit console;
-    console.setReadOnly(true);
-    console.setTextInteractionFlags(Qt::NoTextInteraction);
-    console.showMaximized();
-
-    Producer producer;
-    Consumer consumer;
-
-    QObject::connect(&consumer, SIGNAL(stringConsumed(const QString&)), &console, SLOT(insertPlainText(QString)), Qt::BlockingQueuedConnection);
-
-    producer.start();
-    consumer.start();
-
-    app.exec();
-#else
     QCoreApplication app(argc, argv);
     Producer producer;
     Consumer consumer;
@@ -134,7 +106,6 @@ int main(int argc, char *argv[])
     producer.wait();
     consumer.wait();
     return 0;
-#endif
 }
 //! [6]
 
index 96ab3a5..98159bb 100644 (file)
@@ -10,7 +10,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS semaphores.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/threads/semaphores
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example might not fully work on Simulator platform)
index 9bdf900..2a8cfb0 100644 (file)
@@ -10,6 +10,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS threads.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/threads
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 0063db5..36c3583 100644 (file)
 #include <stdlib.h>
 
 //! [0]
-#ifdef Q_WS_S60
-const int DataSize = 300;
-#else
 const int DataSize = 100000;
-#endif
 
 const int BufferSize = 8192;
 char buffer[BufferSize];
@@ -107,11 +103,7 @@ public:
                 bufferNotEmpty.wait(&mutex);
             mutex.unlock();
 
-    #ifdef Q_WS_S60
-            emit stringConsumed(QString(buffer[i % BufferSize]));
-    #else
             fprintf(stderr, "%c", buffer[i % BufferSize]);
-    #endif
 
             mutex.lock();
             --numUsedBytes;
@@ -126,48 +118,11 @@ signals:
 };
 //! [4]
 
-#ifdef Q_WS_S60
-class PlainTextEdit : public QPlainTextEdit
-{
-    Q_OBJECT
-public:
-    PlainTextEdit(QWidget *parent = NULL) : QPlainTextEdit(parent), producer(NULL), consumer(NULL)
-    {
-        setTextInteractionFlags(Qt::NoTextInteraction);
-
-        producer = new Producer(this);
-        consumer = new Consumer(this);
-
-        QObject::connect(consumer, SIGNAL(stringConsumed(const QString &)), SLOT(insertPlainText(const QString &)), Qt::BlockingQueuedConnection);
-
-        QTimer::singleShot(0, this, SLOT(startThreads()));
-    }
-
-protected:
-    Producer *producer;
-    Consumer *consumer;
-
-protected slots:
-    void startThreads()
-    {
-        producer->start();
-        consumer->start();
-    }
-};
-#endif
 
 //! [5]
 int main(int argc, char *argv[])
 //! [5] //! [6]
 {
-#ifdef Q_WS_S60
-    QApplication app(argc, argv);
-
-    PlainTextEdit console;
-    console.showMaximized();
-
-    return app.exec();
-#else
     QCoreApplication app(argc, argv);
     Producer producer;
     Consumer consumer;
@@ -176,7 +131,6 @@ int main(int argc, char *argv[])
     producer.wait();
     consumer.wait();
     return 0;
-#endif
 }
 //! [6]
 
index e326afa..6a3d63b 100644 (file)
@@ -18,7 +18,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS waitconditions.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/threads/waitconditions
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
 simulator: warning(This example might not fully work on Simulator platform)
index b906190..7f1ff0f 100644 (file)
@@ -10,10 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS encodedfiles codecs.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/codecs
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 2077ebd..67008b5 100644 (file)
@@ -11,10 +11,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS completer.pro resources
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/completer
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index c26f32e..ca6d4f4 100644 (file)
@@ -9,9 +9,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/contiguouscache
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index fe41718..fd4a101 100644 (file)
@@ -11,10 +11,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS customcompleter.pro reso
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/customcompleter
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 6542cf5..5282de0 100644 (file)
@@ -9,9 +9,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS customcompleter.pro reso
 sources.path = $$[QT_INSTALL_EXAMPLES]/tools/customcompleter
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 4d11497..b86c101 100644 (file)
@@ -11,9 +11,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS customcompleter.pro reso
 sources.path = $$[QT_INSTALL_EXAMPLES]/tools/customcompleter
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 66a268f..06ef2e1 100644 (file)
@@ -10,6 +10,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS echoplugin.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/echoplugin
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 65aa594..0b7c307 100644 (file)
@@ -18,10 +18,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS echowindow.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/echoplugin/echowindow
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 1d98c67..2be6de8 100644 (file)
@@ -14,15 +14,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS plugin.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/echoplugin/plugin
 INSTALLS += target sources
 
-symbian {
-    CONFIG += qt_example
-    TARGET.EPOCALLOWDLLDATA = 1
-}
-
-symbian:TARGET.EPOCALLOWDLLDATA = 1
 QT += widgets
-symbian:TARGET.EPOCALLOWDLLDATA = 1
-maemo5: CONFIG += qt_example
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index e315c98..794e010 100644 (file)
@@ -25,10 +25,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES translations i18n.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/i18n
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 370ac5d..62e35e9 100644 (file)
@@ -14,10 +14,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS inputpanel.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/inputpanel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index d2ab1ba..935b6b3 100644 (file)
@@ -7,11 +7,8 @@ SOURCES        = main.cpp \
                  mainwindow.cpp \
                  paintarea.cpp \
                  plugindialog.cpp
-symbian {
-    LIBS           = -lpnp_basictools.lib
-} else {
-    LIBS           = -L$${QT_BUILD_TREE}/examples/tools/plugandpaint/plugins -lpnp_basictools
-}
+
+LIBS           = -L$${QT_BUILD_TREE}/examples/tools/plugandpaint/plugins -lpnp_basictools
 
 if(!debug_and_release|build_pass):CONFIG(debug, debug|release) {
    mac:LIBS = $$member(LIBS, 0) $$member(LIBS, 1)_debug
@@ -25,10 +22,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS plugandpaint.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/plugandpaint
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index 2b2f45a..6175de3 100644 (file)
@@ -14,6 +14,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS basictools.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/plugandpaintplugins/basictools
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 434de1a..70e7c42 100644 (file)
@@ -14,8 +14,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS extrafilters.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/plugandpaintplugins/extrafilters
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
-symbian:TARGET.EPOCALLOWDLLDATA = 1
 QT += widgets
-maemo5: CONFIG += qt_example
index deda635..5e783df 100644 (file)
@@ -8,6 +8,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS plugandpaintplugins.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/plugandpaintplugins
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 62ae570..48cd6d3 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS regexp.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/regexp
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 6b875f3..fc389cd 100644 (file)
@@ -170,10 +170,10 @@ void MainWindow::createActions()
     aboutQtAct = new QAction(tr("About &Qt"), this);
     connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
 
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
     openPropertyListAct->setEnabled(false);
 #endif
-#ifndef Q_WS_WIN
+#ifndef Q_OS_WIN
     openRegistryPathAct->setEnabled(false);
 #endif
 }
index 788b4de..79bcdf5 100644 (file)
@@ -14,10 +14,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS settingseditor.pro inifi
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/settingseditor
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 55ea4e4..e5cdbe0 100644 (file)
@@ -20,8 +20,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS plugin.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/styleplugin/plugin
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
-symbian:TARGET.EPOCALLOWDLLDATA = 1
 QT += widgets
-maemo5: CONFIG += qt_example
index 6d8c09f..51a5e4e 100644 (file)
@@ -8,6 +8,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS styleplugin.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/styleplugin
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index cdbe9f6..319e230 100644 (file)
@@ -16,6 +16,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS stylewindow.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/styleplugin/stylewindow
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index cfab2f9..da86fb5 100644 (file)
@@ -24,6 +24,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS tools.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index c64b44b..82d8404 100644 (file)
@@ -11,10 +11,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS treemodelcompleter.pro r
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/treemodelcompleter
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index ace6e49..bf7dc38 100644 (file)
@@ -16,4 +16,3 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/undo
 INSTALLS += target sources
 
 QT += widgets 
-symbian: CONFIG += qt_example
index a356ce9..a51a437 100644 (file)
@@ -15,10 +15,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS undoframework.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tools/undoframework
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 0836c74..1279098 100644 (file)
@@ -8,9 +8,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/touch/dials
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 2d11eb7..dc9e846 100644 (file)
@@ -11,9 +11,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/touch/fingerpaint
 INSTALLS += target sources
 QT += widgets printsupport
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index caa3af0..a87bec9 100644 (file)
@@ -8,9 +8,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/touch/knobs
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index f4145db..5e27bef 100644 (file)
@@ -16,9 +16,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/touch/pinchzoom
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 9d99ec6..f04c8ff 100644 (file)
@@ -9,9 +9,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part1
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index faa54f8..46f8116 100644 (file)
@@ -9,9 +9,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part2
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 1f01b8a..d76baaa 100644 (file)
@@ -9,9 +9,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part3
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 312f183..1684d5e 100644 (file)
@@ -9,9 +9,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part4
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 34f9b56..1978068 100644 (file)
@@ -11,9 +11,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part5
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 81ec20f..b5ec956 100644 (file)
@@ -11,9 +11,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part6
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 921c313..0b8ba50 100644 (file)
@@ -11,9 +11,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part7
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 09972a9..5143869 100644 (file)
@@ -7,6 +7,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS addressbook.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index ba236a1..67f9f3d 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS part1.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part1
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index fc8ba7b..26e2e27 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS part2.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part2
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 38c1d6e..5a5d78e 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS part3.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part3
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 9ca4efb..5b3462c 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS part4.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part4
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 7d62795..84757b2 100644 (file)
@@ -10,10 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS part5.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part5
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index c9fcb87..c6be890 100644 (file)
@@ -10,10 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS part6.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part6
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index a918344..9cee4c9 100644 (file)
@@ -10,10 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS part7.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/addressbook/part7
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
old mode 100755 (executable)
new mode 100644 (file)
index e794f19..d8b4960
@@ -14,10 +14,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS 1_readonly.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/modelview/1_readonly
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
old mode 100755 (executable)
new mode 100644 (file)
index 9065100..2b56796
@@ -13,10 +13,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS 2_formatting.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/modelview/2_formatting
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
old mode 100755 (executable)
new mode 100644 (file)
index 58070a5..2649168
@@ -13,10 +13,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS 3_changingmodel.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/modelview/3_changingmodel
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
old mode 100755 (executable)
new mode 100644 (file)
index 819daab..308cb28
@@ -13,10 +13,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS 4_headers.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/modelview/4_headers
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
old mode 100755 (executable)
new mode 100644 (file)
index bab5d49..cd55a0b
@@ -15,10 +15,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS 5_edit.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/modelview/5_edit
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
old mode 100755 (executable)
new mode 100644 (file)
index 3dfc324..21ea5d9
@@ -10,10 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS 6_treeview.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/modelview/6_treeview
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
old mode 100755 (executable)
new mode 100644 (file)
index 1b666d2..c1e4b15
@@ -10,10 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS 7_selections.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/modelview/7_selections
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
old mode 100755 (executable)
new mode 100644 (file)
index 10ac8ae..4a7e4a3
@@ -13,6 +13,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS modelview.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/modelview
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
old mode 100755 (executable)
new mode 100644 (file)
index f594133..b07c84a
@@ -10,6 +10,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS clock.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/threads/clock
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 QT += widgets
old mode 100755 (executable)
new mode 100644 (file)
index 4ee3585..fb3cd0b
@@ -11,6 +11,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS helloconcurrent.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/threads/helloconcurrent
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 
old mode 100755 (executable)
new mode 100644 (file)
index efe4e93..877bb10
@@ -13,5 +13,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellothread.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/threads/hellothread
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
old mode 100755 (executable)
new mode 100644 (file)
index 320ba53..8539f38
@@ -11,7 +11,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellothreadpool.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/threads/hellothreadpool
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 
 
old mode 100755 (executable)
new mode 100644 (file)
index f40ab0c..c7fd608
@@ -15,5 +15,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS movedobject.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/threads/movedobject
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
index 4efc143..eda5ba8 100644 (file)
@@ -7,9 +7,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/widgets/childwidget
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index a560155..60b9498 100644 (file)
@@ -7,9 +7,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/widgets/nestedlayouts
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index a86d05b..cbee1b9 100644 (file)
@@ -7,9 +7,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/widgets/toplevel
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 0861320..39a32f5 100644 (file)
@@ -7,9 +7,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/widgets/windowlayout
 INSTALLS += target sources
 QT += widgets
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index c8e1dc9..a264115 100644 (file)
@@ -8,10 +8,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS analogclock.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/analogclock
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000A64F
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
index 040fbb0..0f31f07 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     AnalogClock clock;
-#if defined(Q_OS_SYMBIAN)
-    clock.showMaximized();
-#else
     clock.show();
-#endif
     return app.exec();
 }
index dd4ace3..6b14644 100644 (file)
@@ -9,22 +9,3 @@ SOURCES += main.cpp
 OTHER_FILES += applicationicon.svg \
                applicationicon.png \
                applicationicon.desktop
-
-symbian {
-    CONFIG += qt_example
-    # override icon
-    ICON = applicationicon.svg
-    TARGET.UID3 = 0xe9f919ee
-    TARGET.EPOCSTACKSIZE = 0x14000
-    TARGET.EPOCHEAPSIZE = 0x020000 0x800000
-}
-
-maemo5 {
-    CONFIG += qt_example
-
-    # override icon from maemo5pkgrules.pri
-    icon.files = $${TARGET}.png
-}
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index 24bc747..0573383 100644 (file)
@@ -45,10 +45,6 @@ int main(int argc, char *argv[])
 {
     QApplication a(argc, argv);
     QLabel label(QObject::tr("Hello, world!"));
-#if defined(Q_WS_S60)
-    label.showMaximized();
-#else
     label.show();
-#endif
     return a.exec();
 }
index acdb319..1e5db2f 100644 (file)
@@ -98,11 +98,7 @@ Calculator::Calculator(QWidget *parent)
 //! [5]
     QGridLayout *mainLayout = new QGridLayout;
 //! [5] //! [6]
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    mainLayout->setSizeConstraint(QLayout::SetNoConstraint);
-#else
     mainLayout->setSizeConstraint(QLayout::SetFixedSize);
-#endif
     mainLayout->addWidget(display, 0, 0, 1, 6);
     mainLayout->addWidget(backspaceButton, 1, 0, 1, 2);
     mainLayout->addWidget(clearButton, 1, 2, 1, 2);
index f1e110d..d237871 100644 (file)
@@ -10,10 +10,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS calculator.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/calculator
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C602
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
index 3974f80..0038aa1 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Calculator calc;
-#if defined(Q_OS_SYMBIAN)
-    calc.showMaximized();
-#else
     calc.show();
-#endif
     return app.exec();
 }
index 6e664cf..3c75fb6 100644 (file)
@@ -8,13 +8,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS calendarwidget.pro resou
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/calendarwidget
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C603
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index 4baaac1..0a9d6e7 100644 (file)
@@ -10,10 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS charactermap.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/charactermap
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index caee3f7..ec38770 100644 (file)
@@ -8,8 +8,4 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/codeeditor
 INSTALLS += target sources
 
 QT += widgets
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
index 8a89324..1bce70e 100644 (file)
@@ -48,11 +48,7 @@ int main(int argv, char **args)
 
     CodeEditor editor;
     editor.setWindowTitle(QObject::tr("Code Editor Example"));
-#if defined(Q_OS_SYMBIAN)
-    editor.showMaximized();
-#else
     editor.show();
-#endif
 
     return app.exec();
 }
index 9df216e..c0ad11e 100644 (file)
@@ -8,6 +8,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS digitalclock.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/digitalclock
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index d022918..c43162b 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     DigitalClock clock;
-#if defined(Q_OS_SYMBIAN)
-    clock.showMaximized();
-#else
     clock.show();
-#endif
     return app.exec();
 }
index 30c308c..1e391d9 100644 (file)
@@ -16,16 +16,3 @@ HEADERS += \
 
 CONFIG += mobility
 MOBILITY =
-
-symbian {
-    TARGET.UID3 = 0xE2728354 # randomly generated
-    TARGET.EPOCSTACKSIZE = 0x14000
-    TARGET.EPOCHEAPSIZE = 0x020000 0x800000
-    CONFIG += qt_example
-}
-
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index a915de1..72c5170 100644 (file)
@@ -118,9 +118,6 @@ TestWidget::TestWidget(QWidget *parent):
     //! [4]
 
     //! [5]
-#ifdef Q_WS_MAEMO_5
-    setAttribute(Qt::WA_Maemo5AutoOrientation, true);
-#endif
 }
 //! [5]
 
index 361c037..07c0ed8 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS groupbox.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/groupbox
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 4a43828..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 17c09f3..8b08311 100644 (file)
@@ -14,7 +14,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS icons.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/icons
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 wince*: {
     imageFiles.files = images/*
@@ -26,8 +25,5 @@ wince*: {
     DEPLOYMENT += imageFiles
 }
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index c1ba2bd..923c1f8 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     MainWindow mainWin;
-#if defined(Q_OS_SYMBIAN)
-    mainWin.showMaximized();
-#else
     mainWin.show();
-#endif
     return app.exec();
 }
index 939d60a..e3fea07 100644 (file)
@@ -8,17 +8,12 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS imageviewer.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/imageviewer
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 #Symbian has built-in component named imageviewer so we use different target
-symbian: TARGET = imageviewerexample
 
 wince*: {
    DEPLOYMENT_PLUGIN += qjpeg qmng qgif
 }
 QT += widgets printsupport
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 8d1a068..55a362a 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     ImageViewer imageViewer;
-#if defined(Q_OS_SYMBIAN)
-    imageViewer.showMaximized();
-#else
     imageViewer.show();
-#endif
     return app.exec();
 }
index 484ffde..01d4b2f 100644 (file)
@@ -8,13 +8,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS lineedits.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/lineedits
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C604
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
-simulator: warning(This example might not fully work on Simulator platform)
index 4a43828..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
diff --git a/examples/widgets/maemovibration/buttonwidget.cpp b/examples/widgets/maemovibration/buttonwidget.cpp
deleted file mode 100644 (file)
index d56d7a5..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "buttonwidget.h"
-#include <QSignalMapper>
-#include <QGridLayout>
-#include <QPushButton>
-
-//! [0]
-ButtonWidget::ButtonWidget(QStringList texts, QWidget *parent)
-    : QWidget(parent)
-{
-    signalMapper = new QSignalMapper(this);
-
-    QGridLayout *gridLayout = new QGridLayout;
-    for (int i = 0; i < texts.size(); ++i) {
-        QPushButton *button = new QPushButton(texts[i]);
-        connect(button, SIGNAL(clicked()), signalMapper, SLOT(map()));
-        signalMapper->setMapping(button, texts[i]);
-        gridLayout->addWidget(button, i / 2, i % 2);
-    }
-
-    connect(signalMapper, SIGNAL(mapped(const QString &)),
-            this, SIGNAL(clicked(const QString &)));
-
-    setLayout(gridLayout);
-}
-//! [0]
-
diff --git a/examples/widgets/maemovibration/buttonwidget.h b/examples/widgets/maemovibration/buttonwidget.h
deleted file mode 100644 (file)
index 3068825..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef BUTTONWIDGET_H
-#define BUTTONWIDGET_H
-
-#include <QWidget>
-#include <QSignalMapper>
-
-//! [0]
-class ButtonWidget : public QWidget
-{
-    Q_OBJECT
-
-public:
-    ButtonWidget(QStringList texts, QWidget *parent = 0);
-
-signals:
-    void clicked(const QString &text);
-
-private:
-    QSignalMapper *signalMapper;
-};
-//! [0]
-
-#endif // BUTTONWIDGET_H
-
diff --git a/examples/widgets/maemovibration/data/48x48/maemovibration.png b/examples/widgets/maemovibration/data/48x48/maemovibration.png
deleted file mode 100644 (file)
index f32e9ce..0000000
Binary files a/examples/widgets/maemovibration/data/48x48/maemovibration.png and /dev/null differ
diff --git a/examples/widgets/maemovibration/data/64x64/maemovibration.png b/examples/widgets/maemovibration/data/64x64/maemovibration.png
deleted file mode 100644 (file)
index f09cf7c..0000000
Binary files a/examples/widgets/maemovibration/data/64x64/maemovibration.png and /dev/null differ
diff --git a/examples/widgets/maemovibration/data/maemovibration.desktop b/examples/widgets/maemovibration/data/maemovibration.desktop
deleted file mode 100644 (file)
index a88ed4e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Version=1.0
-Type=Application
-Name=Maemo Vibration
-Exec=/usr/bin/maemovibration
-Icon=maemovibration
-X-HildonDesk-ShowInToolbar=true
-X-Window-Icon=maemovibration
-X-Window-Icon-Dimmed=maemovibration
-X-Osso-Type=application/x-executable
-X-Osso-Service=com.nokia.maemovibration
diff --git a/examples/widgets/maemovibration/data/maemovibration.service b/examples/widgets/maemovibration/data/maemovibration.service
deleted file mode 100644 (file)
index 1fab19f..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-[D-BUS Service]
-Name=com.nokia.maemovibration
-Exec=/usr/bin/maemovibration
diff --git a/examples/widgets/maemovibration/maemovibration.pro b/examples/widgets/maemovibration/maemovibration.pro
deleted file mode 100644 (file)
index 5c645dd..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-TARGET      = maemovibration
-HEADERS     += buttonwidget.h mcevibrator.h
-SOURCES     += main.cpp buttonwidget.cpp mcevibrator.cpp
-
-# All generated files goes same directory
-OBJECTS_DIR = build
-MOC_DIR     = build
-UI_DIR      = build
-DESTDIR     = build
-
-TEMPLATE    = app
-CONFIG      += debug
-QT=core gui
-
-maemo5 {
-    QT += dbus
-    CONFIG += link_pkgconfig
-    PKG_CONFIG += mce
-    INSTALLS    += target
-    target.path  = /usr/bin/
-
-    INSTALLS    += desktop
-    desktop.path  = /usr/share/applications/hildon
-    desktop.files  = data/maemovibration.desktop
-       
-    INSTALLS    += service
-    service.path  = /usr/share/dbus-1/services
-    service.files  = data/maemovibration.service
-
-    INSTALLS    += icon64
-    icon64.path  = /usr/share/icons/hicolor/64x64/apps
-    icon64.files  = data/64x64/maemovibration.png
-
-    #
-    # Targets for debian source and binary package creation
-    #
-    debian-src.commands = dpkg-buildpackage -S -r -us -uc -d
-    debian-bin.commands = dpkg-buildpackage -b -r -uc -d
-    debian-all.depends = debian-src debian-bin
-
-    #
-    # Clean all but Makefile
-    #
-    compiler_clean.commands = -$(DEL_FILE) $(TARGET)
-
-    QMAKE_EXTRA_TARGETS += debian-all debian-src debian-bin compiler_clean
-}
-
-!maemo5 {
-    error(The Maemo Vibration Example only works for the maemo target!)
-}
-
diff --git a/examples/widgets/maemovibration/main.cpp b/examples/widgets/maemovibration/main.cpp
deleted file mode 100644 (file)
index fbac374..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-
-#include "buttonwidget.h"
-#include "mcevibrator.h"
-
-#include <QtDebug>
-#include <QApplication>
-#include <QFile>
-#include <QTextStream>
-#include <QMessageBox>
-#include <QTextStream>
-
-#include <cstdlib>
-
-//! [0]
-int main(int argc, char *argv[])
-{
-    QApplication a(argc, argv);
-       QString path = MceVibrator::defaultMceFilePath;
-
-    QFile file(path);
-    QStringList names;
-    if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
-        QTextStream stream(&file);
-        names = MceVibrator::parsePatternNames(stream);
-        file.close();
-    }
-
-    if (names.isEmpty()){
-        qDebug() << "Could not read vibration pattern names from " << path;
-        a.exit(-1);
-    }
-//! [0]
-
-//! [1]
-    ButtonWidget buttonWidget(names);
-    MceVibrator vibrator;
-    QObject::connect(&buttonWidget, SIGNAL(clicked(const QString &)),
-                     &vibrator, SLOT(vibrate(const QString &)));
-    buttonWidget.show();
-
-    return a.exec();
-}
-//! [1]
-
diff --git a/examples/widgets/maemovibration/mcevibrator.cpp b/examples/widgets/maemovibration/mcevibrator.cpp
deleted file mode 100644 (file)
index fcae1dc..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-
-#include "mcevibrator.h"
-
-#include <QStringList>
-#include <QDebug>
-#include <QDBusConnection>
-#include <QDBusMessage>
-
-#include <mce/dbus-names.h>
-
-const char MceVibrator::defaultMceFilePath[] = "/etc/mce/mce.ini";
-
-//! [5]
-static void checkError(QDBusMessage &msg)
-{
-    if (msg.type() == QDBusMessage::ErrorMessage)
-        qDebug() << msg.errorName() << msg.errorMessage();
-}
-//! [5]
-
-//! [0]
-MceVibrator::MceVibrator(QObject *parent) :
-    QObject(parent),
-    mceInterface(MCE_SERVICE, MCE_REQUEST_PATH, MCE_REQUEST_IF,
-                   QDBusConnection::systemBus())
-{
-    QDBusMessage reply = mceInterface.call(MCE_ENABLE_VIBRATOR);
-    checkError(reply);
-}
-//! [0]
-
-//! [3]
-MceVibrator::~MceVibrator()
-{
-    deactivate(lastPatternName);
-    QDBusMessage reply = mceInterface.call(MCE_DISABLE_VIBRATOR);
-    checkError(reply);
-}
-//! [3]
-
-//! [1]
-void MceVibrator::vibrate(const QString &patternName)
-{
-    deactivate(lastPatternName);
-    lastPatternName = patternName;
-    QDBusMessage reply = mceInterface.call(MCE_ACTIVATE_VIBRATOR_PATTERN, patternName);
-    checkError(reply);
-}
-//! [1]
-
-//! [2]
-void MceVibrator::deactivate(const QString &patternName)
-{
-    if (!patternName.isNull()) {
-        QDBusMessage reply = mceInterface.call(MCE_DEACTIVATE_VIBRATOR_PATTERN, patternName);
-        checkError(reply);
-    }
-}
-//! [2]
-
-//! [4]
-QStringList MceVibrator::parsePatternNames(QTextStream &stream)
-{
-    QStringList result;
-    QString line;
-
-    do {
-        line = stream.readLine();
-        if (line.startsWith(QLatin1String("VibratorPatterns="))) {
-            QString values = line.section('=', 1);
-            result = values.split(';');
-            break;
-        }
-    } while (!line.isNull());
-
-    return result;
-}
-//! [4]
-
diff --git a/examples/widgets/maemovibration/mcevibrator.h b/examples/widgets/maemovibration/mcevibrator.h
deleted file mode 100644 (file)
index fae99be..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MCEVIBRATOR_H
-#define MCEVIBRATOR_H
-
-#include <QObject>
-#include <QTextStream>
-#include <QDBusInterface>
-
-//! [0]
-class MceVibrator : public QObject
-{
-    Q_OBJECT
-public:
-    explicit MceVibrator(QObject *parent = 0);
-    ~MceVibrator();
-
-    static const char defaultMceFilePath[];
-    static QStringList parsePatternNames(QTextStream &stream);
-
-public slots:
-    void vibrate(const QString &patternName);
-
-private:
-    void deactivate(const QString &patternName);
-
-    QDBusInterface mceInterface;
-    QString lastPatternName;
-};
-//! [0]
-
-#endif // MCEVIBRATOR_H
-
index b9a1c69..c686eec 100644 (file)
@@ -47,10 +47,6 @@ int main(int argc, char *argv[])
     QApplication app(argc, argv);
     MoviePlayer player;
     player.show();
-#if defined(Q_OS_SYMBIAN)
-    player.showMaximized();
-#else
     player.show();
-#endif
     return app.exec();
 }
index 5657efa..eb70d6d 100644 (file)
@@ -8,7 +8,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES movie.pro animation.mng
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/movie
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 
 wince*: {
    addFiles.files += *.mng
@@ -18,8 +17,5 @@ wince*: {
 }
 
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 246a79d..74f1803 100644 (file)
@@ -69,9 +69,6 @@ MainWindow::MainWindow(QWidget *parent) :
 //! [1]
 
 //! [2]
-#ifdef Q_WS_MAEMO_5
-    setAttribute(Qt::WA_Maemo5AutoOrientation, true);
-#endif
 }
 //! [2]
 
index 91560a3..2334cb0 100644 (file)
@@ -22,9 +22,5 @@ FORMS += \
 RESOURCES += \
     images.qrc
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index dffe803..01c8ada 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     MainWindow window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index ef11636..1bccb9b 100644 (file)
@@ -10,6 +10,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS scribble.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/scribble
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets printsupport
-maemo5: CONFIG += qt_example
index f5e9718..9b7f951 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     ShapedClock clock;
-#if defined(Q_OS_SYMBIAN)
-    clock.showMaximized();
-#else
     clock.show();
-#endif
     return app.exec();
 }
index d7ab454..5bc1cb8 100644 (file)
@@ -8,12 +8,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS shapedclock.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/shapedclock
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C605
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
index 4a43828..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 7361ba1..b043807 100644 (file)
@@ -10,10 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS sliders.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/sliders
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index e0be830..5473069 100644 (file)
@@ -9,10 +9,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS softkeys.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/softkeys
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000CF6B
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
index 4a43828..f2079f5 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Window window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 11d5aa1..e19e331 100644 (file)
@@ -8,10 +8,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS spinboxes.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/spinboxes
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index a3d0e92..fef1dc6 100644 (file)
@@ -13,10 +13,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS styles.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/styles
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 6259969..2c05ee9 100644 (file)
@@ -48,10 +48,6 @@ int main(int argc, char *argv[])
 
     QApplication app(argc, argv);
     MainWindow window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     return app.exec();
 }
index 7d699a6..4d609a9 100644 (file)
@@ -13,10 +13,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro images layouts qss
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/stylesheet
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/symbianvibration/main.cpp b/examples/widgets/symbianvibration/main.cpp
deleted file mode 100644 (file)
index c6e0abb..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtGui/QApplication>
-#include "mainwindow.h"
-
-int main(int argc, char *argv[])
-{
-    QApplication a(argc, argv);
-    MainWindow w;
-#if defined(Q_WS_S60)
-    w.showMaximized();
-#else
-    w.show();
-#endif
-    return a.exec();
-}
diff --git a/examples/widgets/symbianvibration/mainwindow.cpp b/examples/widgets/symbianvibration/mainwindow.cpp
deleted file mode 100644 (file)
index d43877c..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtGui/QMenuBar>
-#include "mainwindow.h"
-#include "vibrationsurface.h"
-#include "xqvibra.h"
-
-//! [0]
-MainWindow::MainWindow(QWidget *parent)
-    : QMainWindow(parent)
-{
-    vibra = new XQVibra(this);
-    setCentralWidget(new VibrationSurface(vibra, this));
-    menuBar()->addAction(tr("Vibrate"), this, SLOT(vibrate()));
-}
-//! [0]
-
-//! [1]
-void MainWindow::vibrate()
-{
-    vibra->setIntensity(75);
-    vibra->start(2500);
-}
-//! [1]
-
diff --git a/examples/widgets/symbianvibration/mainwindow.h b/examples/widgets/symbianvibration/mainwindow.h
deleted file mode 100644 (file)
index c555cc5..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
-
-#include <QtGui/QMainWindow>
-class XQVibra;
-
-//! [0]
-class MainWindow : public QMainWindow
-{
-    Q_OBJECT
-
-public:
-    MainWindow(QWidget *parent = 0);
-
-private slots:
-    void vibrate();
-
-private:
-    XQVibra *vibra;
-};
-//! [0]
-
-#endif // MAINWINDOW_H
diff --git a/examples/widgets/symbianvibration/symbianvibration.pro b/examples/widgets/symbianvibration/symbianvibration.pro
deleted file mode 100644 (file)
index d99b76d..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#-------------------------------------------------
-#
-# Project created by QtCreator 2010-06-14T10:09:27
-#
-#-------------------------------------------------
-
-QT       += core gui
-
-TARGET = symbianvibration
-TEMPLATE = app
-
-
-SOURCES += main.cpp\
-        mainwindow.cpp \
-        vibrationsurface.cpp \
-        xqvibra.cpp \
-        xqvibra_p.cpp
-
-HEADERS  += mainwindow.h \
-        vibrationsurface.h \
-        xqvibra.h \
-        xqvibra_p.h
-
-CONFIG += mobility
-MOBILITY = 
-
-symbian {
-    TARGET.UID3 = 0xecf47018
-    # TARGET.CAPABILITY += 
-    TARGET.EPOCSTACKSIZE = 0x14000
-    TARGET.EPOCHEAPSIZE = 0x020000 0x800000
-    LIBS += -lhwrmvibraclient
-    include($$PWD/../../symbianpkgrules.pri)
-}
-
-!symbian {
-    error(The Symbian Vibration Example only works for the Symbian target!)
-}
-
diff --git a/examples/widgets/symbianvibration/vibrationsurface.cpp b/examples/widgets/symbianvibration/vibrationsurface.cpp
deleted file mode 100644 (file)
index e06241d..0000000
+++ /dev/null
@@ -1,157 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "vibrationsurface.h"
-#include <QtGui/QPainter>
-#include <QtCore/QLine>
-#include <QtGui/QMouseEvent>
-#include <QtGui/QScreen>
-#include <QtCore/QRect>
-#include <QtGui/QColor>
-
-#include "xqvibra.h"
-
-//! [4]
-const int NumberOfLevels = 10;
-const double IntensityFactor = XQVibra::MaxIntensity / NumberOfLevels;
-//! [4]
-
-VibrationSurface::VibrationSurface(XQVibra *vibra, QWidget *parent) :
-    QWidget(parent),
-    vibra(vibra),
-    lastIntensity(0)
-{
-}
-
-//! [0]
-void VibrationSurface::mousePressEvent(QMouseEvent *event)
-{
-    applyIntensity(event->x(), event->y());
-    vibra->start();
-}
-//! [0]
-
-//! [1]
-void VibrationSurface::mouseMoveEvent(QMouseEvent *event)
-{
-    applyIntensity(event->x(), event->y());
-}
-//! [1]
-
-//! [2]
-void VibrationSurface::mouseReleaseEvent(QMouseEvent *)
-{
-    vibra->stop();
-}
-//! [2]
-
-//! [5]
-void VibrationSurface::paintEvent(QPaintEvent *)
-{
-    QPainter painter(this);
-    QRect rect = geometry();
-    int dx = 0, dy = 0;
-
-    if (height() > width()) {
-        dy = height() / NumberOfLevels;
-        rect.setHeight(dy);
-    } else {
-        dx = width() / NumberOfLevels;
-        rect.setWidth(dx);
-    }
-//! [5]
-//! [6] 
-    for (int i = 0; i < NumberOfLevels; i++) {
-        int x = i * dx;
-        int y = i * dy;
-        int intensity = getIntensity(x, y);
-        QColor color = QColor(40, 80, 10).lighter(100 + intensity);
-
-        rect.moveTo(x, y);
-        painter.fillRect(rect, color);
-        painter.setPen(color.darker());
-        painter.drawText(rect, Qt::AlignCenter, QString::number(intensity));
-    }
-}
-//! [6] 
-
-//! [7] 
-int VibrationSurface::getIntensity(int x, int y)
-{
-    int level;
-    int coord;
-
-    if (height() > width()) {
-        level = height() / NumberOfLevels;
-        coord = y;
-    } else {
-        level = width() / NumberOfLevels;
-        coord = x;
-    }
-
-    if (level == 0) {
-        return 0;
-    }
-//! [7] 
-//! [8] 
-    int intensity = (coord / level + 1) * IntensityFactor;
-
-    if (intensity < 0) {
-        intensity = 0;
-    } else if (intensity > XQVibra::MaxIntensity) {
-        intensity = XQVibra::MaxIntensity;
-    }
-
-    return intensity;
-}
-//! [8] 
-
-//! [3]
-void VibrationSurface::applyIntensity(int x, int y)
-{
-    int intensity = getIntensity(x, y);
-
-    if (intensity != lastIntensity) {
-        vibra->setIntensity(intensity);
-        lastIntensity = intensity;
-    }
-}
-//! [3]
-
diff --git a/examples/widgets/symbianvibration/vibrationsurface.h b/examples/widgets/symbianvibration/vibrationsurface.h
deleted file mode 100644 (file)
index 2c4f3e5..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef TOUCHAREA_H
-#define TOUCHAREA_H
-
-#include <QWidget>
-
-class XQVibra;
-
-//! [0]
-class VibrationSurface : public QWidget
-{
-    Q_OBJECT
-public:
-    explicit VibrationSurface(XQVibra *vibra, QWidget *parent = 0);
-
-protected:
-    virtual void mousePressEvent(QMouseEvent *);
-    virtual void mouseMoveEvent(QMouseEvent *);
-    virtual void mouseReleaseEvent(QMouseEvent *);
-    virtual void paintEvent(QPaintEvent *);
-
-private:
-
-    int getIntensity(int x, int y);
-    void applyIntensity(int x, int y);
-
-    XQVibra *vibra;
-    int lastIntensity;
-};
-//! [0]
-
-#endif // TOUCHAREA_H
diff --git a/examples/widgets/symbianvibration/xqvibra.cpp b/examples/widgets/symbianvibration/xqvibra.cpp
deleted file mode 100644 (file)
index ba1b0b1..0000000
+++ /dev/null
@@ -1,210 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "xqvibra.h"
-#include "xqvibra_p.h"
-
-/*!
-    \class XQVibra
-
-    \brief The XQVibra class is used to control the device's vibra. The XQVibra
-    class provides also information of vibration setting in the user profile.
-
-    Example:
-    \code
-    XQVibra *vibra = new XQVibra(this);
-    QPushButton *startButton = new QPushButton(this);
-    QPushButton *stopButton = new QPushButton(this);
-    connect(startButton, SIGNAL(clicked()), vibra, SLOT(start()));
-    connect(stopButton, SIGNAL(clicked()), vibra, SLOT(stop()));
-    \endcode
-*/
-
-/*! \var XQVibra::InfiniteDuration
-    With this constant vibration can be set to work indefinitely (Note! Depends on the HW)
-*/
-/*! \var XQVibra::MaxIntensity
-    Maximum intensity as percentages
-*/
-/*! \var XQVibra::MinIntensity
-    Minumum intensity as percentages
-*/
-
-/*!
-    Constructs a XQVibra object with the given parent.
-    Call error() to get a value of XQVibra::Error that indicates which error occurred during initialisation if any.
-    \sa start(), setIntensity(), error()
-*/
-XQVibra::XQVibra(QObject *parent)
-    : QObject(parent), d(new XQVibraPrivate(this))
-{
-}
-
-/*!
-    Destroys the XQVibra object.
-*/
-XQVibra::~XQVibra()
-{
-    delete d;
-}
-
-/*!
-    \enum XQVibra::Error
-
-    This enum defines the possible errors for a XQVibra object.
-*/
-/*! \var XQVibra::Error XQVibra::NoError
-    No error occured.
-*/
-/*! \var XQVibra::Error XQVibra::OutOfMemoryError
-    Not enough memory.
-*/
-/*! \var XQVibra::Error XQVibra::ArgumentError
-    Duration is invalid.
-*/
-/*! \var XQVibra::Error XQVibra::VibraInUseError
-    Vibra is already in used by other client.
-*/
-/*! \var XQVibra::Error XQVibra::HardwareError
-    There is a hardware error.
-*/
-/*! \var XQVibra::Error XQVibra::TimeOutError
-    Timeout occurred in controlling vibra.
-*/
-/*! \var XQVibra::Error XQVibra::VibraLockedError
-    Vibra is locked down because too much continuous use or explicitly blocked by
-    for example some vibration sensitive accessory.
-*/
-/*! \var XQVibra::Error XQVibra::AccessDeniedError
-    Vibration setting in the user profile is not set.
-*/
-/*! \var XQVibra::Error XQVibra::UnknownError
-    Unknown error.
-*/
-
-/*!
-    \enum XQVibra::Status
-
-    This enum defines the possible statuses of the vibration
-*/
-/*! \var XQVibra::Status XQVibra::StatusNotAllowed
-    Vibra is set off in the user profile or status is unknow
-*/
-/*! \var XQVibra::Status XQVibra::StatusOff
-    Vibration is non-active
-*/
-/*! \var XQVibra::Status XQVibra::StatusOn
-    Vibration is active
-*/
-
-/*!
-    Starts vibrating. If duration hasn't been set the vibration continues
-    indefinitely unless stopped with stop() function. Calling the start while vibration
-    is active the active vibration is interrupted and the new vibration starts immediately.
-
-    \param duration Specifies duration how long vibration should last
-    \return If false is returned, an error has occurred. Call error() to get a value of
-    XQVibra::Error that indicates which error occurred
-    \sa stop(), setIntensity(), error()
-*/
-bool XQVibra::start(int duration)
-{
-    return d->start(duration);
-}
-
-/*!
-    Interrupts the device vibration immediately.
-
-    \return If false is returned, an error has occurred. Call error() to get a value of
-    XQVibra::Error that indicates which error occurred
-    \sa start(), setIntensity(), error()
-*/
-bool XQVibra::stop()
-{
-    return d->stop();
-}
-
-/*!
-    Sets the intensity of the vibration. Allowed values for the intensity are
-    between -100 and 100. 0 means no vibrating. NOTE: The device might have
-    hardware-imposed limits on supported vibra intensity values, so actual
-    effect might vary between different hardware.
-
-    \param intensity Intensity of the vibra in decimals
-    \return If false is returned, an error has occurred. Call error() to get a value of
-    XQVibra::Error that indicates which error occurred
-    \sa error()
-*/
-bool XQVibra::setIntensity(int intensity)
-{
-    return d->setIntensity(intensity);
-}
-
-/*!
-    Returns the current status of the vibration. This function can be used to check has vibration
-    allowed in the user profile.
-
-    \return current status
-    \sa statusChanged()
-*/
-XQVibra::Status XQVibra::currentStatus() const
-{
-    return d->currentStatus();
-}
-
-/*!
-    Returns the type of error that occurred if the latest function call failed; otherwise returns NoError
-    \return Error code
-*/
-XQVibra::Error XQVibra::error() const
-{
-    return d->error();
-}
-
-/*!
-    \fn void XQVibra::statusChanged(Status status)
-
-    This signal is emitted when the there is a change of the vibration status.
-
-    \param status a vibration status
-    \sa currentStatus()
-*/
-
-// End of file
diff --git a/examples/widgets/symbianvibration/xqvibra.h b/examples/widgets/symbianvibration/xqvibra.h
deleted file mode 100644 (file)
index 7eb8697..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef XQVIBRA_H
-#define XQVIBRA_H
-
-// INCLUDES
-#include <QObject>
-
-// FORWARD DECLARATIONS
-class XQVibraPrivate;
-
-// CLASS DECLARATION
-//! [0]
-class XQVibra : public QObject
-{
-    Q_OBJECT
-
-public:
-    static const int InfiniteDuration = 0;
-    static const int MaxIntensity = 100;
-    static const int MinIntensity = -100;
-
-    enum Error {
-        NoError = 0,
-        OutOfMemoryError,
-        ArgumentError,
-        VibraInUseError,
-        HardwareError,
-        TimeOutError,
-        VibraLockedError,
-        AccessDeniedError,
-        UnknownError = -1
-    };
-
-    enum Status {
-        StatusNotAllowed = 0,
-        StatusOff,
-        StatusOn
-    };
-
-    XQVibra(QObject *parent = 0);
-    ~XQVibra();
-
-    XQVibra::Status currentStatus() const;
-    XQVibra::Error error() const;
-
-Q_SIGNALS:
-    void statusChanged(XQVibra::Status status);
-
-public Q_SLOTS:
-    bool start(int duration = InfiniteDuration);
-    bool stop();
-    bool setIntensity(int intensity);
-
-private:
-    friend class XQVibraPrivate;
-    XQVibraPrivate *d;
-};
-//! [0]
-
-#endif // XQVIBRA_H
-
-// End of file
diff --git a/examples/widgets/symbianvibration/xqvibra_p.cpp b/examples/widgets/symbianvibration/xqvibra_p.cpp
deleted file mode 100644 (file)
index 145434c..0000000
+++ /dev/null
@@ -1,171 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "xqvibra_p.h"
-
-const int KDefaultIntensity = 0xFF;
-
-XQVibraPrivate::XQVibraPrivate(XQVibra *vibra)
-    : q(vibra), iStatus(XQVibra::StatusOff), iDuration(XQVibra::InfiniteDuration), iIntensity(KDefaultIntensity)
-
-{
-    TRAP(iError, iVibra = CHWRMVibra::NewL();)
-    QObject::connect(&iTimer, SIGNAL(timeout()), q, SLOT(stop()));
-}
-
-XQVibraPrivate::~XQVibraPrivate()
-{
-    delete iVibra;
-}
-
-bool XQVibraPrivate::start(int aDuration)
-{
-    iDuration = aDuration;
-    TRAP(iError,
-        if (iIntensity == KDefaultIntensity) {
-            iVibra->StartVibraL(XQVibra::InfiniteDuration);
-        } else {
-            iVibra->StopVibraL();
-            iVibra->StartVibraL(XQVibra::InfiniteDuration, iIntensity);
-        }
-
-        if (aDuration != XQVibra::InfiniteDuration) {
-            iTimer.start(aDuration);
-        } else {
-            iTimer.stop();
-        }
-
-        if (iStatus != XQVibra::StatusOn) {
-            iStatus = XQVibra::StatusOn;
-            emit q->statusChanged(iStatus);
-        }
-    )
-    return (iError == KErrNone);
-}
-
-bool XQVibraPrivate::stop()
-{
-    TRAP(iError,
-        if (iVibra->VibraStatus() == CHWRMVibra::EVibraStatusOn) {
-            iVibra->StopVibraL();
-            if (iTimer.isActive()) {
-                iTimer.stop();
-            }
-        }
-
-        iStatus = XQVibra::StatusOff;
-        emit q->statusChanged(iStatus);
-    )
-    return (iError == KErrNone);
-}
-
-void XQVibraPrivate::VibraModeChanged(CHWRMVibra::TVibraModeState /*aStatus*/)
-{
-    // Implementation isn't needed here because this information isn't used in the public side of the extension
-}
-
-void XQVibraPrivate::VibraStatusChanged(CHWRMVibra::TVibraStatus aStatus)
-{
-    if (aStatus == CHWRMVibra::EVibraStatusUnknown ||
-            aStatus == CHWRMVibra::EVibraStatusNotAllowed) {
-        iStatus = XQVibra::StatusNotAllowed;
-        emit q->statusChanged(iStatus);
-    }
-
-    if (iDuration ==  XQVibra::InfiniteDuration) {
-        if (iStatus != XQVibra::StatusOff) {
-            iStatus = XQVibra::StatusOff;
-            emit q->statusChanged(iStatus);
-        }
-    }
-}
-
-bool XQVibraPrivate::setIntensity(int aIntensity)
-{
-    TRAP(iError,
-        if (aIntensity >= KHWRMVibraMinIntensity && aIntensity <= KHWRMVibraMaxIntensity) {
-            iIntensity = aIntensity;
-            if (iIntensity == 0 && iStatus == XQVibra::StatusOn) {
-                iVibra->StopVibraL();
-            } else if (iStatus == XQVibra::StatusOn) {
-                iVibra->StopVibraL();
-                iVibra->StartVibraL(XQVibra::InfiniteDuration, iIntensity);
-            }
-        } else {
-            User::Leave(KErrArgument);
-        }
-    )
-    return (iError == KErrNone);
-}
-
-XQVibra::Status XQVibraPrivate::currentStatus() const
-{
-    if (iVibra->VibraStatus() == CHWRMVibra::EVibraStatusUnknown ||
-            iVibra->VibraStatus() == CHWRMVibra::EVibraStatusNotAllowed) {
-        return XQVibra::StatusNotAllowed;
-    }
-    return iStatus;
-}
-
-XQVibra::Error XQVibraPrivate::error() const
-{
-    switch (iError) {
-    case KErrNone:
-        return XQVibra::NoError;
-    case KErrNoMemory:
-        return XQVibra::OutOfMemoryError;
-    case KErrArgument:
-        return XQVibra::ArgumentError;
-    case KErrInUse:
-        return XQVibra::VibraInUseError;
-    case KErrGeneral:
-        return XQVibra::HardwareError;
-    case KErrTimedOut:
-        return XQVibra::TimeOutError;
-    case KErrLocked:
-        return XQVibra::VibraLockedError;
-    case KErrAccessDenied:
-        return XQVibra::AccessDeniedError;
-    default:
-        return XQVibra::UnknownError;
-    }
-}
-
-// End of file
diff --git a/examples/widgets/symbianvibration/xqvibra_p.h b/examples/widgets/symbianvibration/xqvibra_p.h
deleted file mode 100644 (file)
index a8be019..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the QtCore module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-**   * Redistributions of source code must retain the above copyright
-**     notice, this list of conditions and the following disclaimer.
-**   * Redistributions in binary form must reproduce the above copyright
-**     notice, this list of conditions and the following disclaimer in
-**     the documentation and/or other materials provided with the
-**     distribution.
-**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-**     the names of its contributors may be used to endorse or promote
-**     products derived from this software without specific prior written
-**     permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef XQVIBRA_P_H
-#define XQVIBRA_P_H
-
-// INCLUDES
-#include "xqvibra.h"
-#include <hwrmvibra.h>
-#include <QTimer>
-
-// CLASS DECLARATION
-class XQVibraPrivate: public CBase, public MHWRMVibraObserver
-{
-
-public:
-    XQVibraPrivate(XQVibra *vibra);
-    ~XQVibraPrivate();
-
-    bool start(int aDuration = XQVibra::InfiniteDuration);
-    bool stop();
-    bool setIntensity(int aIntensity);
-    XQVibra::Status currentStatus() const;
-    XQVibra::Error error() const;
-
-private: // From MHWRMVibraObserver
-    void VibraModeChanged(CHWRMVibra::TVibraModeState aStatus);
-    void VibraStatusChanged(CHWRMVibra::TVibraStatus aStatus);
-
-private:
-    XQVibra *q;
-    XQVibra::Status iStatus;
-    CHWRMVibra *iVibra;
-    QTimer iTimer;
-    int iDuration;
-    int iIntensity;
-    int iError;
-};
-
-#endif /*XQVIBRA_P_H*/
-
-// End of file
index a7a054a..40c41bf 100644 (file)
@@ -52,14 +52,8 @@ int main(int argv, char *args[])
     app.setCanvas(canvas);
 
     MainWindow mainWindow(canvas);
-#if defined(Q_OS_SYMBIAN)
-    mainWindow.showMaximized();
-#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    mainWindow.show();
-#else
     mainWindow.resize(500, 500);
     mainWindow.show();
-#endif
     return app.exec();
 }
 //! [0]
index 4788fad..9ad533f 100644 (file)
@@ -12,10 +12,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS tablet.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/tablet
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index b107643..6c30ae5 100644 (file)
@@ -48,11 +48,7 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     TetrixWindow window;
-#if defined(Q_OS_SYMBIAN)
-    window.showMaximized();
-#else
     window.show();
-#endif
     qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
     return app.exec();
 }
index d9fff26..6e8a270 100644 (file)
@@ -12,10 +12,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS tetrix.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/tetrix
 INSTALLS += target sources
 
-symbian {
-    TARGET.UID3 = 0xA000C606
-    CONFIG += qt_example
-}
 QT += widgets
-maemo5: CONFIG += qt_example
 
index 5fba6cc..893b65d 100644 (file)
@@ -49,10 +49,6 @@ int main(int argc, char *argv[])
     QApplication app(argc, argv);
     qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
     SortingBox sortingBox;
-#if defined(Q_OS_SYMBIAN)
-    sortingBox.showMaximized();
-#else
     sortingBox.show();
-#endif
     return app.exec();
 }
index d19c1d9..76a6cd0 100644 (file)
@@ -11,6 +11,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS tooltips.pro images
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/tooltips
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 748a361..5e5765e 100644 (file)
@@ -128,11 +128,7 @@ int main(int argc, char **argv)
     QApplication app(argc, argv);
 
     ValidatorWidget w;
-#if defined(Q_OS_SYMBIAN)
-    w.showMaximized();
-#else
     w.show();
-#endif
 
     return app.exec();
 }
index 406a5f4..f4cab8e 100644 (file)
@@ -20,10 +20,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.png
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/validators
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 232657e..51a92bc 100644 (file)
@@ -23,20 +23,7 @@ SUBDIRS       = analogclock \
                 tooltips \
                 validators \
                 wiggly \
-                windowflags \
-
-symbian: SUBDIRS = \
-                analogclock \
-                calculator \
-                calendarwidget \
-                lineedits \
-                shapedclock \
-               symbianvibration \
-                tetrix \
-                wiggly \
-                softkeys
-
-MAEMO5: SUBDIRS += maemovibration
+                windowflags
 
 contains(styles, motif): SUBDIRS += styles
 
@@ -46,6 +33,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS widgets.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 0b92228..c64e352 100644 (file)
@@ -47,9 +47,6 @@ int main(int argc, char *argv[])
     QApplication app(argc, argv);
     bool smallScreen = QApplication::arguments().contains("-small-screen");
 
-#if defined(Q_OS_SYMBIAN) || defined(Q_WS_HILDON) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
-    smallScreen = true;
-#endif
 
     Dialog dialog(0, smallScreen);
 
index 8a1bec3..6b89cd1 100644 (file)
@@ -11,10 +11,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/wiggly
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS wiggly.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/wiggly
 INSTALLS += target sources
-
-symbian {
-    TARGET.UID3 = 0xA000C607
-    CONFIG += qt_example
-}
-maemo5: CONFIG += qt_example
-
index 941a3fa..8dd71ed 100644 (file)
@@ -46,10 +46,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     ControllerWindow controller;
-#if defined(Q_OS_SYMBIAN)
-    controller.showMaximized();
-#else
     controller.show();
-#endif
     return app.exec();
 }
index 9a781cd..b063b8a 100644 (file)
@@ -10,10 +10,6 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS windowflags.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/windowflags
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example might not fully work on Symbian platform)
-maemo5: warning(This example might not fully work on Maemo platform)
 simulator: warning(This example might not fully work on Simulator platform)
index 21eb5c0..9c1746a 100644 (file)
@@ -11,19 +11,9 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS dombookmarks.pro *.xbel
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml/dombookmarks
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-
-symbian: {
-    CONFIG += qt_example
-    addFiles.sources = frank.xbel jennifer.xbel
-    addFiles.path = files
-    DEPLOYMENT += addFiles
-}
-
 wince*: {
     addFiles.files = frank.xbel jennifer.xbel
     addFiles.path = "\\My Documents"
     DEPLOYMENT += addFiles
 }
-maemo5: CONFIG += qt_example
 
index 6a3bb8c..d23af14 100644 (file)
@@ -46,11 +46,7 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     MainWindow mainWin;
-#if defined(Q_OS_SYMBIAN)
-    mainWin.showMaximized();
-#else
     mainWin.show();
-#endif
 
     mainWin.open();
     return app.exec();
index 0c85683..0c3ceaf 100644 (file)
@@ -59,15 +59,6 @@ MainWindow::MainWindow()
 
 void MainWindow::open()
 {
-#if defined(Q_OS_SYMBIAN)
-    // Look for bookmarks on the same drive where the application is installed to,
-    // if drive is not read only. QDesktopServices::DataLocation does this check,
-    // and returns writable drive.
-    QString bookmarksFolder =
-            QDesktopServices::storageLocation(QDesktopServices::DataLocation).left(1);
-    bookmarksFolder.append(":/Data/qt/saxbookmarks");
-    QDir::setCurrent(bookmarksFolder);
-#endif
     QString fileName =
             QFileDialog::getOpenFileName(this, tr("Open Bookmark File"),
                                          QDir::currentPath(),
@@ -90,15 +81,6 @@ void MainWindow::open()
 
 void MainWindow::saveAs()
 {
-#if defined(Q_OS_SYMBIAN)
-    // Look for bookmarks on the same drive where the application is installed to,
-    // if drive is not read only. QDesktopServices::DataLocation does this check,
-    // and returns writable drive.
-    QString bookmarksFolder =
-            QDesktopServices::storageLocation(QDesktopServices::DataLocation).left(1);
-    bookmarksFolder.append(":/Data/qt/saxbookmarks");
-    QDir::setCurrent(bookmarksFolder);
-#endif
     QString fileName =
             QFileDialog::getSaveFileName(this, tr("Save Bookmark File"),
                                          QDir::currentPath(),
index 7a58ed3..bf23878 100644 (file)
@@ -5,7 +5,7 @@ RESOURCES   = resources.qrc
 
 win32: CONFIG += console
 
-wince*|symbian:{
+wince*:{
    htmlfiles.files = *.html
    htmlfiles.path = .
    DEPLOYMENT += htmlfiles
@@ -16,11 +16,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml/htmlinfo
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.html htmlinfo.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml/htmlinfo
 INSTALLS += target sources
-
-symbian {
-    TARGET.UID3 = 0xA000C609
-    CONFIG += qt_example
-}
-maemo5: CONFIG += qt_example
-
-symbian: warning(This example does not work on Symbian platform)
index 7d2b4ca..a646c60 100644 (file)
@@ -58,10 +58,6 @@ int main(int argc, char **argv)
 {
     QApplication app(argc, argv);
     RSSListing *rsslisting = new RSSListing;
-#if defined(Q_OS_SYMBIAN)
-    rsslisting->showMaximized();
-#else
     rsslisting->show();
-#endif
     return app.exec();
 }
index ba9ff28..4fa160f 100644 (file)
@@ -74,23 +74,6 @@ its operation, and also allows very large data sources to be read.
 RSSListing::RSSListing(QWidget *parent)
     : QWidget(parent), currentReply(0)
 {
-#ifdef Q_OS_SYMBIAN
-    // Set Internet Access Point
-    QNetworkConfigurationManager manager;
-    const bool canStartIAP = manager.capabilities() & QNetworkConfigurationManager::CanStartAndStopInterfaces;
-
-    // Is there default access point, use it
-    QNetworkConfiguration cfg = manager.defaultConfiguration();
-    if (!cfg.isValid() || !canStartIAP) {
-        // Available Access Points not found
-        QMessageBox::warning(this, "Error", "No access point");
-        return;
-    }
-
-    m_session = new QNetworkSession(cfg);
-    m_session->open();
-    m_session->waitForOpened();
-#endif
 
     lineEdit = new QLineEdit(this);
     lineEdit->setText("http://labs.qt.nokia.com/blogs/feed");
@@ -122,9 +105,7 @@ RSSListing::RSSListing(QWidget *parent)
     layout->addWidget(treeWidget);
 
     setWindowTitle(tr("RSS listing example"));
-#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5)
     resize(640,480);
-#endif
 }
 
 /*
index 49c6940..22d222e 100644 (file)
 #include <QXmlStreamReader>
 #include <QUrl>
 
-#ifdef Q_OS_SYMBIAN
-// Bearer
-#include <QNetworkConfigurationManager>
-#include <QNetworkSession>
-#include <QPointer>
-
-// QtMobility namespace
-QTM_USE_NAMESPACE
-#endif
 
 QT_BEGIN_NAMESPACE
 class QLineEdit;
@@ -95,10 +86,6 @@ private:
     QTreeWidget *treeWidget;
     QPushButton *fetchButton;
 
-#ifdef Q_OS_SYMBIAN
-    // for bearer management
-    QPointer<QNetworkSession> m_session;
-#endif
 };
 
 #endif
index 551be70..b0920cc 100644 (file)
@@ -7,16 +7,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml/rsslisting
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS rsslisting.pro 
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml/rsslisting
 INSTALLS += target sources
-
-symbian {
-    CONFIG += qt_example
-
-    # For QtMobility
-    CONFIG += mobility
-    MOBILITY = bearer
-
-    # For QtMobility
-    TARGET.CAPABILITY = NetworkServices
-}
-
-maemo5: CONFIG += qt_example
index 5d70ec8..71ce6ae 100644 (file)
@@ -46,11 +46,7 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     MainWindow mainWin;
-#if defined(Q_OS_SYMBIAN)
-    mainWin.showFullScreen();
-#else
     mainWin.show();
-#endif
     mainWin.open();
     return app.exec();
 }
index 93aae7f..0f65c1f 100644 (file)
@@ -65,15 +65,6 @@ MainWindow::MainWindow()
 
 void MainWindow::open()
 {
-#if defined(Q_OS_SYMBIAN)
-    // Look for bookmarks on the same drive where the application is installed to,
-    // if drive is not read only. QDesktopServices::DataLocation does this check,
-    // and returns writable drive.
-    QString bookmarksFolder =
-            QDesktopServices::storageLocation(QDesktopServices::DataLocation).left(1);
-    bookmarksFolder.append(":/Data/qt/saxbookmarks");
-    QDir::setCurrent(bookmarksFolder);
-#endif
     QString fileName =
             QFileDialog::getOpenFileName(this, tr("Open Bookmark File"),
                                          QDir::currentPath(),
index 22d96f5..4d2a280 100644 (file)
@@ -18,13 +18,3 @@ wince*: {
      addFiles.path = "\\My Documents"
      DEPLOYMENT += addFiles
 }
-
-symbian: {
-     TARGET.UID3 = 0xA000C60A
-     CONFIG += qt_example
-     addFiles.files = frank.xbel jennifer.xbel
-     addFiles.path = /data/qt/saxbookmarks
-     DEPLOYMENT += addFiles
-}
-maemo5: CONFIG += qt_example
-
index d909c01..c44e921 100644 (file)
@@ -47,9 +47,6 @@ int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     MainWindow mainWin;
-#ifdef Q_OS_SYMBIAN
-    mainWin.showFullScreen();
-#endif
     mainWin.show();
     mainWin.open();
     return app.exec();
index 780b2b8..ed76599 100644 (file)
@@ -68,15 +68,6 @@ MainWindow::MainWindow()
 //! [1]
 void MainWindow::open()
 {
-#if defined(Q_OS_SYMBIAN)
-    // Look for bookmarks on the same drive where the application is installed to,
-    // if drive is not read only. QDesktopServices::DataLocation does this check,
-    // and returns writable drive.
-    QString bookmarksFolder =
-            QDesktopServices::storageLocation(QDesktopServices::DataLocation).left(1);
-    bookmarksFolder.append(":/Data/qt/saxbookmarks");
-    QDir::setCurrent(bookmarksFolder);
-#endif
     QString fileName =
             QFileDialog::getOpenFileName(this, tr("Open Bookmark File"),
                                          QDir::currentPath(),
@@ -112,15 +103,6 @@ void MainWindow::open()
 //! [2]
 void MainWindow::saveAs()
 {
-#if defined(Q_OS_SYMBIAN)
-    // Look for bookmarks on the same drive where the application is installed to,
-    // if drive is not read only. QDesktopServices::DataLocation does this check,
-    // and returns writable drive.
-    QString bookmarksFolder =
-            QDesktopServices::storageLocation(QDesktopServices::DataLocation).left(1);
-    bookmarksFolder.append(":/Data/qt/saxbookmarks");
-    QDir::setCurrent(bookmarksFolder);
-#endif
     QString fileName =
             QFileDialog::getSaveFileName(this, tr("Save Bookmark File"),
                                          QDir::currentPath(),
index de9b1ab..3342d5e 100644 (file)
@@ -12,11 +12,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml/streambookmarks
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS streambookmarks.pro *.xbel
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml/streambookmarks
 INSTALLS += target sources
-
-symbian: {
-    CONFIG += qt_example
-    addFiles.sources = frank.xbel jennifer.xbel
-    addFiles.path = /data/qt/streambookmarks
-    DEPLOYMENT += addFiles
-}
-maemo5: CONFIG += qt_example
index 3c93131..cb28fe3 100644 (file)
@@ -9,7 +9,6 @@ SUBDIRS       = htmlinfo \
                 streambookmarks
 }
 
-symbian: SUBDIRS = htmlinfo saxbookmarks
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml
@@ -17,6 +16,4 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS xml.pro README
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
 QT += widgets
-maemo5: CONFIG += qt_example
index 32e95c5..cfcecf0 100644 (file)
@@ -9,8 +9,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS xmlstreamlint.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/xml/xmlstreamlint
 INSTALLS += target sources
 
-symbian: CONFIG += qt_example
-maemo5: CONFIG += qt_example
 
-symbian: warning(This example does not work on Symbian platform)
 simulator: warning(This example does not work on Simulator platform)