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
HEADERS = flickable.h
target.path = $$[QT_INSTALL_EXAMPLES]/embedded/flickable
INSTALLS += target
QT += widgets widgets

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,10 +1,10 @@
QT += widgets
SOURCES += main.cpp
FORMS += dials.ui
# install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/dials
INSTALLS += target
QT += widgets
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 \
scribblearea.h
SOURCES = main.cpp \
@ -8,7 +11,4 @@ SOURCES = main.cpp \
target.path = $$[QT_INSTALL_EXAMPLES]/touch/fingerpaint
INSTALLS += target
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport
simulator: warning(This example might not fully work on Simulator platform)

View File

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

View File

@ -1,3 +1,5 @@
QT += widgets
HEADERS += \
mouse.h \
graphicsview.h
@ -12,7 +14,5 @@ RESOURCES += \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/pinchzoom
INSTALLS += target
QT += widgets
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/mobile.js \
js/storage.js \
QT += widgets

View File

@ -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

View File

@ -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

View File

@ -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

View File

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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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\

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

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

View File

@ -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)

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