summaryrefslogtreecommitdiffstats
path: root/examples/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets')
-rw-r--r--examples/widgets/animation/animatedtiles/animatedtiles.pro4
-rw-r--r--examples/widgets/animation/appchooser/appchooser.pro4
-rw-r--r--examples/widgets/animation/easing/easing.pro5
-rw-r--r--examples/widgets/animation/moveblocks/moveblocks.pro4
-rw-r--r--examples/widgets/animation/states/states.pro4
-rw-r--r--examples/widgets/animation/stickman/stickman.pro4
-rw-r--r--examples/widgets/desktop/screenshot/screenshot.pro3
-rw-r--r--examples/widgets/dialogs/classwizard/classwizard.pro3
-rw-r--r--examples/widgets/dialogs/configdialog/configdialog.pro3
-rw-r--r--examples/widgets/dialogs/extension/extension.pro3
-rw-r--r--examples/widgets/dialogs/findfiles/findfiles.pro4
-rw-r--r--examples/widgets/dialogs/licensewizard/licensewizard.pro3
-rw-r--r--examples/widgets/dialogs/sipdialog/sipdialog.pro4
-rw-r--r--examples/widgets/dialogs/standarddialogs/standarddialogs.pro4
-rw-r--r--examples/widgets/dialogs/tabdialog/tabdialog.pro3
-rw-r--r--examples/widgets/dialogs/trivialwizard/trivialwizard.pro3
-rw-r--r--examples/widgets/draganddrop/draggableicons/draggableicons.pro4
-rw-r--r--examples/widgets/draganddrop/draggabletext/draggabletext.pro5
-rw-r--r--examples/widgets/draganddrop/dropsite/dropsite.pro3
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/fridgemagnets.pro5
-rw-r--r--examples/widgets/draganddrop/puzzle/puzzle.pro3
-rw-r--r--examples/widgets/effects/blurpicker/blurpicker.pro4
-rw-r--r--examples/widgets/effects/fademessage/fademessage.pro3
-rw-r--r--examples/widgets/effects/lighting/lighting.pro5
-rw-r--r--examples/widgets/graphicsview/anchorlayout/anchorlayout.pro8
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro4
-rw-r--r--examples/widgets/graphicsview/collidingmice/collidingmice.pro5
-rw-r--r--examples/widgets/graphicsview/diagramscene/diagramscene.pro4
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/dragdroprobot.pro4
-rw-r--r--examples/widgets/graphicsview/elasticnodes/elasticnodes.pro4
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.pro4
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.pro7
-rw-r--r--examples/widgets/itemviews/addressbook/addressbook.pro4
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro4
-rw-r--r--examples/widgets/itemviews/chart/chart.pro5
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.pro5
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.pro3
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.pro4
-rw-r--r--examples/widgets/itemviews/dirview/dirview.pro4
-rw-r--r--examples/widgets/itemviews/editabletreemodel/editabletreemodel.pro4
-rw-r--r--examples/widgets/itemviews/fetchmore/fetchmore.pro4
-rw-r--r--examples/widgets/itemviews/frozencolumn/frozencolumn.pro3
-rw-r--r--examples/widgets/itemviews/interview/interview.pro3
-rw-r--r--examples/widgets/itemviews/pixelator/pixelator.pro6
-rw-r--r--examples/widgets/itemviews/puzzle/puzzle.pro5
-rw-r--r--examples/widgets/itemviews/simpletreemodel/simpletreemodel.pro4
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.pro4
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.pro4
-rw-r--r--examples/widgets/itemviews/stardelegate/stardelegate.pro4
-rw-r--r--examples/widgets/layouts/basiclayouts/basiclayouts.pro4
-rw-r--r--examples/widgets/layouts/borderlayout/borderlayout.pro4
-rw-r--r--examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro4
-rw-r--r--examples/widgets/layouts/flowlayout/flowlayout.pro4
-rw-r--r--examples/widgets/mainwindows/application/application.pro4
-rw-r--r--examples/widgets/mainwindows/dockwidgets/dockwidgets.pro6
-rw-r--r--examples/widgets/mainwindows/mainwindow/mainwindow.pro4
-rw-r--r--examples/widgets/mainwindows/mdi/mdi.pro4
-rw-r--r--examples/widgets/mainwindows/menus/menus.pro4
-rw-r--r--examples/widgets/mainwindows/recentfiles/recentfiles.pro4
-rw-r--r--examples/widgets/mainwindows/sdi/sdi.pro4
-rw-r--r--examples/widgets/painting/basicdrawing/basicdrawing.pro4
-rw-r--r--examples/widgets/painting/concentriccircles/concentriccircles.pro5
-rw-r--r--examples/widgets/painting/fontsampler/fontsampler.pro6
-rw-r--r--examples/widgets/painting/imagecomposition/imagecomposition.pro5
-rw-r--r--examples/widgets/painting/painterpaths/painterpaths.pro5
-rw-r--r--examples/widgets/painting/shared/shared.pro4
-rw-r--r--examples/widgets/painting/transformations/transformations.pro4
-rw-r--r--examples/widgets/richtext/calendar/calendar.pro4
-rw-r--r--examples/widgets/richtext/orderform/orderform.pro6
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.pro4
-rw-r--r--examples/widgets/richtext/textedit/textedit.pro6
-rw-r--r--examples/widgets/scroller/graphicsview/graphicsview.pro3
-rw-r--r--examples/widgets/statemachine/eventtransitions/eventtransitions.pro4
-rw-r--r--examples/widgets/statemachine/rogue/rogue.pro5
-rw-r--r--examples/widgets/statemachine/trafficlight/trafficlight.pro3
-rw-r--r--examples/widgets/statemachine/twowaybutton/twowaybutton.pro3
-rw-r--r--examples/widgets/tools/codecs/codecs.pro4
-rw-r--r--examples/widgets/tools/completer/completer.pro4
-rw-r--r--examples/widgets/tools/customcompleter/customcompleter.pro4
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/echowindow.pro4
-rw-r--r--examples/widgets/tools/echoplugin/plugin/plugin.pro3
-rw-r--r--examples/widgets/tools/i18n/i18n.pro4
-rw-r--r--examples/widgets/tools/plugandpaint/plugandpaint.pro4
-rw-r--r--examples/widgets/tools/plugandpaintplugins/basictools/basictools.pro3
-rw-r--r--examples/widgets/tools/plugandpaintplugins/extrafilters/extrafilters.pro3
-rw-r--r--examples/widgets/tools/regexp/regexp.pro4
-rw-r--r--examples/widgets/tools/settingseditor/settingseditor.pro4
-rw-r--r--examples/widgets/tools/styleplugin/plugin/plugin.pro4
-rw-r--r--examples/widgets/tools/styleplugin/stylewindow/stylewindow.pro4
-rw-r--r--examples/widgets/tools/treemodelcompleter/treemodelcompleter.pro4
-rw-r--r--examples/widgets/tools/undo/undo.pro4
-rw-r--r--examples/widgets/tools/undoframework/undoframework.pro4
-rw-r--r--examples/widgets/tutorials/addressbook-fr/part1/part1.pro4
-rw-r--r--examples/widgets/tutorials/addressbook-fr/part2/part2.pro4
-rw-r--r--examples/widgets/tutorials/addressbook-fr/part3/part3.pro4
-rw-r--r--examples/widgets/tutorials/addressbook-fr/part4/part4.pro4
-rw-r--r--examples/widgets/tutorials/addressbook-fr/part5/part5.pro4
-rw-r--r--examples/widgets/tutorials/addressbook-fr/part6/part6.pro4
-rw-r--r--examples/widgets/tutorials/addressbook-fr/part7/part7.pro4
-rw-r--r--examples/widgets/tutorials/addressbook/part1/part1.pro4
-rw-r--r--examples/widgets/tutorials/addressbook/part2/part2.pro4
-rw-r--r--examples/widgets/tutorials/addressbook/part3/part3.pro4
-rw-r--r--examples/widgets/tutorials/addressbook/part4/part4.pro4
-rw-r--r--examples/widgets/tutorials/addressbook/part5/part5.pro4
-rw-r--r--examples/widgets/tutorials/addressbook/part6/part6.pro4
-rw-r--r--examples/widgets/tutorials/addressbook/part7/part7.pro4
-rw-r--r--examples/widgets/tutorials/modelview/1_readonly/1_readonly.pro4
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/2_formatting.pro4
-rw-r--r--examples/widgets/tutorials/modelview/3_changingmodel/3_changingmodel.pro4
-rw-r--r--examples/widgets/tutorials/modelview/4_headers/4_headers.pro4
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/5_edit.pro4
-rw-r--r--examples/widgets/tutorials/modelview/6_treeview/6_treeview.pro3
-rw-r--r--examples/widgets/tutorials/modelview/7_selections/7_selections.pro3
-rw-r--r--examples/widgets/tutorials/threads/clock/clock.pro4
-rw-r--r--examples/widgets/tutorials/threads/movedobject/movedobject.pro3
-rw-r--r--examples/widgets/tutorials/widgets/childwidget/childwidget.pro4
-rw-r--r--examples/widgets/tutorials/widgets/nestedlayouts/nestedlayouts.pro4
-rw-r--r--examples/widgets/tutorials/widgets/toplevel/toplevel.pro4
-rw-r--r--examples/widgets/tutorials/widgets/windowlayout/windowlayout.pro4
-rw-r--r--examples/widgets/widgets/analogclock/analogclock.pro5
-rw-r--r--examples/widgets/widgets/calculator/calculator.pro5
-rw-r--r--examples/widgets/widgets/calendarwidget/calendarwidget.pro4
-rw-r--r--examples/widgets/widgets/charactermap/charactermap.pro4
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.pro5
-rw-r--r--examples/widgets/widgets/digitalclock/digitalclock.pro4
-rw-r--r--examples/widgets/widgets/groupbox/groupbox.pro4
-rw-r--r--examples/widgets/widgets/icons/icons.pro3
-rw-r--r--examples/widgets/widgets/imageviewer/imageviewer.pro5
-rw-r--r--examples/widgets/widgets/lineedits/lineedits.pro4
-rw-r--r--examples/widgets/widgets/movie/movie.pro4
-rw-r--r--examples/widgets/widgets/scribble/scribble.pro6
-rw-r--r--examples/widgets/widgets/shapedclock/shapedclock.pro5
-rw-r--r--examples/widgets/widgets/sliders/sliders.pro4
-rw-r--r--examples/widgets/widgets/spinboxes/spinboxes.pro4
-rw-r--r--examples/widgets/widgets/styles/styles.pro4
-rw-r--r--examples/widgets/widgets/stylesheet/stylesheet.pro4
-rw-r--r--examples/widgets/widgets/tablet/tablet.pro4
-rw-r--r--examples/widgets/widgets/tetrix/tetrix.pro5
-rw-r--r--examples/widgets/widgets/tooltips/tooltips.pro4
-rw-r--r--examples/widgets/widgets/wiggly/wiggly.pro2
-rw-r--r--examples/widgets/widgets/windowflags/windowflags.pro4
141 files changed, 283 insertions, 293 deletions
diff --git a/examples/widgets/animation/animatedtiles/animatedtiles.pro b/examples/widgets/animation/animatedtiles/animatedtiles.pro
index c4e2553224..04c2b8f3d0 100644
--- a/examples/widgets/animation/animatedtiles/animatedtiles.pro
+++ b/examples/widgets/animation/animatedtiles/animatedtiles.pro
@@ -1,8 +1,8 @@
+QT += widgets
+
SOURCES = main.cpp
RESOURCES = animatedtiles.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/animatedtiles
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/animation/appchooser/appchooser.pro b/examples/widgets/animation/appchooser/appchooser.pro
index 8560db2c4c..674e623b2d 100644
--- a/examples/widgets/animation/appchooser/appchooser.pro
+++ b/examples/widgets/animation/appchooser/appchooser.pro
@@ -1,8 +1,8 @@
+QT += widgets
+
SOURCES = main.cpp
RESOURCES = appchooser.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/appchooser
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/animation/easing/easing.pro b/examples/widgets/animation/easing/easing.pro
index 0e430df1ba..498180c0bb 100644
--- a/examples/widgets/animation/easing/easing.pro
+++ b/examples/widgets/animation/easing/easing.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h \
animation.h
SOURCES = main.cpp \
@@ -10,6 +12,3 @@ RESOURCES = easing.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/easing
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/animation/moveblocks/moveblocks.pro b/examples/widgets/animation/moveblocks/moveblocks.pro
index 2992315064..1397246b3f 100644
--- a/examples/widgets/animation/moveblocks/moveblocks.pro
+++ b/examples/widgets/animation/moveblocks/moveblocks.pro
@@ -1,7 +1,7 @@
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/moveblocks
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/animation/states/states.pro b/examples/widgets/animation/states/states.pro
index 563160ce9f..491d557a8d 100644
--- a/examples/widgets/animation/states/states.pro
+++ b/examples/widgets/animation/states/states.pro
@@ -1,8 +1,8 @@
+QT += widgets
+
SOURCES += main.cpp
RESOURCES += states.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/states
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/animation/stickman/stickman.pro b/examples/widgets/animation/stickman/stickman.pro
index 145a9a18f9..a803acf624 100644
--- a/examples/widgets/animation/stickman/stickman.pro
+++ b/examples/widgets/animation/stickman/stickman.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS += stickman.h \
animation.h \
node.h \
@@ -17,5 +19,3 @@ RESOURCES += stickman.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/stickman
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/desktop/screenshot/screenshot.pro b/examples/widgets/desktop/screenshot/screenshot.pro
index 31ea646af0..f12bc82ca7 100644
--- a/examples/widgets/desktop/screenshot/screenshot.pro
+++ b/examples/widgets/desktop/screenshot/screenshot.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = screenshot.h
SOURCES = main.cpp \
screenshot.cpp
@@ -6,5 +8,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/desktop/screenshot
INSTALLS += target
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/dialogs/classwizard/classwizard.pro b/examples/widgets/dialogs/classwizard/classwizard.pro
index 9b272b9d3f..5226b38b7c 100644
--- a/examples/widgets/dialogs/classwizard/classwizard.pro
+++ b/examples/widgets/dialogs/classwizard/classwizard.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = classwizard.h
SOURCES = classwizard.cpp \
main.cpp
@@ -7,5 +9,4 @@ RESOURCES = classwizard.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/classwizard
INSTALLS += target
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/dialogs/configdialog/configdialog.pro b/examples/widgets/dialogs/configdialog/configdialog.pro
index 616b5fd650..6e5b1e2725 100644
--- a/examples/widgets/dialogs/configdialog/configdialog.pro
+++ b/examples/widgets/dialogs/configdialog/configdialog.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = configdialog.h \
pages.h
SOURCES = configdialog.cpp \
@@ -11,5 +13,4 @@ INSTALLS += target
wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/dialogs/extension/extension.pro b/examples/widgets/dialogs/extension/extension.pro
index e7cf493128..327eeff1f3 100644
--- a/examples/widgets/dialogs/extension/extension.pro
+++ b/examples/widgets/dialogs/extension/extension.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = finddialog.h
SOURCES = finddialog.cpp \
main.cpp
@@ -6,5 +8,4 @@ SOURCES = finddialog.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/extension
INSTALLS += target
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/dialogs/findfiles/findfiles.pro b/examples/widgets/dialogs/findfiles/findfiles.pro
index f02ec69e4c..2dd058ac5c 100644
--- a/examples/widgets/dialogs/findfiles/findfiles.pro
+++ b/examples/widgets/dialogs/findfiles/findfiles.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h
SOURCES = main.cpp \
window.cpp
@@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/findfiles
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/dialogs/licensewizard/licensewizard.pro b/examples/widgets/dialogs/licensewizard/licensewizard.pro
index 4bcfdad384..8a4b251737 100644
--- a/examples/widgets/dialogs/licensewizard/licensewizard.pro
+++ b/examples/widgets/dialogs/licensewizard/licensewizard.pro
@@ -1,3 +1,5 @@
+QT += widgets printsupport
+
HEADERS = licensewizard.h
SOURCES = licensewizard.cpp \
main.cpp
@@ -7,5 +9,4 @@ RESOURCES = licensewizard.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/licensewizard
INSTALLS += target
-QT += widgets printsupport
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/dialogs/sipdialog/sipdialog.pro b/examples/widgets/dialogs/sipdialog/sipdialog.pro
index 5e24335e8c..a7c82a0ebc 100644
--- a/examples/widgets/dialogs/sipdialog/sipdialog.pro
+++ b/examples/widgets/dialogs/sipdialog/sipdialog.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = dialog.h
SOURCES = main.cpp \
dialog.cpp
@@ -8,6 +10,4 @@ INSTALLS += target
wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/dialogs/standarddialogs/standarddialogs.pro b/examples/widgets/dialogs/standarddialogs/standarddialogs.pro
index 89d0ad9a39..12a814cb69 100644
--- a/examples/widgets/dialogs/standarddialogs/standarddialogs.pro
+++ b/examples/widgets/dialogs/standarddialogs/standarddialogs.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = dialog.h
SOURCES = dialog.cpp \
main.cpp
@@ -7,5 +9,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/standarddialogs
INSTALLS += target
wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
-
-QT += widgets
diff --git a/examples/widgets/dialogs/tabdialog/tabdialog.pro b/examples/widgets/dialogs/tabdialog/tabdialog.pro
index 656c661844..c282505ac1 100644
--- a/examples/widgets/dialogs/tabdialog/tabdialog.pro
+++ b/examples/widgets/dialogs/tabdialog/tabdialog.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = tabdialog.h
SOURCES = main.cpp \
tabdialog.cpp
@@ -7,4 +9,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/tabdialog
INSTALLS += target
wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
-QT += widgets
diff --git a/examples/widgets/dialogs/trivialwizard/trivialwizard.pro b/examples/widgets/dialogs/trivialwizard/trivialwizard.pro
index 63831e8576..d85826132c 100644
--- a/examples/widgets/dialogs/trivialwizard/trivialwizard.pro
+++ b/examples/widgets/dialogs/trivialwizard/trivialwizard.pro
@@ -1,8 +1,9 @@
+QT += widgets
+
SOURCES = trivialwizard.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/trivialwizard
INSTALLS += target
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/draganddrop/draggableicons/draggableicons.pro b/examples/widgets/draganddrop/draggableicons/draggableicons.pro
index 194814a8c8..f87ec4ad60 100644
--- a/examples/widgets/draganddrop/draggableicons/draggableicons.pro
+++ b/examples/widgets/draganddrop/draggableicons/draggableicons.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = dragwidget.h
RESOURCES = draggableicons.qrc
SOURCES = dragwidget.cpp \
@@ -6,5 +8,3 @@ SOURCES = dragwidget.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/draggableicons
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/draganddrop/draggabletext/draggabletext.pro b/examples/widgets/draganddrop/draggabletext/draggabletext.pro
index 1eb579a2bd..2815be1613 100644
--- a/examples/widgets/draganddrop/draggabletext/draggabletext.pro
+++ b/examples/widgets/draganddrop/draggabletext/draggabletext.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = draglabel.h \
dragwidget.h
RESOURCES = draggabletext.qrc
@@ -8,6 +10,3 @@ SOURCES = draglabel.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/draggabletext
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/draganddrop/dropsite/dropsite.pro b/examples/widgets/draganddrop/dropsite/dropsite.pro
index 008030be85..9496cc4940 100644
--- a/examples/widgets/draganddrop/dropsite/dropsite.pro
+++ b/examples/widgets/draganddrop/dropsite/dropsite.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = droparea.h \
dropsitewindow.h
SOURCES = droparea.cpp \
@@ -8,5 +10,4 @@ SOURCES = droparea.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/dropsite
INSTALLS += target
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.pro b/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.pro
index 350dee6561..2c3165d1c5 100644
--- a/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.pro
+++ b/examples/widgets/draganddrop/fridgemagnets/fridgemagnets.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = draglabel.h \
dragwidget.h
RESOURCES = fridgemagnets.qrc
@@ -8,6 +10,3 @@ SOURCES = draglabel.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/fridgemagnets
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/draganddrop/puzzle/puzzle.pro b/examples/widgets/draganddrop/puzzle/puzzle.pro
index 4d85778073..95008fc29b 100644
--- a/examples/widgets/draganddrop/puzzle/puzzle.pro
+++ b/examples/widgets/draganddrop/puzzle/puzzle.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h \
pieceslist.h \
puzzlewidget.h
@@ -18,4 +20,3 @@ wince*: {
addFile.path = .
DEPLOYMENT += addFile
}
-QT += widgets
diff --git a/examples/widgets/effects/blurpicker/blurpicker.pro b/examples/widgets/effects/blurpicker/blurpicker.pro
index 1d232190ac..c570ac3b98 100644
--- a/examples/widgets/effects/blurpicker/blurpicker.pro
+++ b/examples/widgets/effects/blurpicker/blurpicker.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES += main.cpp blurpicker.cpp blureffect.cpp
HEADERS += blurpicker.h blureffect.h
RESOURCES += blurpicker.qrc
@@ -5,5 +7,3 @@ RESOURCES += blurpicker.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/effects/blurpicker
INSTALLS += target
-QT += widgets
-
diff --git a/examples/widgets/effects/fademessage/fademessage.pro b/examples/widgets/effects/fademessage/fademessage.pro
index ff860af4f1..727181e1a1 100644
--- a/examples/widgets/effects/fademessage/fademessage.pro
+++ b/examples/widgets/effects/fademessage/fademessage.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES += main.cpp fademessage.cpp
HEADERS += fademessage.h
RESOURCES += fademessage.qrc
@@ -6,5 +8,4 @@ RESOURCES += fademessage.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/effects/fademessage
INSTALLS += target
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/effects/lighting/lighting.pro b/examples/widgets/effects/lighting/lighting.pro
index 5450b62093..0a3b397de5 100644
--- a/examples/widgets/effects/lighting/lighting.pro
+++ b/examples/widgets/effects/lighting/lighting.pro
@@ -1,9 +1,8 @@
+QT += widgets
+
SOURCES += main.cpp lighting.cpp
HEADERS += lighting.h
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/effects/lighting
INSTALLS += target
-QT += widgets
-
-
diff --git a/examples/widgets/graphicsview/anchorlayout/anchorlayout.pro b/examples/widgets/graphicsview/anchorlayout/anchorlayout.pro
index bc396226c8..fbfeaac049 100644
--- a/examples/widgets/graphicsview/anchorlayout/anchorlayout.pro
+++ b/examples/widgets/graphicsview/anchorlayout/anchorlayout.pro
@@ -1,11 +1,11 @@
+TARGET = anchorlayout
+
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/anchorlayout
INSTALLS += target
-TARGET = anchorlayout
-QT += widgets
-
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro b/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro
index 59abd2b405..46fce9b97a 100644
--- a/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/basicgraphicslayouts.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = layoutitem.h \
window.h
SOURCES = layoutitem.cpp \
@@ -8,5 +10,3 @@ RESOURCES = basicgraphicslayouts.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/basicgraphicslayouts
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/graphicsview/collidingmice/collidingmice.pro b/examples/widgets/graphicsview/collidingmice/collidingmice.pro
index 0337b6da4a..c96e3dad79 100644
--- a/examples/widgets/graphicsview/collidingmice/collidingmice.pro
+++ b/examples/widgets/graphicsview/collidingmice/collidingmice.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS += \
mouse.h
SOURCES += \
@@ -10,6 +12,3 @@ RESOURCES += \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/collidingmice
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/graphicsview/diagramscene/diagramscene.pro b/examples/widgets/graphicsview/diagramscene/diagramscene.pro
index ac70e7af17..0c769a0f74 100644
--- a/examples/widgets/graphicsview/diagramscene/diagramscene.pro
+++ b/examples/widgets/graphicsview/diagramscene/diagramscene.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h \
diagramitem.h \
diagramscene.h \
@@ -16,6 +18,4 @@ RESOURCES = diagramscene.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/diagramscene
INSTALLS += target
-
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.pro b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.pro
index 4f8cebc755..8e4197c965 100644
--- a/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.pro
+++ b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS += \
coloritem.h \
robot.h
@@ -15,6 +17,4 @@ RESOURCES += \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/dragdroprobot
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/graphicsview/elasticnodes/elasticnodes.pro b/examples/widgets/graphicsview/elasticnodes/elasticnodes.pro
index 71ac21ffe9..419fdad617 100644
--- a/examples/widgets/graphicsview/elasticnodes/elasticnodes.pro
+++ b/examples/widgets/graphicsview/elasticnodes/elasticnodes.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS += \
edge.h \
node.h \
@@ -12,5 +14,3 @@ SOURCES += \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/elasticnodes
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.pro b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.pro
index dd01312788..993a5f22b7 100644
--- a/examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.pro
+++ b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialogs.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES += main.cpp
SOURCES += customproxy.cpp embeddeddialog.cpp
HEADERS += customproxy.h embeddeddialog.h
@@ -13,5 +15,3 @@ build_all:!build_pass {
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/embeddeddialogs
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.pro b/examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.pro
index c8c992adbe..59e37ff64f 100644
--- a/examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.pro
+++ b/examples/widgets/graphicsview/simpleanchorlayout/simpleanchorlayout.pro
@@ -1,10 +1,11 @@
+TARGET = simpleanchorlayout
+
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/simpleanchorlayout
INSTALLS += target
-TARGET = simpleanchorlayout
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/itemviews/addressbook/addressbook.pro b/examples/widgets/itemviews/addressbook/addressbook.pro
index 0d421cb3e3..5e2f1bcbbc 100644
--- a/examples/widgets/itemviews/addressbook/addressbook.pro
+++ b/examples/widgets/itemviews/addressbook/addressbook.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = adddialog.cpp \
addresswidget.cpp \
main.cpp \
@@ -13,5 +15,3 @@ HEADERS = adddialog.h \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/addressbook
INSTALLS += target
-QT += widgets
-
diff --git a/examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro b/examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro
index 7390cec23f..2469a4ef20 100644
--- a/examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro
+++ b/examples/widgets/itemviews/basicsortfiltermodel/basicsortfiltermodel.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h
SOURCES = main.cpp \
window.cpp
@@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/basicsortfiltermodel
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/itemviews/chart/chart.pro b/examples/widgets/itemviews/chart/chart.pro
index 927c469e88..caa28276bc 100644
--- a/examples/widgets/itemviews/chart/chart.pro
+++ b/examples/widgets/itemviews/chart/chart.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h \
pieview.h
RESOURCES = chart.qrc
@@ -9,6 +11,3 @@ unix:!mac:!vxworks:!integrity:LIBS+= -lm
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/chart
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.pro b/examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.pro
index 4c16a6fbc1..82cb264ddd 100644
--- a/examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.pro
+++ b/examples/widgets/itemviews/coloreditorfactory/coloreditorfactory.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = colorlisteditor.h \
window.h
SOURCES = colorlisteditor.cpp \
@@ -7,6 +9,3 @@ SOURCES = colorlisteditor.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/coloreditorfactory
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.pro b/examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.pro
index a093f88e88..37f82fa5ae 100644
--- a/examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.pro
+++ b/examples/widgets/itemviews/combowidgetmapper/combowidgetmapper.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h
SOURCES = main.cpp \
window.cpp
@@ -5,5 +7,4 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/combowidgetmapper
INSTALLS += target
-QT += widgets
diff --git a/examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.pro b/examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.pro
index 488a755b9d..b722e606d3 100644
--- a/examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.pro
+++ b/examples/widgets/itemviews/customsortfiltermodel/customsortfiltermodel.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mysortfilterproxymodel.h \
window.h
SOURCES = main.cpp \
@@ -7,5 +9,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/customsortfiltermodel
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/itemviews/dirview/dirview.pro b/examples/widgets/itemviews/dirview/dirview.pro
index 0c1cd92a58..511ec0ed98 100644
--- a/examples/widgets/itemviews/dirview/dirview.pro
+++ b/examples/widgets/itemviews/dirview/dirview.pro
@@ -1,7 +1,7 @@
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/dirview
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/itemviews/editabletreemodel/editabletreemodel.pro b/examples/widgets/itemviews/editabletreemodel/editabletreemodel.pro
index a83b6fc5bf..a6c1e5563f 100644
--- a/examples/widgets/itemviews/editabletreemodel/editabletreemodel.pro
+++ b/examples/widgets/itemviews/editabletreemodel/editabletreemodel.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
FORMS = mainwindow.ui
HEADERS = mainwindow.h \
treeitem.h \
@@ -11,5 +13,3 @@ SOURCES = mainwindow.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/editabletreemodel
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/itemviews/fetchmore/fetchmore.pro b/examples/widgets/itemviews/fetchmore/fetchmore.pro
index 67006de9c7..eb4275da19 100644
--- a/examples/widgets/itemviews/fetchmore/fetchmore.pro
+++ b/examples/widgets/itemviews/fetchmore/fetchmore.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = filelistmodel.h \
window.h
SOURCES = filelistmodel.cpp \
@@ -7,5 +9,3 @@ SOURCES = filelistmodel.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/fetchmore
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/itemviews/frozencolumn/frozencolumn.pro b/examples/widgets/itemviews/frozencolumn/frozencolumn.pro
index 00247b71c7..717ba40a9d 100644
--- a/examples/widgets/itemviews/frozencolumn/frozencolumn.pro
+++ b/examples/widgets/itemviews/frozencolumn/frozencolumn.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS += freezetablewidget.h
SOURCES += main.cpp freezetablewidget.cpp
RESOURCES += grades.qrc
@@ -5,5 +7,4 @@ RESOURCES += grades.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/frozencolumn
INSTALLS += target
-QT += widgets
diff --git a/examples/widgets/itemviews/interview/interview.pro b/examples/widgets/itemviews/interview/interview.pro
index a61d77613c..0e480e939c 100644
--- a/examples/widgets/itemviews/interview/interview.pro
+++ b/examples/widgets/itemviews/interview/interview.pro
@@ -1,4 +1,5 @@
TEMPLATE = app
+QT += widgets
HEADERS += model.h
SOURCES += model.cpp main.cpp
@@ -12,5 +13,3 @@ build_all:!build_pass {
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/interview
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/itemviews/pixelator/pixelator.pro b/examples/widgets/itemviews/pixelator/pixelator.pro
index 37e54f937a..b844e7c3a4 100644
--- a/examples/widgets/itemviews/pixelator/pixelator.pro
+++ b/examples/widgets/itemviews/pixelator/pixelator.pro
@@ -1,3 +1,6 @@
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
+
HEADERS = imagemodel.h \
mainwindow.h \
pixeldelegate.h
@@ -10,6 +13,3 @@ RESOURCES += images.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/pixelator
INSTALLS += target
-
-QT += widgets
-!isEmpty(QT.printsupport.name): QT += printsupport
diff --git a/examples/widgets/itemviews/puzzle/puzzle.pro b/examples/widgets/itemviews/puzzle/puzzle.pro
index a05ad83f79..a5379293ff 100644
--- a/examples/widgets/itemviews/puzzle/puzzle.pro
+++ b/examples/widgets/itemviews/puzzle/puzzle.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h \
piecesmodel.h \
puzzlewidget.h
@@ -15,6 +17,3 @@ INSTALLS += target
wince* {
DEPLOYMENT_PLUGIN += qjpeg qgif
}
-
-QT += widgets
-
diff --git a/examples/widgets/itemviews/simpletreemodel/simpletreemodel.pro b/examples/widgets/itemviews/simpletreemodel/simpletreemodel.pro
index 674b8e8c68..82484c9971 100644
--- a/examples/widgets/itemviews/simpletreemodel/simpletreemodel.pro
+++ b/examples/widgets/itemviews/simpletreemodel/simpletreemodel.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = treeitem.h \
treemodel.h
RESOURCES = simpletreemodel.qrc
@@ -8,5 +10,3 @@ SOURCES = treeitem.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/simpletreemodel
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.pro b/examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.pro
index c19cb0eef8..1d5cca3f01 100644
--- a/examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.pro
+++ b/examples/widgets/itemviews/simplewidgetmapper/simplewidgetmapper.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h
SOURCES = main.cpp \
window.cpp
@@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/simplewidgetmapper
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.pro b/examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.pro
index c156a4f425..92f6b9d712 100644
--- a/examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.pro
+++ b/examples/widgets/itemviews/spinboxdelegate/spinboxdelegate.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = delegate.h
SOURCES = delegate.cpp \
main.cpp
@@ -6,6 +8,4 @@ SOURCES = delegate.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/spinboxdelegate
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/itemviews/stardelegate/stardelegate.pro b/examples/widgets/itemviews/stardelegate/stardelegate.pro
index 13c260d268..fefb8b5b95 100644
--- a/examples/widgets/itemviews/stardelegate/stardelegate.pro
+++ b/examples/widgets/itemviews/stardelegate/stardelegate.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = stardelegate.h \
stareditor.h \
starrating.h
@@ -10,6 +12,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/stardelegate
INSTALLS += target
-
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/layouts/basiclayouts/basiclayouts.pro b/examples/widgets/layouts/basiclayouts/basiclayouts.pro
index cfa8594516..bc53b27782 100644
--- a/examples/widgets/layouts/basiclayouts/basiclayouts.pro
+++ b/examples/widgets/layouts/basiclayouts/basiclayouts.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = dialog.h
SOURCES = dialog.cpp \
main.cpp
@@ -6,6 +8,4 @@ SOURCES = dialog.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/basiclayouts
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/layouts/borderlayout/borderlayout.pro b/examples/widgets/layouts/borderlayout/borderlayout.pro
index 2b7d55919a..53c9647bd7 100644
--- a/examples/widgets/layouts/borderlayout/borderlayout.pro
+++ b/examples/widgets/layouts/borderlayout/borderlayout.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = borderlayout.h \
window.h
SOURCES = borderlayout.cpp \
@@ -7,5 +9,3 @@ SOURCES = borderlayout.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/borderlayout
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro b/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro
index 293137c426..8424799ca3 100644
--- a/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro
+++ b/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = dialog.h
SOURCES = dialog.cpp \
main.cpp
@@ -6,6 +8,4 @@ SOURCES = dialog.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/dynamiclayouts
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/layouts/flowlayout/flowlayout.pro b/examples/widgets/layouts/flowlayout/flowlayout.pro
index bd977f2a0e..a0cfd409bb 100644
--- a/examples/widgets/layouts/flowlayout/flowlayout.pro
+++ b/examples/widgets/layouts/flowlayout/flowlayout.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = flowlayout.h \
window.h
SOURCES = flowlayout.cpp \
@@ -7,5 +9,3 @@ SOURCES = flowlayout.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/flowlayout
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/mainwindows/application/application.pro b/examples/widgets/mainwindows/application/application.pro
index f202a60979..652cc73485 100644
--- a/examples/widgets/mainwindows/application/application.pro
+++ b/examples/widgets/mainwindows/application/application.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h
SOURCES = main.cpp \
mainwindow.cpp
@@ -9,6 +11,4 @@ RESOURCES = application.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/application
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/mainwindows/dockwidgets/dockwidgets.pro b/examples/widgets/mainwindows/dockwidgets/dockwidgets.pro
index ec3a5813e1..4bccf49399 100644
--- a/examples/widgets/mainwindows/dockwidgets/dockwidgets.pro
+++ b/examples/widgets/mainwindows/dockwidgets/dockwidgets.pro
@@ -1,3 +1,6 @@
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
+
HEADERS = mainwindow.h
SOURCES = main.cpp \
mainwindow.cpp
@@ -7,7 +10,4 @@ RESOURCES = dockwidgets.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/dockwidgets
INSTALLS += target
-QT += widgets
-!isEmpty(QT.printsupport.name): QT += printsupport
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/mainwindows/mainwindow/mainwindow.pro b/examples/widgets/mainwindows/mainwindow/mainwindow.pro
index 2bef5f0b71..bf92d0e3ca 100644
--- a/examples/widgets/mainwindows/mainwindow/mainwindow.pro
+++ b/examples/widgets/mainwindows/mainwindow/mainwindow.pro
@@ -1,4 +1,6 @@
TEMPLATE = app
+QT += widgets
+
HEADERS += colorswatch.h mainwindow.h toolbar.h
SOURCES += colorswatch.cpp mainwindow.cpp toolbar.cpp main.cpp
build_all:!build_pass {
@@ -11,5 +13,3 @@ RESOURCES += mainwindow.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mainwindow
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/mainwindows/mdi/mdi.pro b/examples/widgets/mainwindows/mdi/mdi.pro
index 786bbd3569..9f8ed1184a 100644
--- a/examples/widgets/mainwindows/mdi/mdi.pro
+++ b/examples/widgets/mainwindows/mdi/mdi.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h \
mdichild.h
SOURCES = main.cpp \
@@ -9,6 +11,4 @@ RESOURCES = mdi.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mdi
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/mainwindows/menus/menus.pro b/examples/widgets/mainwindows/menus/menus.pro
index 1ac5df4a3b..9be318759c 100644
--- a/examples/widgets/mainwindows/menus/menus.pro
+++ b/examples/widgets/mainwindows/menus/menus.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h
SOURCES = mainwindow.cpp \
main.cpp
@@ -5,5 +7,3 @@ SOURCES = mainwindow.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/menus
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/mainwindows/recentfiles/recentfiles.pro b/examples/widgets/mainwindows/recentfiles/recentfiles.pro
index 4ab5a6820e..898ebd7842 100644
--- a/examples/widgets/mainwindows/recentfiles/recentfiles.pro
+++ b/examples/widgets/mainwindows/recentfiles/recentfiles.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h
SOURCES = main.cpp \
mainwindow.cpp
@@ -6,6 +8,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/recentfiles
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/mainwindows/sdi/sdi.pro b/examples/widgets/mainwindows/sdi/sdi.pro
index 30ae4f5f3d..7d46b327e7 100644
--- a/examples/widgets/mainwindows/sdi/sdi.pro
+++ b/examples/widgets/mainwindows/sdi/sdi.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h
SOURCES = main.cpp \
mainwindow.cpp
@@ -7,6 +9,4 @@ RESOURCES = sdi.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/sdi
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/painting/basicdrawing/basicdrawing.pro b/examples/widgets/painting/basicdrawing/basicdrawing.pro
index 52ee0d4402..a7b3cff9cd 100644
--- a/examples/widgets/painting/basicdrawing/basicdrawing.pro
+++ b/examples/widgets/painting/basicdrawing/basicdrawing.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = renderarea.h \
window.h
SOURCES = main.cpp \
@@ -8,5 +10,3 @@ RESOURCES = basicdrawing.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/basicdrawing
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/painting/concentriccircles/concentriccircles.pro b/examples/widgets/painting/concentriccircles/concentriccircles.pro
index 9690465d46..844c01a9c2 100644
--- a/examples/widgets/painting/concentriccircles/concentriccircles.pro
+++ b/examples/widgets/painting/concentriccircles/concentriccircles.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = circlewidget.h \
window.h
SOURCES = circlewidget.cpp \
@@ -7,6 +9,3 @@ SOURCES = circlewidget.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/concentriccircles
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/painting/fontsampler/fontsampler.pro b/examples/widgets/painting/fontsampler/fontsampler.pro
index c32fc40572..8325da0175 100644
--- a/examples/widgets/painting/fontsampler/fontsampler.pro
+++ b/examples/widgets/painting/fontsampler/fontsampler.pro
@@ -1,3 +1,6 @@
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
+
FORMS = mainwindowbase.ui
HEADERS = mainwindow.h
SOURCES = main.cpp \
@@ -6,6 +9,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/fontsampler
INSTALLS += target
-
-QT += widgets
-!isEmpty(QT.printsupport.name): QT += printsupport
diff --git a/examples/widgets/painting/imagecomposition/imagecomposition.pro b/examples/widgets/painting/imagecomposition/imagecomposition.pro
index ce23c601f5..42c70471c1 100644
--- a/examples/widgets/painting/imagecomposition/imagecomposition.pro
+++ b/examples/widgets/painting/imagecomposition/imagecomposition.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = imagecomposer.h
SOURCES = imagecomposer.cpp \
main.cpp
@@ -6,6 +8,3 @@ RESOURCES = imagecomposition.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/imagecomposition
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/painting/painterpaths/painterpaths.pro b/examples/widgets/painting/painterpaths/painterpaths.pro
index 560e84a267..2d2db30739 100644
--- a/examples/widgets/painting/painterpaths/painterpaths.pro
+++ b/examples/widgets/painting/painterpaths/painterpaths.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = renderarea.h \
window.h
SOURCES = main.cpp \
@@ -8,6 +10,3 @@ unix:!mac:!vxworks:!integrity:LIBS += -lm
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/painterpaths
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/painting/shared/shared.pro b/examples/widgets/painting/shared/shared.pro
index 2a71c7d487..42b474a946 100644
--- a/examples/widgets/painting/shared/shared.pro
+++ b/examples/widgets/painting/shared/shared.pro
@@ -3,15 +3,15 @@ CONFIG += static
contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
DEFINES += QT_OPENGL_SUPPORT
- QT += opengl widgets
+ QT += opengl
}
+QT += widgets
build_all:!build_pass {
CONFIG -= build_all
CONFIG += release
}
TARGET = demo_shared
-QT += widgets
SOURCES += \
arthurstyle.cpp\
diff --git a/examples/widgets/painting/transformations/transformations.pro b/examples/widgets/painting/transformations/transformations.pro
index 72f42046db..3f5398a228 100644
--- a/examples/widgets/painting/transformations/transformations.pro
+++ b/examples/widgets/painting/transformations/transformations.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = renderarea.h \
window.h
SOURCES = main.cpp \
@@ -7,5 +9,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/transformations
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/richtext/calendar/calendar.pro b/examples/widgets/richtext/calendar/calendar.pro
index d98b08a368..5adb99aac3 100644
--- a/examples/widgets/richtext/calendar/calendar.pro
+++ b/examples/widgets/richtext/calendar/calendar.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h
SOURCES = main.cpp \
mainwindow.cpp
@@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/calendar
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/richtext/orderform/orderform.pro b/examples/widgets/richtext/orderform/orderform.pro
index 72ba3a1d25..1477d6ecab 100644
--- a/examples/widgets/richtext/orderform/orderform.pro
+++ b/examples/widgets/richtext/orderform/orderform.pro
@@ -1,3 +1,6 @@
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
+
HEADERS = detailsdialog.h \
mainwindow.h
SOURCES = detailsdialog.cpp \
@@ -7,6 +10,3 @@ SOURCES = detailsdialog.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/orderform
INSTALLS += target
-
-QT += widgets
-!isEmpty(QT.printsupport.name): QT += printsupport
diff --git a/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.pro b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.pro
index e968c1168a..640f36f9b8 100644
--- a/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.pro
+++ b/examples/widgets/richtext/syntaxhighlighter/syntaxhighlighter.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = highlighter.h \
mainwindow.h
SOURCES = highlighter.cpp \
@@ -14,5 +16,3 @@ wince*: {
addFiles.path = .
DEPLOYMENT += addFiles
}
-QT += widgets
-
diff --git a/examples/widgets/richtext/textedit/textedit.pro b/examples/widgets/richtext/textedit/textedit.pro
index fb99e0ee2b..36f860c5a8 100644
--- a/examples/widgets/richtext/textedit/textedit.pro
+++ b/examples/widgets/richtext/textedit/textedit.pro
@@ -1,3 +1,6 @@
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
+
TEMPLATE = app
TARGET = textedit
@@ -16,6 +19,3 @@ EXAMPLE_FILES = textedit.qdoc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/textedit
INSTALLS += target
-
-QT += widgets
-!isEmpty(QT.printsupport.name): QT += printsupport
diff --git a/examples/widgets/scroller/graphicsview/graphicsview.pro b/examples/widgets/scroller/graphicsview/graphicsview.pro
index 07ad81922e..39bdb2bc2c 100644
--- a/examples/widgets/scroller/graphicsview/graphicsview.pro
+++ b/examples/widgets/scroller/graphicsview/graphicsview.pro
@@ -1,7 +1,8 @@
+QT += widgets
+
TEMPLATE = app
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/scroller/graphicsview
INSTALLS += target
-QT += widgets
diff --git a/examples/widgets/statemachine/eventtransitions/eventtransitions.pro b/examples/widgets/statemachine/eventtransitions/eventtransitions.pro
index 7b8ef26eb0..63c2eab5a9 100644
--- a/examples/widgets/statemachine/eventtransitions/eventtransitions.pro
+++ b/examples/widgets/statemachine/eventtransitions/eventtransitions.pro
@@ -1,9 +1,9 @@
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/statemachine/eventtransitions
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/statemachine/rogue/rogue.pro b/examples/widgets/statemachine/rogue/rogue.pro
index d1f4f5d972..cf9657c7d6 100644
--- a/examples/widgets/statemachine/rogue/rogue.pro
+++ b/examples/widgets/statemachine/rogue/rogue.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h \
movementtransition.h
SOURCES = main.cpp \
@@ -6,6 +8,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/statemachine/rogue
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/statemachine/trafficlight/trafficlight.pro b/examples/widgets/statemachine/trafficlight/trafficlight.pro
index 14d10f5a10..85d9cda504 100644
--- a/examples/widgets/statemachine/trafficlight/trafficlight.pro
+++ b/examples/widgets/statemachine/trafficlight/trafficlight.pro
@@ -1,8 +1,9 @@
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/statemachine/trafficlight
INSTALLS += target
-QT += widgets
diff --git a/examples/widgets/statemachine/twowaybutton/twowaybutton.pro b/examples/widgets/statemachine/twowaybutton/twowaybutton.pro
index 9562df5919..22d19308ae 100644
--- a/examples/widgets/statemachine/twowaybutton/twowaybutton.pro
+++ b/examples/widgets/statemachine/twowaybutton/twowaybutton.pro
@@ -1,8 +1,9 @@
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/statemachine/twowaybutton
INSTALLS += target
-QT += widgets
diff --git a/examples/widgets/tools/codecs/codecs.pro b/examples/widgets/tools/codecs/codecs.pro
index 410411d870..7b2baa3ec8 100644
--- a/examples/widgets/tools/codecs/codecs.pro
+++ b/examples/widgets/tools/codecs/codecs.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS += mainwindow.h \
previewform.h
SOURCES += main.cpp \
@@ -10,6 +12,4 @@ EXAMPLE_FILES = encodedfiles
target.path = $$[QT_INSTALL_EXAMPLES]/tools/codecs
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tools/completer/completer.pro b/examples/widgets/tools/completer/completer.pro
index c0fcf8d1fb..b47b7a9057 100644
--- a/examples/widgets/tools/completer/completer.pro
+++ b/examples/widgets/tools/completer/completer.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = fsmodel.h \
mainwindow.h
SOURCES = fsmodel.cpp \
@@ -9,6 +11,4 @@ RESOURCES = completer.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/tools/completer
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tools/customcompleter/customcompleter.pro b/examples/widgets/tools/customcompleter/customcompleter.pro
index 24d973cf82..b8ccc83744 100644
--- a/examples/widgets/tools/customcompleter/customcompleter.pro
+++ b/examples/widgets/tools/customcompleter/customcompleter.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h \
textedit.h
SOURCES = main.cpp \
@@ -9,6 +11,4 @@ RESOURCES = customcompleter.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/tools/customcompleter
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tools/echoplugin/echowindow/echowindow.pro b/examples/widgets/tools/echoplugin/echowindow/echowindow.pro
index cd91693ec0..c8dc000678 100644
--- a/examples/widgets/tools/echoplugin/echowindow/echowindow.pro
+++ b/examples/widgets/tools/echoplugin/echowindow/echowindow.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = echowindow.h \
echointerface.h
SOURCES = echowindow.cpp \
@@ -16,6 +18,4 @@ win32 {
target.path = $$[QT_INSTALL_EXAMPLES]/tools/echoplugin
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tools/echoplugin/plugin/plugin.pro b/examples/widgets/tools/echoplugin/plugin/plugin.pro
index a586130b76..235358d52c 100644
--- a/examples/widgets/tools/echoplugin/plugin/plugin.pro
+++ b/examples/widgets/tools/echoplugin/plugin/plugin.pro
@@ -1,6 +1,7 @@
#! [0]
TEMPLATE = lib
CONFIG += plugin
+QT += widgets
INCLUDEPATH += ../echowindow
HEADERS = echoplugin.h
SOURCES = echoplugin.cpp
@@ -13,5 +14,3 @@ EXAMPLE_FILES = echoplugin.json
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/echoplugin/plugin
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/tools/i18n/i18n.pro b/examples/widgets/tools/i18n/i18n.pro
index 57514781eb..8095e44b3c 100644
--- a/examples/widgets/tools/i18n/i18n.pro
+++ b/examples/widgets/tools/i18n/i18n.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = languagechooser.h \
mainwindow.h
SOURCES = languagechooser.cpp \
@@ -23,6 +25,4 @@ TRANSLATIONS += translations/i18n_ar.ts \
target.path = $$[QT_INSTALL_EXAMPLES]/tools/i18n
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tools/plugandpaint/plugandpaint.pro b/examples/widgets/tools/plugandpaint/plugandpaint.pro
index ffa408df66..0b20f81a1f 100644
--- a/examples/widgets/tools/plugandpaint/plugandpaint.pro
+++ b/examples/widgets/tools/plugandpaint/plugandpaint.pro
@@ -1,4 +1,6 @@
#! [0]
+QT += widgets
+
HEADERS = interfaces.h \
mainwindow.h \
paintarea.h \
@@ -19,5 +21,3 @@ if(!debug_and_release|build_pass):CONFIG(debug, debug|release) {
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/plugandpaint
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/tools/plugandpaintplugins/basictools/basictools.pro b/examples/widgets/tools/plugandpaintplugins/basictools/basictools.pro
index 731034fb3c..aac2edce00 100644
--- a/examples/widgets/tools/plugandpaintplugins/basictools/basictools.pro
+++ b/examples/widgets/tools/plugandpaintplugins/basictools/basictools.pro
@@ -1,6 +1,7 @@
#! [0]
TEMPLATE = lib
CONFIG += plugin static
+QT += widgets
INCLUDEPATH += ../..
HEADERS = basictoolsplugin.h
SOURCES = basictoolsplugin.cpp
@@ -11,5 +12,3 @@ DESTDIR = ../../plugandpaint/plugins
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/plugandpaint/plugins
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/tools/plugandpaintplugins/extrafilters/extrafilters.pro b/examples/widgets/tools/plugandpaintplugins/extrafilters/extrafilters.pro
index 7a18e49dc1..3280f119cf 100644
--- a/examples/widgets/tools/plugandpaintplugins/extrafilters/extrafilters.pro
+++ b/examples/widgets/tools/plugandpaintplugins/extrafilters/extrafilters.pro
@@ -1,6 +1,7 @@
#! [0]
TEMPLATE = lib
CONFIG += plugin
+QT += widgets
INCLUDEPATH += ../..
HEADERS = extrafiltersplugin.h
SOURCES = extrafiltersplugin.cpp
@@ -11,5 +12,3 @@ DESTDIR = ../../plugandpaint/plugins
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/plugandpaint/plugins
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/tools/regexp/regexp.pro b/examples/widgets/tools/regexp/regexp.pro
index eead58807f..0d2a9a280c 100644
--- a/examples/widgets/tools/regexp/regexp.pro
+++ b/examples/widgets/tools/regexp/regexp.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = regexpdialog.h
SOURCES = regexpdialog.cpp \
main.cpp
@@ -6,6 +8,4 @@ SOURCES = regexpdialog.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/tools/regexp
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tools/settingseditor/settingseditor.pro b/examples/widgets/tools/settingseditor/settingseditor.pro
index 9d7c776067..69b8a04c92 100644
--- a/examples/widgets/tools/settingseditor/settingseditor.pro
+++ b/examples/widgets/tools/settingseditor/settingseditor.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = locationdialog.h \
mainwindow.h \
settingstree.h \
@@ -14,6 +16,4 @@ EXAMPLE_FILES = inifiles
target.path = $$[QT_INSTALL_EXAMPLES]/tools/settingseditor
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tools/styleplugin/plugin/plugin.pro b/examples/widgets/tools/styleplugin/plugin/plugin.pro
index 65a41087e6..605e196bd9 100644
--- a/examples/widgets/tools/styleplugin/plugin/plugin.pro
+++ b/examples/widgets/tools/styleplugin/plugin/plugin.pro
@@ -1,6 +1,7 @@
#! [0]
TEMPLATE = lib
CONFIG += plugin
+QT += widgets
HEADERS = simplestyle.h \
simplestyleplugin.h
SOURCES = simplestyle.cpp \
@@ -19,6 +20,3 @@ EXAMPLE_FILES += simplestyle.json
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/styleplugin/styles
INSTALLS += target
-
-
-QT += widgets
diff --git a/examples/widgets/tools/styleplugin/stylewindow/stylewindow.pro b/examples/widgets/tools/styleplugin/stylewindow/stylewindow.pro
index 3bfcf23bbb..12adce4872 100644
--- a/examples/widgets/tools/styleplugin/stylewindow/stylewindow.pro
+++ b/examples/widgets/tools/styleplugin/stylewindow/stylewindow.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = stylewindow.h
SOURCES = stylewindow.cpp \
main.cpp
@@ -13,5 +15,3 @@ win32 {
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/styleplugin
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/tools/treemodelcompleter/treemodelcompleter.pro b/examples/widgets/tools/treemodelcompleter/treemodelcompleter.pro
index 818f242b48..56e0cee210 100644
--- a/examples/widgets/tools/treemodelcompleter/treemodelcompleter.pro
+++ b/examples/widgets/tools/treemodelcompleter/treemodelcompleter.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = treemodelcompleter.h \
mainwindow.h
SOURCES = treemodelcompleter.cpp \
@@ -9,6 +11,4 @@ RESOURCES = treemodelcompleter.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/tools/treemodelcompleter
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tools/undo/undo.pro b/examples/widgets/tools/undo/undo.pro
index f3ac1256c0..5e0f1d7817 100644
--- a/examples/widgets/tools/undo/undo.pro
+++ b/examples/widgets/tools/undo/undo.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES += main.cpp mainwindow.cpp commands.cpp document.cpp
HEADERS += mainwindow.h commands.h document.h
FORMS += mainwindow.ui
@@ -12,5 +14,3 @@ RESOURCES += undo.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/undo
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/tools/undoframework/undoframework.pro b/examples/widgets/tools/undoframework/undoframework.pro
index a9a1b05f39..9cea99f105 100644
--- a/examples/widgets/tools/undoframework/undoframework.pro
+++ b/examples/widgets/tools/undoframework/undoframework.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = commands.h \
diagramitem.h \
diagramscene.h \
@@ -13,6 +15,4 @@ RESOURCES = undoframework.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/tools/undoframework
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook-fr/part1/part1.pro b/examples/widgets/tutorials/addressbook-fr/part1/part1.pro
index b82f294ed6..aa31f122b8 100644
--- a/examples/widgets/tutorials/addressbook-fr/part1/part1.pro
+++ b/examples/widgets/tutorials/addressbook-fr/part1/part1.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
main.cpp
HEADERS = addressbook.h
@@ -7,7 +9,5 @@ QMAKE_PROJECT_NAME = abfr_part1
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook-fr/part1
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook-fr/part2/part2.pro b/examples/widgets/tutorials/addressbook-fr/part2/part2.pro
index 1ebe545e85..bfcedda6f7 100644
--- a/examples/widgets/tutorials/addressbook-fr/part2/part2.pro
+++ b/examples/widgets/tutorials/addressbook-fr/part2/part2.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
main.cpp
HEADERS = addressbook.h
@@ -7,7 +9,5 @@ QMAKE_PROJECT_NAME = abfr_part2
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook-fr/part2
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook-fr/part3/part3.pro b/examples/widgets/tutorials/addressbook-fr/part3/part3.pro
index 04c8417cbe..0990cb5088 100644
--- a/examples/widgets/tutorials/addressbook-fr/part3/part3.pro
+++ b/examples/widgets/tutorials/addressbook-fr/part3/part3.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
main.cpp
HEADERS = addressbook.h
@@ -7,7 +9,5 @@ QMAKE_PROJECT_NAME = abfr_part3
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook-fr/part3
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook-fr/part4/part4.pro b/examples/widgets/tutorials/addressbook-fr/part4/part4.pro
index 02fdecf210..44ff4bdce9 100644
--- a/examples/widgets/tutorials/addressbook-fr/part4/part4.pro
+++ b/examples/widgets/tutorials/addressbook-fr/part4/part4.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
main.cpp
HEADERS = addressbook.h
@@ -7,7 +9,5 @@ QMAKE_PROJECT_NAME = abfr_part4
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook-fr/part4
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook-fr/part5/part5.pro b/examples/widgets/tutorials/addressbook-fr/part5/part5.pro
index 20b9549037..10638759a9 100644
--- a/examples/widgets/tutorials/addressbook-fr/part5/part5.pro
+++ b/examples/widgets/tutorials/addressbook-fr/part5/part5.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
finddialog.cpp \
main.cpp
@@ -9,7 +11,5 @@ QMAKE_PROJECT_NAME = abfr_part5
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook-fr/part5
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook-fr/part6/part6.pro b/examples/widgets/tutorials/addressbook-fr/part6/part6.pro
index 098daca36a..4c7638fd70 100644
--- a/examples/widgets/tutorials/addressbook-fr/part6/part6.pro
+++ b/examples/widgets/tutorials/addressbook-fr/part6/part6.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
finddialog.cpp \
main.cpp
@@ -9,7 +11,5 @@ QMAKE_PROJECT_NAME = abfr_part6
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook-fr/part6
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook-fr/part7/part7.pro b/examples/widgets/tutorials/addressbook-fr/part7/part7.pro
index 5c1dd33d06..6f56489979 100644
--- a/examples/widgets/tutorials/addressbook-fr/part7/part7.pro
+++ b/examples/widgets/tutorials/addressbook-fr/part7/part7.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
finddialog.cpp \
main.cpp
@@ -9,7 +11,5 @@ QMAKE_PROJECT_NAME = abfr_part7
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook-fr/part7
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook/part1/part1.pro b/examples/widgets/tutorials/addressbook/part1/part1.pro
index 82746da8e5..826ed1aa77 100644
--- a/examples/widgets/tutorials/addressbook/part1/part1.pro
+++ b/examples/widgets/tutorials/addressbook/part1/part1.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
main.cpp
HEADERS = addressbook.h
@@ -8,6 +10,4 @@ QMAKE_PROJECT_NAME = ab_part1
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook/part1
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook/part2/part2.pro b/examples/widgets/tutorials/addressbook/part2/part2.pro
index 439b9185a6..0ab172872a 100644
--- a/examples/widgets/tutorials/addressbook/part2/part2.pro
+++ b/examples/widgets/tutorials/addressbook/part2/part2.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
main.cpp
HEADERS = addressbook.h
@@ -8,6 +10,4 @@ QMAKE_PROJECT_NAME = ab_part2
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook/part2
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook/part3/part3.pro b/examples/widgets/tutorials/addressbook/part3/part3.pro
index fd32f00536..7863a22bf2 100644
--- a/examples/widgets/tutorials/addressbook/part3/part3.pro
+++ b/examples/widgets/tutorials/addressbook/part3/part3.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
main.cpp
HEADERS = addressbook.h
@@ -8,6 +10,4 @@ QMAKE_PROJECT_NAME = ab_part3
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook/part3
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook/part4/part4.pro b/examples/widgets/tutorials/addressbook/part4/part4.pro
index c5caaa87c1..d71328bb0e 100644
--- a/examples/widgets/tutorials/addressbook/part4/part4.pro
+++ b/examples/widgets/tutorials/addressbook/part4/part4.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
main.cpp
HEADERS = addressbook.h
@@ -8,6 +10,4 @@ QMAKE_PROJECT_NAME = ab_part4
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook/part4
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook/part5/part5.pro b/examples/widgets/tutorials/addressbook/part5/part5.pro
index e779ad5024..7530900f62 100644
--- a/examples/widgets/tutorials/addressbook/part5/part5.pro
+++ b/examples/widgets/tutorials/addressbook/part5/part5.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
finddialog.cpp \
main.cpp
@@ -10,6 +12,4 @@ QMAKE_PROJECT_NAME = ab_part5
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook/part5
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook/part6/part6.pro b/examples/widgets/tutorials/addressbook/part6/part6.pro
index dd652985ad..88b7147a3f 100644
--- a/examples/widgets/tutorials/addressbook/part6/part6.pro
+++ b/examples/widgets/tutorials/addressbook/part6/part6.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
finddialog.cpp \
main.cpp
@@ -10,6 +12,4 @@ QMAKE_PROJECT_NAME = ab_part6
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook/part6
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/addressbook/part7/part7.pro b/examples/widgets/tutorials/addressbook/part7/part7.pro
index d63690ee11..ef435222cd 100644
--- a/examples/widgets/tutorials/addressbook/part7/part7.pro
+++ b/examples/widgets/tutorials/addressbook/part7/part7.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = addressbook.cpp \
finddialog.cpp \
main.cpp
@@ -10,6 +12,4 @@ QMAKE_PROJECT_NAME = ab_part7
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/addressbook/part7
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/modelview/1_readonly/1_readonly.pro b/examples/widgets/tutorials/modelview/1_readonly/1_readonly.pro
index cf066c6b31..51fcbae64d 100644
--- a/examples/widgets/tutorials/modelview/1_readonly/1_readonly.pro
+++ b/examples/widgets/tutorials/modelview/1_readonly/1_readonly.pro
@@ -2,6 +2,8 @@ TARGET = mv_readonly
TEMPLATE = app
+QT += widgets
+
SOURCES += main.cpp \
mymodel.cpp
@@ -12,6 +14,4 @@ HEADERS += mymodel.h
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/modelview/1_readonly
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/modelview/2_formatting/2_formatting.pro b/examples/widgets/tutorials/modelview/2_formatting/2_formatting.pro
index 057196b7c6..d5d34d6f7f 100644
--- a/examples/widgets/tutorials/modelview/2_formatting/2_formatting.pro
+++ b/examples/widgets/tutorials/modelview/2_formatting/2_formatting.pro
@@ -2,6 +2,8 @@ TARGET = mv_formatting
TEMPLATE = app
+QT += widgets
+
SOURCES += main.cpp \
mymodel.cpp
@@ -11,6 +13,4 @@ HEADERS += mymodel.h
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/modelview/2_formatting
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/modelview/3_changingmodel/3_changingmodel.pro b/examples/widgets/tutorials/modelview/3_changingmodel/3_changingmodel.pro
index 92a1bbf4e5..0e7e587255 100644
--- a/examples/widgets/tutorials/modelview/3_changingmodel/3_changingmodel.pro
+++ b/examples/widgets/tutorials/modelview/3_changingmodel/3_changingmodel.pro
@@ -2,6 +2,8 @@ TARGET = mv_changingmodel
TEMPLATE = app
+QT += widgets
+
SOURCES += main.cpp \
mymodel.cpp
@@ -11,6 +13,4 @@ HEADERS += mymodel.h
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/modelview/3_changingmodel
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/modelview/4_headers/4_headers.pro b/examples/widgets/tutorials/modelview/4_headers/4_headers.pro
index 186ea888e0..53effe9b5b 100644
--- a/examples/widgets/tutorials/modelview/4_headers/4_headers.pro
+++ b/examples/widgets/tutorials/modelview/4_headers/4_headers.pro
@@ -2,6 +2,8 @@ TARGET = mv_headers
TEMPLATE = app
+QT += widgets
+
SOURCES += main.cpp \
mymodel.cpp
@@ -11,6 +13,4 @@ HEADERS += mymodel.h
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/modelview/4_headers
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/modelview/5_edit/5_edit.pro b/examples/widgets/tutorials/modelview/5_edit/5_edit.pro
index b4727580af..9a2c34f977 100644
--- a/examples/widgets/tutorials/modelview/5_edit/5_edit.pro
+++ b/examples/widgets/tutorials/modelview/5_edit/5_edit.pro
@@ -2,6 +2,8 @@ TARGET = mv_edit
TEMPLATE = app
+QT += widgets
+
SOURCES += main.cpp \
mainwindow.cpp \
mymodel.cpp
@@ -13,6 +15,4 @@ HEADERS += mainwindow.h \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/modelview/5_edit
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/modelview/6_treeview/6_treeview.pro b/examples/widgets/tutorials/modelview/6_treeview/6_treeview.pro
index af3208f9c8..4a874b205a 100644
--- a/examples/widgets/tutorials/modelview/6_treeview/6_treeview.pro
+++ b/examples/widgets/tutorials/modelview/6_treeview/6_treeview.pro
@@ -1,5 +1,6 @@
TARGET = mv_tree
TEMPLATE = app
+QT += widgets
SOURCES += main.cpp \
mainwindow.cpp
HEADERS += mainwindow.h
@@ -8,6 +9,4 @@ HEADERS += mainwindow.h
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/modelview/6_treeview
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/modelview/7_selections/7_selections.pro b/examples/widgets/tutorials/modelview/7_selections/7_selections.pro
index 8ab42e97ef..ef412f0aff 100644
--- a/examples/widgets/tutorials/modelview/7_selections/7_selections.pro
+++ b/examples/widgets/tutorials/modelview/7_selections/7_selections.pro
@@ -1,5 +1,6 @@
TARGET = mv_selections
TEMPLATE = app
+QT += widgets
SOURCES += main.cpp \
mainwindow.cpp
HEADERS += mainwindow.h
@@ -8,6 +9,4 @@ HEADERS += mainwindow.h
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/modelview/7_selections
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/threads/clock/clock.pro b/examples/widgets/tutorials/threads/clock/clock.pro
index 9d2687324b..041c02bea8 100644
--- a/examples/widgets/tutorials/threads/clock/clock.pro
+++ b/examples/widgets/tutorials/threads/clock/clock.pro
@@ -1,3 +1,4 @@
+QT += widgets
CONFIG += console
TEMPLATE = app
SOURCES += main.cpp \
@@ -7,6 +8,3 @@ HEADERS += clockthread.h
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/threads/clock
INSTALLS += target
-
-
-QT += widgets
diff --git a/examples/widgets/tutorials/threads/movedobject/movedobject.pro b/examples/widgets/tutorials/threads/movedobject/movedobject.pro
index 3bf40eb49c..b2ea7e5366 100644
--- a/examples/widgets/tutorials/threads/movedobject/movedobject.pro
+++ b/examples/widgets/tutorials/threads/movedobject/movedobject.pro
@@ -1,3 +1,4 @@
+QT += widgets
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
@@ -12,5 +13,3 @@ HEADERS += \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/threads/movedobject
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/tutorials/widgets/childwidget/childwidget.pro b/examples/widgets/tutorials/widgets/childwidget/childwidget.pro
index 4eeab61be5..a227a68593 100644
--- a/examples/widgets/tutorials/widgets/childwidget/childwidget.pro
+++ b/examples/widgets/tutorials/widgets/childwidget/childwidget.pro
@@ -1,9 +1,9 @@
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/widgets/childwidget
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/widgets/nestedlayouts/nestedlayouts.pro b/examples/widgets/tutorials/widgets/nestedlayouts/nestedlayouts.pro
index e362f16713..471a98121e 100644
--- a/examples/widgets/tutorials/widgets/nestedlayouts/nestedlayouts.pro
+++ b/examples/widgets/tutorials/widgets/nestedlayouts/nestedlayouts.pro
@@ -1,9 +1,9 @@
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/widgets/nestedlayouts
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/widgets/toplevel/toplevel.pro b/examples/widgets/tutorials/widgets/toplevel/toplevel.pro
index faa91eb0dd..80e2a03ca6 100644
--- a/examples/widgets/tutorials/widgets/toplevel/toplevel.pro
+++ b/examples/widgets/tutorials/widgets/toplevel/toplevel.pro
@@ -1,9 +1,9 @@
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/widgets/toplevel
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/tutorials/widgets/windowlayout/windowlayout.pro b/examples/widgets/tutorials/widgets/windowlayout/windowlayout.pro
index 6fd115591e..87eb7c58a4 100644
--- a/examples/widgets/tutorials/widgets/windowlayout/windowlayout.pro
+++ b/examples/widgets/tutorials/widgets/windowlayout/windowlayout.pro
@@ -1,9 +1,9 @@
+QT += widgets
+
SOURCES = main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/widgets/windowlayout
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/analogclock/analogclock.pro b/examples/widgets/widgets/analogclock/analogclock.pro
index 300c4f8ab4..1c6b736995 100644
--- a/examples/widgets/widgets/analogclock/analogclock.pro
+++ b/examples/widgets/widgets/analogclock/analogclock.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = analogclock.h
SOURCES = analogclock.cpp \
main.cpp
@@ -7,6 +9,3 @@ QMAKE_PROJECT_NAME = widgets_analogclock
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/analogclock
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/widgets/calculator/calculator.pro b/examples/widgets/widgets/calculator/calculator.pro
index 715d450003..5ee6928c7d 100644
--- a/examples/widgets/widgets/calculator/calculator.pro
+++ b/examples/widgets/widgets/calculator/calculator.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = button.h \
calculator.h
SOURCES = button.cpp \
@@ -7,6 +9,3 @@ SOURCES = button.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/calculator
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/widgets/calendarwidget/calendarwidget.pro b/examples/widgets/widgets/calendarwidget/calendarwidget.pro
index ad586f11f8..a60f10bf36 100644
--- a/examples/widgets/widgets/calendarwidget/calendarwidget.pro
+++ b/examples/widgets/widgets/calendarwidget/calendarwidget.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h
SOURCES = main.cpp \
window.cpp
@@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/calendarwidget
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/widgets/charactermap/charactermap.pro b/examples/widgets/widgets/charactermap/charactermap.pro
index 370338bf46..e9b6bb7c40 100644
--- a/examples/widgets/widgets/charactermap/charactermap.pro
+++ b/examples/widgets/widgets/charactermap/charactermap.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = characterwidget.h \
mainwindow.h
SOURCES = characterwidget.cpp \
@@ -8,6 +10,4 @@ SOURCES = characterwidget.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/charactermap
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/codeeditor/codeeditor.pro b/examples/widgets/widgets/codeeditor/codeeditor.pro
index 5af4e24322..5618160d17 100644
--- a/examples/widgets/widgets/codeeditor/codeeditor.pro
+++ b/examples/widgets/widgets/codeeditor/codeeditor.pro
@@ -1,9 +1,8 @@
+QT += widgets
+
HEADERS = codeeditor.h
SOURCES = main.cpp \
codeeditor.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/codeeditor
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/widgets/digitalclock/digitalclock.pro b/examples/widgets/widgets/digitalclock/digitalclock.pro
index 9ded97b48c..4e4bc0f557 100644
--- a/examples/widgets/widgets/digitalclock/digitalclock.pro
+++ b/examples/widgets/widgets/digitalclock/digitalclock.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = digitalclock.h
SOURCES = digitalclock.cpp \
main.cpp
@@ -5,5 +7,3 @@ SOURCES = digitalclock.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/digitalclock
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/widgets/groupbox/groupbox.pro b/examples/widgets/widgets/groupbox/groupbox.pro
index 579f0298c6..9167d26d6d 100644
--- a/examples/widgets/widgets/groupbox/groupbox.pro
+++ b/examples/widgets/widgets/groupbox/groupbox.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h
SOURCES = window.cpp \
main.cpp
@@ -6,6 +8,4 @@ SOURCES = window.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/groupbox
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/icons/icons.pro b/examples/widgets/widgets/icons/icons.pro
index 4227cedadd..7a5256bcac 100644
--- a/examples/widgets/widgets/icons/icons.pro
+++ b/examples/widgets/widgets/icons/icons.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = iconpreviewarea.h \
iconsizespinbox.h \
imagedelegate.h \
@@ -24,6 +26,5 @@ wince*: {
}
DEPLOYMENT += imageFiles
}
-QT += widgets
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/imageviewer/imageviewer.pro b/examples/widgets/widgets/imageviewer/imageviewer.pro
index 611848b093..3378db7fb6 100644
--- a/examples/widgets/widgets/imageviewer/imageviewer.pro
+++ b/examples/widgets/widgets/imageviewer/imageviewer.pro
@@ -1,3 +1,6 @@
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
+
HEADERS = imageviewer.h
SOURCES = imageviewer.cpp \
main.cpp
@@ -10,7 +13,5 @@ INSTALLS += target
wince*: {
DEPLOYMENT_PLUGIN += qjpeg qgif
}
-QT += widgets
-!isEmpty(QT.printsupport.name): QT += printsupport
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/lineedits/lineedits.pro b/examples/widgets/widgets/lineedits/lineedits.pro
index d8ac14102f..0ab994ea11 100644
--- a/examples/widgets/widgets/lineedits/lineedits.pro
+++ b/examples/widgets/widgets/lineedits/lineedits.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h
SOURCES = main.cpp \
window.cpp
@@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/lineedits
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/widgets/movie/movie.pro b/examples/widgets/widgets/movie/movie.pro
index d922423373..109e9f411d 100644
--- a/examples/widgets/widgets/movie/movie.pro
+++ b/examples/widgets/widgets/movie/movie.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = movieplayer.h
SOURCES = main.cpp \
movieplayer.cpp
@@ -15,6 +17,4 @@ wince*: {
DEPLOYMENT += addFiles
}
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/scribble/scribble.pro b/examples/widgets/widgets/scribble/scribble.pro
index 674dccff7e..8c35ba777f 100644
--- a/examples/widgets/widgets/scribble/scribble.pro
+++ b/examples/widgets/widgets/scribble/scribble.pro
@@ -1,3 +1,6 @@
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
+
HEADERS = mainwindow.h \
scribblearea.h
SOURCES = main.cpp \
@@ -7,6 +10,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/scribble
INSTALLS += target
-
-QT += widgets
-!isEmpty(QT.printsupport.name): QT += printsupport
diff --git a/examples/widgets/widgets/shapedclock/shapedclock.pro b/examples/widgets/widgets/shapedclock/shapedclock.pro
index b5cb9c9076..0fe7f59765 100644
--- a/examples/widgets/widgets/shapedclock/shapedclock.pro
+++ b/examples/widgets/widgets/shapedclock/shapedclock.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = shapedclock.h
SOURCES = shapedclock.cpp \
main.cpp
@@ -5,6 +7,3 @@ SOURCES = shapedclock.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/shapedclock
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/widgets/sliders/sliders.pro b/examples/widgets/widgets/sliders/sliders.pro
index bdc30b896c..6a0e01287d 100644
--- a/examples/widgets/widgets/sliders/sliders.pro
+++ b/examples/widgets/widgets/sliders/sliders.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = slidersgroup.h \
window.h
SOURCES = main.cpp \
@@ -8,6 +10,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/sliders
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/spinboxes/spinboxes.pro b/examples/widgets/widgets/spinboxes/spinboxes.pro
index 55a028c0a5..9638317471 100644
--- a/examples/widgets/widgets/spinboxes/spinboxes.pro
+++ b/examples/widgets/widgets/spinboxes/spinboxes.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = window.h
SOURCES = main.cpp \
window.cpp
@@ -6,6 +8,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/spinboxes
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/styles/styles.pro b/examples/widgets/widgets/styles/styles.pro
index f93175997f..598dceef65 100644
--- a/examples/widgets/widgets/styles/styles.pro
+++ b/examples/widgets/widgets/styles/styles.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = norwegianwoodstyle.h \
widgetgallery.h
SOURCES = main.cpp \
@@ -11,6 +13,4 @@ REQUIRES += "contains(styles, windows)"
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/styles
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/stylesheet/stylesheet.pro b/examples/widgets/widgets/stylesheet/stylesheet.pro
index 24590ab3dc..01edb0bbd8 100644
--- a/examples/widgets/widgets/stylesheet/stylesheet.pro
+++ b/examples/widgets/widgets/stylesheet/stylesheet.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h \
stylesheeteditor.h
FORMS = mainwindow.ui \
@@ -11,6 +13,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/stylesheet
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/tablet/tablet.pro b/examples/widgets/widgets/tablet/tablet.pro
index 2e74cb847b..6867f92ac8 100644
--- a/examples/widgets/widgets/tablet/tablet.pro
+++ b/examples/widgets/widgets/tablet/tablet.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = mainwindow.h \
tabletcanvas.h \
tabletapplication.h
@@ -10,6 +12,4 @@ SOURCES = mainwindow.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/tablet
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)
diff --git a/examples/widgets/widgets/tetrix/tetrix.pro b/examples/widgets/widgets/tetrix/tetrix.pro
index 5dd5342885..bb9f855fb0 100644
--- a/examples/widgets/widgets/tetrix/tetrix.pro
+++ b/examples/widgets/widgets/tetrix/tetrix.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = tetrixboard.h \
tetrixpiece.h \
tetrixwindow.h
@@ -9,6 +11,3 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/tetrix
INSTALLS += target
-
-QT += widgets
-
diff --git a/examples/widgets/widgets/tooltips/tooltips.pro b/examples/widgets/widgets/tooltips/tooltips.pro
index 7262a1aece..d14b8295ba 100644
--- a/examples/widgets/widgets/tooltips/tooltips.pro
+++ b/examples/widgets/widgets/tooltips/tooltips.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = shapeitem.h \
sortingbox.h
SOURCES = main.cpp \
@@ -8,5 +10,3 @@ RESOURCES = tooltips.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/tooltips
INSTALLS += target
-
-QT += widgets
diff --git a/examples/widgets/widgets/wiggly/wiggly.pro b/examples/widgets/widgets/wiggly/wiggly.pro
index 17371603dc..0e39f18add 100644
--- a/examples/widgets/widgets/wiggly/wiggly.pro
+++ b/examples/widgets/widgets/wiggly/wiggly.pro
@@ -1,4 +1,4 @@
-QT += widgets widgets
+QT += widgets
HEADERS = wigglywidget.h \
dialog.h
diff --git a/examples/widgets/widgets/windowflags/windowflags.pro b/examples/widgets/widgets/windowflags/windowflags.pro
index e96344c33d..250319983a 100644
--- a/examples/widgets/widgets/windowflags/windowflags.pro
+++ b/examples/widgets/widgets/windowflags/windowflags.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = controllerwindow.h \
previewwindow.h
SOURCES = controllerwindow.cpp \
@@ -8,6 +10,4 @@ SOURCES = controllerwindow.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/windowflags
INSTALLS += target
-QT += widgets
-
simulator: warning(This example might not fully work on Simulator platform)