clean up example project files, mostly wrt QT+=widgets

move QT+=widgets (and printsupport) statements before the install
statements, and de-duplicate some cases.
also move some TARGET assignments to a more conventional place.

Change-Id: I6140d8611680f66c24490e5894e4eb90cae95635
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Oswald Buddenhagen 2012-12-14 21:13:33 +01:00 committed by The Qt Project
parent 6c88c7db63
commit 2ac3f92296
169 changed files with 325 additions and 352 deletions

View File

@ -1,6 +1,7 @@
QT += widgets
SOURCES = flickable.cpp main.cpp SOURCES = flickable.cpp main.cpp
HEADERS = flickable.h HEADERS = flickable.h
target.path = $$[QT_INSTALL_EXAMPLES]/embedded/flickable target.path = $$[QT_INSTALL_EXAMPLES]/embedded/flickable
INSTALLS += target INSTALLS += target
QT += widgets widgets

View File

@ -1,7 +1,7 @@
TEMPLATE = app TEMPLATE = app
QT += widgets
SOURCES = raycasting.cpp SOURCES = raycasting.cpp
RESOURCES += raycasting.qrc RESOURCES += raycasting.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/embedded/raycasting target.path = $$[QT_INSTALL_EXAMPLES]/embedded/raycasting
INSTALLS += target INSTALLS += target
QT += widgets widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = imagewidget.h \ HEADERS = imagewidget.h \
mainwidget.h mainwidget.h
SOURCES = imagewidget.cpp \ SOURCES = imagewidget.cpp \
@ -8,5 +10,3 @@ SOURCES = imagewidget.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/gestures/imagegestures target.path = $$[QT_INSTALL_EXAMPLES]/gestures/imagegestures
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
SOURCES += main.cpp \ SOURCES += main.cpp \
dialog.cpp dialog.cpp
@ -12,6 +14,4 @@ EXAMPLE_FILES = *.png
target.path = $$[QT_INSTALL_EXAMPLES]/ipc/sharedmemory target.path = $$[QT_INSTALL_EXAMPLES]/ipc/sharedmemory
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example does not work on Simulator platform) simulator: warning(This example does not work on Simulator platform)

View File

@ -1,11 +1,10 @@
QT += widgets QT += network widgets
HEADERS = blockingclient.h \ HEADERS = blockingclient.h \
fortunethread.h fortunethread.h
SOURCES = blockingclient.cpp \ SOURCES = blockingclient.cpp \
main.cpp \ main.cpp \
fortunethread.cpp fortunethread.cpp
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/blockingfortuneclient target.path = $$[QT_INSTALL_EXAMPLES]/network/blockingfortuneclient

View File

@ -1,9 +1,8 @@
QT += widgets QT += network widgets
HEADERS = receiver.h HEADERS = receiver.h
SOURCES = receiver.cpp \ SOURCES = receiver.cpp \
main.cpp main.cpp
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastreceiver target.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastreceiver

View File

@ -1,9 +1,8 @@
QT += widgets QT += network widgets
HEADERS = sender.h HEADERS = sender.h
SOURCES = sender.cpp \ SOURCES = sender.cpp \
main.cpp main.cpp
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastsender target.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastsender

View File

@ -1,9 +1,8 @@
QT += widgets QT += network widgets
HEADERS = client.h HEADERS = client.h
SOURCES = client.cpp \ SOURCES = client.cpp \
main.cpp main.cpp
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/fortuneclient target.path = $$[QT_INSTALL_EXAMPLES]/network/fortuneclient

View File

@ -1,9 +1,8 @@
QT += widgets QT += network widgets
HEADERS = server.h HEADERS = server.h
SOURCES = server.cpp \ SOURCES = server.cpp \
main.cpp main.cpp
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/fortuneserver target.path = $$[QT_INSTALL_EXAMPLES]/network/fortuneserver

View File

@ -1,10 +1,9 @@
QT += widgets QT += network widgets
HEADERS += httpwindow.h HEADERS += httpwindow.h
SOURCES += httpwindow.cpp \ SOURCES += httpwindow.cpp \
main.cpp main.cpp
FORMS += authenticationdialog.ui FORMS += authenticationdialog.ui
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/http target.path = $$[QT_INSTALL_EXAMPLES]/network/http

View File

@ -1,9 +1,8 @@
QT += widgets QT += network widgets
HEADERS = dialog.h HEADERS = dialog.h
SOURCES = dialog.cpp \ SOURCES = dialog.cpp \
main.cpp main.cpp
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/loopback target.path = $$[QT_INSTALL_EXAMPLES]/network/loopback

View File

@ -1,9 +1,8 @@
QT += widgets QT += network widgets
HEADERS = receiver.h HEADERS = receiver.h
SOURCES = receiver.cpp \ SOURCES = receiver.cpp \
main.cpp main.cpp
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/multicastreceiver target.path = $$[QT_INSTALL_EXAMPLES]/network/multicastreceiver

View File

@ -1,4 +1,4 @@
QT += widgets QT += network widgets
HEADERS = dialog.h \ HEADERS = dialog.h \
fortuneserver.h \ fortuneserver.h \
@ -7,7 +7,6 @@ SOURCES = dialog.cpp \
fortuneserver.cpp \ fortuneserver.cpp \
fortunethread.cpp \ fortunethread.cpp \
main.cpp main.cpp
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/threadedfortuneserver target.path = $$[QT_INSTALL_EXAMPLES]/network/threadedfortuneserver

View File

@ -1,4 +1,4 @@
QT += widgets QT += network widgets
HEADERS += addtorrentdialog.h \ HEADERS += addtorrentdialog.h \
bencodeparser.h \ bencodeparser.h \
@ -29,8 +29,6 @@ SOURCES += main.cpp \
FORMS += forms/addtorrentform.ui FORMS += forms/addtorrentform.ui
RESOURCES += icons.qrc RESOURCES += icons.qrc
QT += network
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/torrent target.path = $$[QT_INSTALL_EXAMPLES]/network/torrent
INSTALLS += target INSTALLS += target

View File

@ -8,6 +8,7 @@ TEMPLATE = app
LANGUAGE = C++ LANGUAGE = C++
CONFIG += console precompile_header CONFIG += console precompile_header
CONFIG -= app_bundle CONFIG -= app_bundle
QT += widgets
# Use Precompiled headers (PCH) # Use Precompiled headers (PCH)
PRECOMPILED_HEADER = stable.h PRECOMPILED_HEADER = stable.h
@ -21,4 +22,3 @@ SOURCES = main.cpp \
util.cpp util.cpp
FORMS = mydialog.ui FORMS = mydialog.ui
#! [0] #! [0]
QT += widgets

View File

@ -1,8 +1,7 @@
QT += widgets testlib
SOURCES = testqstring.cpp SOURCES = testqstring.cpp
QT += testlib
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial1 target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial1
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,8 +1,7 @@
QT += widgets testlib
SOURCES = testqstring.cpp SOURCES = testqstring.cpp
QT += testlib
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial2 target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial2
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,8 +1,7 @@
QT += widgets testlib
SOURCES = testgui.cpp SOURCES = testgui.cpp
QT += testlib
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial3 target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial3
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,8 +1,7 @@
QT += widgets testlib
SOURCES = testgui.cpp SOURCES = testgui.cpp
QT += testlib
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial4 target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial4
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,8 +1,7 @@
QT += widgets testlib
SOURCES = benchmarking.cpp SOURCES = benchmarking.cpp
QT += testlib
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial5 target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial5
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mandelbrotwidget.h \ HEADERS = mandelbrotwidget.h \
renderthread.h renderthread.h
SOURCES = main.cpp \ SOURCES = main.cpp \
@ -9,5 +11,3 @@ unix:!mac:!vxworks:!integrity:LIBS += -lm
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/threads/mandelbrot target.path = $$[QT_INSTALL_EXAMPLES]/threads/mandelbrot
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = randomlistmodel.h HEADERS = randomlistmodel.h
SOURCES = randomlistmodel.cpp \ SOURCES = randomlistmodel.cpp \
main.cpp main.cpp
@ -5,7 +7,5 @@ SOURCES = randomlistmodel.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/contiguouscache target.path = $$[QT_INSTALL_EXAMPLES]/tools/contiguouscache
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,10 +1,10 @@
QT += widgets
SOURCES += main.cpp SOURCES += main.cpp
FORMS += dials.ui FORMS += dials.ui
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/dials target.path = $$[QT_INSTALL_EXAMPLES]/touch/dials
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,6 @@
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport
HEADERS = mainwindow.h \ HEADERS = mainwindow.h \
scribblearea.h scribblearea.h
SOURCES = main.cpp \ SOURCES = main.cpp \
@ -8,7 +11,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/touch/fingerpaint target.path = $$[QT_INSTALL_EXAMPLES]/touch/fingerpaint
INSTALLS += target INSTALLS += target
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,10 +1,10 @@
QT += widgets
HEADERS = knob.h HEADERS = knob.h
SOURCES = main.cpp knob.cpp SOURCES = main.cpp knob.cpp
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/knobs target.path = $$[QT_INSTALL_EXAMPLES]/touch/knobs
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS += \ HEADERS += \
mouse.h \ mouse.h \
graphicsview.h graphicsview.h
@ -12,7 +14,5 @@ RESOURCES += \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/pinchzoom target.path = $$[QT_INSTALL_EXAMPLES]/touch/pinchzoom
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -254,5 +254,3 @@ js/form_tapper.js \
js/mob_condjs.js \ js/mob_condjs.js \
js/mobile.js \ js/mobile.js \
js/storage.js \ js/storage.js \
QT += widgets

View File

@ -1,8 +1,8 @@
QT += widgets
SOURCES = main.cpp SOURCES = main.cpp
RESOURCES = animatedtiles.qrc RESOURCES = animatedtiles.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/animatedtiles target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/animatedtiles
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,8 +1,8 @@
QT += widgets
SOURCES = main.cpp SOURCES = main.cpp
RESOURCES = appchooser.qrc RESOURCES = appchooser.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/appchooser target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/appchooser
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = window.h \ HEADERS = window.h \
animation.h animation.h
SOURCES = main.cpp \ SOURCES = main.cpp \
@ -10,6 +12,3 @@ RESOURCES = easing.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/easing target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/easing
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,7 +1,7 @@
QT += widgets
SOURCES = main.cpp SOURCES = main.cpp
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/moveblocks target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/moveblocks
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,8 +1,8 @@
QT += widgets
SOURCES += main.cpp SOURCES += main.cpp
RESOURCES += states.qrc RESOURCES += states.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/states target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/states
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS += stickman.h \ HEADERS += stickman.h \
animation.h \ animation.h \
node.h \ node.h \
@ -17,5 +19,3 @@ RESOURCES += stickman.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/stickman target.path = $$[QT_INSTALL_EXAMPLES]/widgets/animation/stickman
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = screenshot.h HEADERS = screenshot.h
SOURCES = main.cpp \ SOURCES = main.cpp \
screenshot.cpp screenshot.cpp
@ -6,5 +8,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/desktop/screenshot target.path = $$[QT_INSTALL_EXAMPLES]/widgets/desktop/screenshot
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = classwizard.h HEADERS = classwizard.h
SOURCES = classwizard.cpp \ SOURCES = classwizard.cpp \
main.cpp main.cpp
@ -7,5 +9,4 @@ RESOURCES = classwizard.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/classwizard target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/classwizard
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = configdialog.h \ HEADERS = configdialog.h \
pages.h pages.h
SOURCES = configdialog.cpp \ 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 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) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = finddialog.h HEADERS = finddialog.h
SOURCES = finddialog.cpp \ SOURCES = finddialog.cpp \
main.cpp main.cpp
@ -6,5 +8,4 @@ SOURCES = finddialog.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/extension target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/extension
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = window.h HEADERS = window.h
SOURCES = main.cpp \ SOURCES = main.cpp \
window.cpp window.cpp
@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/findfiles target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/findfiles
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets printsupport
HEADERS = licensewizard.h HEADERS = licensewizard.h
SOURCES = licensewizard.cpp \ SOURCES = licensewizard.cpp \
main.cpp main.cpp
@ -7,5 +9,4 @@ RESOURCES = licensewizard.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/licensewizard target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/licensewizard
INSTALLS += target INSTALLS += target
QT += widgets printsupport
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = dialog.h HEADERS = dialog.h
SOURCES = main.cpp \ SOURCES = main.cpp \
dialog.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 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) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = dialog.h HEADERS = dialog.h
SOURCES = dialog.cpp \ SOURCES = dialog.cpp \
main.cpp main.cpp
@ -7,5 +9,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/standarddialogs
INSTALLS += target INSTALLS += target
wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = tabdialog.h HEADERS = tabdialog.h
SOURCES = main.cpp \ SOURCES = main.cpp \
tabdialog.cpp tabdialog.cpp
@ -7,4 +9,3 @@ target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/tabdialog
INSTALLS += target INSTALLS += target
wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib wince50standard-x86-msvc2005: LIBS += libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib ws2.lib
QT += widgets

View File

@ -1,8 +1,9 @@
QT += widgets
SOURCES = trivialwizard.cpp SOURCES = trivialwizard.cpp
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/trivialwizard target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/trivialwizard
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = dragwidget.h HEADERS = dragwidget.h
RESOURCES = draggableicons.qrc RESOURCES = draggableicons.qrc
SOURCES = dragwidget.cpp \ SOURCES = dragwidget.cpp \
@ -6,5 +8,3 @@ SOURCES = dragwidget.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/draggableicons target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/draggableicons
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = draglabel.h \ HEADERS = draglabel.h \
dragwidget.h dragwidget.h
RESOURCES = draggabletext.qrc RESOURCES = draggabletext.qrc
@ -8,6 +10,3 @@ SOURCES = draglabel.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/draggabletext target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/draggabletext
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = droparea.h \ HEADERS = droparea.h \
dropsitewindow.h dropsitewindow.h
SOURCES = droparea.cpp \ SOURCES = droparea.cpp \
@ -8,5 +10,4 @@ SOURCES = droparea.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/dropsite target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/dropsite
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = draglabel.h \ HEADERS = draglabel.h \
dragwidget.h dragwidget.h
RESOURCES = fridgemagnets.qrc RESOURCES = fridgemagnets.qrc
@ -8,6 +10,3 @@ SOURCES = draglabel.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/fridgemagnets target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/fridgemagnets
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h \ HEADERS = mainwindow.h \
pieceslist.h \ pieceslist.h \
puzzlewidget.h puzzlewidget.h
@ -18,4 +20,3 @@ wince*: {
addFile.path = . addFile.path = .
DEPLOYMENT += addFile DEPLOYMENT += addFile
} }
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
SOURCES += main.cpp blurpicker.cpp blureffect.cpp SOURCES += main.cpp blurpicker.cpp blureffect.cpp
HEADERS += blurpicker.h blureffect.h HEADERS += blurpicker.h blureffect.h
RESOURCES += blurpicker.qrc RESOURCES += blurpicker.qrc
@ -5,5 +7,3 @@ RESOURCES += blurpicker.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/effects/blurpicker target.path = $$[QT_INSTALL_EXAMPLES]/widgets/effects/blurpicker
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
SOURCES += main.cpp fademessage.cpp SOURCES += main.cpp fademessage.cpp
HEADERS += fademessage.h HEADERS += fademessage.h
RESOURCES += fademessage.qrc RESOURCES += fademessage.qrc
@ -6,5 +8,4 @@ RESOURCES += fademessage.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/effects/fademessage target.path = $$[QT_INSTALL_EXAMPLES]/widgets/effects/fademessage
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,9 +1,8 @@
QT += widgets
SOURCES += main.cpp lighting.cpp SOURCES += main.cpp lighting.cpp
HEADERS += lighting.h HEADERS += lighting.h
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/effects/lighting target.path = $$[QT_INSTALL_EXAMPLES]/widgets/effects/lighting
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,11 +1,11 @@
TARGET = anchorlayout
QT += widgets
SOURCES = main.cpp SOURCES = main.cpp
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/anchorlayout target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/anchorlayout
INSTALLS += target INSTALLS += target
TARGET = anchorlayout
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = layoutitem.h \ HEADERS = layoutitem.h \
window.h window.h
SOURCES = layoutitem.cpp \ SOURCES = layoutitem.cpp \
@ -8,5 +10,3 @@ RESOURCES = basicgraphicslayouts.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/basicgraphicslayouts target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/basicgraphicslayouts
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS += \ HEADERS += \
mouse.h mouse.h
SOURCES += \ SOURCES += \
@ -10,6 +12,3 @@ RESOURCES += \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/collidingmice target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/collidingmice
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h \ HEADERS = mainwindow.h \
diagramitem.h \ diagramitem.h \
diagramscene.h \ diagramscene.h \
@ -16,6 +18,4 @@ RESOURCES = diagramscene.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/diagramscene target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/diagramscene
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS += \ HEADERS += \
coloritem.h \ coloritem.h \
robot.h robot.h
@ -15,6 +17,4 @@ RESOURCES += \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/dragdroprobot target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/dragdroprobot
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS += \ HEADERS += \
edge.h \ edge.h \
node.h \ node.h \
@ -12,5 +14,3 @@ SOURCES += \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/elasticnodes target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/elasticnodes
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
SOURCES += main.cpp SOURCES += main.cpp
SOURCES += customproxy.cpp embeddeddialog.cpp SOURCES += customproxy.cpp embeddeddialog.cpp
HEADERS += customproxy.h embeddeddialog.h HEADERS += customproxy.h embeddeddialog.h
@ -13,5 +15,3 @@ build_all:!build_pass {
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/embeddeddialogs target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/embeddeddialogs
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,10 +1,11 @@
TARGET = simpleanchorlayout
QT += widgets
SOURCES = main.cpp SOURCES = main.cpp
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/simpleanchorlayout target.path = $$[QT_INSTALL_EXAMPLES]/widgets/graphicsview/simpleanchorlayout
INSTALLS += target INSTALLS += target
TARGET = simpleanchorlayout
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
SOURCES = adddialog.cpp \ SOURCES = adddialog.cpp \
addresswidget.cpp \ addresswidget.cpp \
main.cpp \ main.cpp \
@ -13,5 +15,3 @@ HEADERS = adddialog.h \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/addressbook target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/addressbook
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = window.h HEADERS = window.h
SOURCES = main.cpp \ SOURCES = main.cpp \
window.cpp window.cpp
@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/basicsortfiltermodel target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/basicsortfiltermodel
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h \ HEADERS = mainwindow.h \
pieview.h pieview.h
RESOURCES = chart.qrc RESOURCES = chart.qrc
@ -9,6 +11,3 @@ unix:!mac:!vxworks:!integrity:LIBS+= -lm
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/chart target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/chart
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = colorlisteditor.h \ HEADERS = colorlisteditor.h \
window.h window.h
SOURCES = colorlisteditor.cpp \ SOURCES = colorlisteditor.cpp \
@ -7,6 +9,3 @@ SOURCES = colorlisteditor.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/coloreditorfactory target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/coloreditorfactory
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = window.h HEADERS = window.h
SOURCES = main.cpp \ SOURCES = main.cpp \
window.cpp window.cpp
@ -5,5 +7,4 @@ SOURCES = main.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/combowidgetmapper target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/combowidgetmapper
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mysortfilterproxymodel.h \ HEADERS = mysortfilterproxymodel.h \
window.h window.h
SOURCES = main.cpp \ SOURCES = main.cpp \
@ -7,5 +9,3 @@ SOURCES = main.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/customsortfiltermodel target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/customsortfiltermodel
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,7 +1,7 @@
QT += widgets
SOURCES = main.cpp SOURCES = main.cpp
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/dirview target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/dirview
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
FORMS = mainwindow.ui FORMS = mainwindow.ui
HEADERS = mainwindow.h \ HEADERS = mainwindow.h \
treeitem.h \ treeitem.h \
@ -11,5 +13,3 @@ SOURCES = mainwindow.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/editabletreemodel target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/editabletreemodel
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = filelistmodel.h \ HEADERS = filelistmodel.h \
window.h window.h
SOURCES = filelistmodel.cpp \ SOURCES = filelistmodel.cpp \
@ -7,5 +9,3 @@ SOURCES = filelistmodel.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/fetchmore target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/fetchmore
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS += freezetablewidget.h HEADERS += freezetablewidget.h
SOURCES += main.cpp freezetablewidget.cpp SOURCES += main.cpp freezetablewidget.cpp
RESOURCES += grades.qrc RESOURCES += grades.qrc
@ -5,5 +7,4 @@ RESOURCES += grades.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/frozencolumn target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/frozencolumn
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,4 +1,5 @@
TEMPLATE = app TEMPLATE = app
QT += widgets
HEADERS += model.h HEADERS += model.h
SOURCES += model.cpp main.cpp SOURCES += model.cpp main.cpp
@ -12,5 +13,3 @@ build_all:!build_pass {
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/interview target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/interview
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,6 @@
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport
HEADERS = imagemodel.h \ HEADERS = imagemodel.h \
mainwindow.h \ mainwindow.h \
pixeldelegate.h pixeldelegate.h
@ -10,6 +13,3 @@ RESOURCES += images.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/pixelator target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/pixelator
INSTALLS += target INSTALLS += target
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h \ HEADERS = mainwindow.h \
piecesmodel.h \ piecesmodel.h \
puzzlewidget.h puzzlewidget.h
@ -15,6 +17,3 @@ INSTALLS += target
wince* { wince* {
DEPLOYMENT_PLUGIN += qjpeg qgif DEPLOYMENT_PLUGIN += qjpeg qgif
} }
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = treeitem.h \ HEADERS = treeitem.h \
treemodel.h treemodel.h
RESOURCES = simpletreemodel.qrc RESOURCES = simpletreemodel.qrc
@ -8,5 +10,3 @@ SOURCES = treeitem.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/simpletreemodel target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/simpletreemodel
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = window.h HEADERS = window.h
SOURCES = main.cpp \ SOURCES = main.cpp \
window.cpp window.cpp
@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/simplewidgetmapper target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/simplewidgetmapper
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = delegate.h HEADERS = delegate.h
SOURCES = delegate.cpp \ SOURCES = delegate.cpp \
main.cpp main.cpp
@ -6,6 +8,4 @@ SOURCES = delegate.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/spinboxdelegate target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/spinboxdelegate
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = stardelegate.h \ HEADERS = stardelegate.h \
stareditor.h \ stareditor.h \
starrating.h starrating.h
@ -10,6 +12,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/stardelegate target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/stardelegate
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = dialog.h HEADERS = dialog.h
SOURCES = dialog.cpp \ SOURCES = dialog.cpp \
main.cpp main.cpp
@ -6,6 +8,4 @@ SOURCES = dialog.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/basiclayouts target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/basiclayouts
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = borderlayout.h \ HEADERS = borderlayout.h \
window.h window.h
SOURCES = borderlayout.cpp \ SOURCES = borderlayout.cpp \
@ -7,5 +9,3 @@ SOURCES = borderlayout.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/borderlayout target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/borderlayout
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = dialog.h HEADERS = dialog.h
SOURCES = dialog.cpp \ SOURCES = dialog.cpp \
main.cpp main.cpp
@ -6,6 +8,4 @@ SOURCES = dialog.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/dynamiclayouts target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/dynamiclayouts
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = flowlayout.h \ HEADERS = flowlayout.h \
window.h window.h
SOURCES = flowlayout.cpp \ SOURCES = flowlayout.cpp \
@ -7,5 +9,3 @@ SOURCES = flowlayout.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/flowlayout target.path = $$[QT_INSTALL_EXAMPLES]/widgets/layouts/flowlayout
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h HEADERS = mainwindow.h
SOURCES = main.cpp \ SOURCES = main.cpp \
mainwindow.cpp mainwindow.cpp
@ -9,6 +11,4 @@ RESOURCES = application.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/application target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/application
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,6 @@
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport
HEADERS = mainwindow.h HEADERS = mainwindow.h
SOURCES = main.cpp \ SOURCES = main.cpp \
mainwindow.cpp mainwindow.cpp
@ -7,7 +10,4 @@ RESOURCES = dockwidgets.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/dockwidgets target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/dockwidgets
INSTALLS += target INSTALLS += target
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,4 +1,6 @@
TEMPLATE = app TEMPLATE = app
QT += widgets
HEADERS += colorswatch.h mainwindow.h toolbar.h HEADERS += colorswatch.h mainwindow.h toolbar.h
SOURCES += colorswatch.cpp mainwindow.cpp toolbar.cpp main.cpp SOURCES += colorswatch.cpp mainwindow.cpp toolbar.cpp main.cpp
build_all:!build_pass { build_all:!build_pass {
@ -11,5 +13,3 @@ RESOURCES += mainwindow.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mainwindow target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mainwindow
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h \ HEADERS = mainwindow.h \
mdichild.h mdichild.h
SOURCES = main.cpp \ SOURCES = main.cpp \
@ -9,6 +11,4 @@ RESOURCES = mdi.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mdi target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mdi
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h HEADERS = mainwindow.h
SOURCES = mainwindow.cpp \ SOURCES = mainwindow.cpp \
main.cpp main.cpp
@ -5,5 +7,3 @@ SOURCES = mainwindow.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/menus target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/menus
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h HEADERS = mainwindow.h
SOURCES = main.cpp \ SOURCES = main.cpp \
mainwindow.cpp mainwindow.cpp
@ -6,6 +8,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/recentfiles target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/recentfiles
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h HEADERS = mainwindow.h
SOURCES = main.cpp \ SOURCES = main.cpp \
mainwindow.cpp mainwindow.cpp
@ -7,6 +9,4 @@ RESOURCES = sdi.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/sdi target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/sdi
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = renderarea.h \ HEADERS = renderarea.h \
window.h window.h
SOURCES = main.cpp \ SOURCES = main.cpp \
@ -8,5 +10,3 @@ RESOURCES = basicdrawing.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/basicdrawing target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/basicdrawing
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = circlewidget.h \ HEADERS = circlewidget.h \
window.h window.h
SOURCES = circlewidget.cpp \ SOURCES = circlewidget.cpp \
@ -7,6 +9,3 @@ SOURCES = circlewidget.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/concentriccircles target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/concentriccircles
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,6 @@
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport
FORMS = mainwindowbase.ui FORMS = mainwindowbase.ui
HEADERS = mainwindow.h HEADERS = mainwindow.h
SOURCES = main.cpp \ SOURCES = main.cpp \
@ -6,6 +9,3 @@ SOURCES = main.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/fontsampler target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/fontsampler
INSTALLS += target INSTALLS += target
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = imagecomposer.h HEADERS = imagecomposer.h
SOURCES = imagecomposer.cpp \ SOURCES = imagecomposer.cpp \
main.cpp main.cpp
@ -6,6 +8,3 @@ RESOURCES = imagecomposition.qrc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/imagecomposition target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/imagecomposition
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = renderarea.h \ HEADERS = renderarea.h \
window.h window.h
SOURCES = main.cpp \ SOURCES = main.cpp \
@ -8,6 +10,3 @@ unix:!mac:!vxworks:!integrity:LIBS += -lm
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/painterpaths target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/painterpaths
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -3,15 +3,15 @@ CONFIG += static
contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) { contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
DEFINES += QT_OPENGL_SUPPORT DEFINES += QT_OPENGL_SUPPORT
QT += opengl widgets QT += opengl
} }
QT += widgets
build_all:!build_pass { build_all:!build_pass {
CONFIG -= build_all CONFIG -= build_all
CONFIG += release CONFIG += release
} }
TARGET = demo_shared TARGET = demo_shared
QT += widgets
SOURCES += \ SOURCES += \
arthurstyle.cpp\ arthurstyle.cpp\

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = renderarea.h \ HEADERS = renderarea.h \
window.h window.h
SOURCES = main.cpp \ SOURCES = main.cpp \
@ -7,5 +9,3 @@ SOURCES = main.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/transformations target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/transformations
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = mainwindow.h HEADERS = mainwindow.h
SOURCES = main.cpp \ SOURCES = main.cpp \
mainwindow.cpp mainwindow.cpp
@ -5,5 +7,3 @@ SOURCES = main.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/calendar target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/calendar
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,3 +1,6 @@
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport
HEADERS = detailsdialog.h \ HEADERS = detailsdialog.h \
mainwindow.h mainwindow.h
SOURCES = detailsdialog.cpp \ SOURCES = detailsdialog.cpp \
@ -7,6 +10,3 @@ SOURCES = detailsdialog.cpp \
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/orderform target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/orderform
INSTALLS += target INSTALLS += target
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS = highlighter.h \ HEADERS = highlighter.h \
mainwindow.h mainwindow.h
SOURCES = highlighter.cpp \ SOURCES = highlighter.cpp \
@ -14,5 +16,3 @@ wince*: {
addFiles.path = . addFiles.path = .
DEPLOYMENT += addFiles DEPLOYMENT += addFiles
} }
QT += widgets

View File

@ -1,3 +1,6 @@
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport
TEMPLATE = app TEMPLATE = app
TARGET = textedit TARGET = textedit
@ -16,6 +19,3 @@ EXAMPLE_FILES = textedit.qdoc
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/textedit target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/textedit
INSTALLS += target INSTALLS += target
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport

View File

@ -1,7 +1,8 @@
QT += widgets
TEMPLATE = app TEMPLATE = app
SOURCES = main.cpp SOURCES = main.cpp
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/scroller/graphicsview target.path = $$[QT_INSTALL_EXAMPLES]/widgets/scroller/graphicsview
INSTALLS += target INSTALLS += target
QT += widgets

View File

@ -1,9 +1,9 @@
QT += widgets
SOURCES = main.cpp SOURCES = main.cpp
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/statemachine/eventtransitions target.path = $$[QT_INSTALL_EXAMPLES]/widgets/statemachine/eventtransitions
INSTALLS += target INSTALLS += target
QT += widgets
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

Some files were not shown because too many files have changed in this diff Show More