CMake: Add widgets examples

Change-Id: Ib6142b93df066e3658eb189b50ca74c455fe7e56
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tobias Hunger 2019-03-20 13:41:37 +01:00
parent 05ebd62f09
commit aa50b377a7
194 changed files with 4058 additions and 0 deletions

View File

@ -20,3 +20,6 @@ endif()
if(TARGET Qt::Gui)
add_subdirectory(gui)
endif()
if(TARGET Qt::Widgets)
add_subdirectory(widgets)
endif()

View File

@ -0,0 +1,33 @@
# Generated from widgets.pro.
add_subdirectory(animation)
add_subdirectory(desktop)
add_subdirectory(dialogs)
if(QT_FEATURE_draganddrop) # special case
add_subdirectory(draganddrop)
endif()
add_subdirectory(effects)
add_subdirectory(gestures)
add_subdirectory(graphicsview)
add_subdirectory(itemviews)
add_subdirectory(layouts)
add_subdirectory(painting)
add_subdirectory(richtext)
add_subdirectory(scroller)
add_subdirectory(statemachine)
add_subdirectory(tools)
add_subdirectory(touch)
add_subdirectory(tutorials)
add_subdirectory(widgets)
if(TARGET Qt::Gui AND QT_FEATURE_opengl)
add_subdirectory(windowcontainer)
endif()
if(QT_FEATURE_cursor) # special case
add_subdirectory(mainwindows)
endif()
if(APPLE_OSX)
add_subdirectory(mac)
endif()

View File

@ -0,0 +1,8 @@
# Generated from animation.pro.
add_subdirectory(animatedtiles)
add_subdirectory(easing)
add_subdirectory(moveblocks)
add_subdirectory(states)
add_subdirectory(stickman)
add_subdirectory(sub-attaq)

View File

@ -0,0 +1,26 @@
# Generated from animatedtiles.pro.
#####################################################################
## animatedtiles Binary:
#####################################################################
add_qt_executable(animatedtiles
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/animatedtiles"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/animatedtiles"
SOURCES
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(animatedtiles "animatedtiles" FILES
images/Time-For-Lunch-2.jpg
images/centered.png
images/ellipse.png
images/figure8.png
images/kinetic.png
images/random.png
images/tile.png)

View File

@ -0,0 +1,23 @@
# Generated from easing.pro.
#####################################################################
## easing Binary:
#####################################################################
add_qt_executable(easing
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/easing"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/easing"
SOURCES
animation.h
form.ui
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(easing "easing" FILES
images/qt-logo.png)

View File

@ -0,0 +1,15 @@
# Generated from moveblocks.pro.
#####################################################################
## moveblocks Binary:
#####################################################################
add_qt_executable(moveblocks
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/moveblocks"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/moveblocks"
SOURCES
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,25 @@
# Generated from states.pro.
#####################################################################
## states Binary:
#####################################################################
add_qt_executable(states
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/states"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/states"
SOURCES
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(states "states" FILES
accessories-dictionary.png
akregator.png
digikam.png
help-browser.png
k3b.png
kchart.png)

View File

@ -0,0 +1,29 @@
# Generated from stickman.pro.
#####################################################################
## stickman Binary:
#####################################################################
add_qt_executable(stickman
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/stickman"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/stickman"
SOURCES
animation.cpp animation.h
graphicsview.cpp graphicsview.h
lifecycle.cpp lifecycle.h
main.cpp
node.cpp node.h
rectbutton.cpp rectbutton.h
stickman.cpp stickman.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(stickman "stickman" FILES
animations/chilling.bin
animations/dancing.bin
animations/dead.bin
animations/jumping.bin)

View File

@ -0,0 +1,142 @@
# Generated from sub-attaq.pro.
#####################################################################
## sub-attaq Binary:
#####################################################################
add_qt_executable(sub-attaq
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/sub-attaq"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/sub-attaq"
SOURCES
animationmanager.cpp animationmanager.h
boat.cpp boat.h boat_p.h
bomb.cpp bomb.h
graphicsscene.cpp graphicsscene.h
main.cpp
mainwindow.cpp mainwindow.h
pixmapitem.cpp pixmapitem.h
progressitem.cpp progressitem.h
qanimationstate.cpp qanimationstate.h
states.cpp states.h
submarine.cpp submarine.h submarine_p.h
textinformationitem.cpp textinformationitem.h
torpedo.cpp torpedo.h
LIBRARIES
Qt::Widgets
)
# Resources:
set_source_files_properties("pics/big/background.png"
PROPERTIES alias "big/background")
set_source_files_properties("pics/big/boat.png"
PROPERTIES alias "big/boat")
set_source_files_properties("pics/big/bomb.png"
PROPERTIES alias "big/bomb")
set_source_files_properties("pics/big/explosion/boat/step1.png"
PROPERTIES alias "big/explosion/boat/step1")
set_source_files_properties("pics/big/explosion/boat/step2.png"
PROPERTIES alias "big/explosion/boat/step2")
set_source_files_properties("pics/big/explosion/boat/step3.png"
PROPERTIES alias "big/explosion/boat/step3")
set_source_files_properties("pics/big/explosion/boat/step4.png"
PROPERTIES alias "big/explosion/boat/step4")
set_source_files_properties("pics/big/explosion/submarine/step1.png"
PROPERTIES alias "big/explosion/submarine/step1")
set_source_files_properties("pics/big/explosion/submarine/step2.png"
PROPERTIES alias "big/explosion/submarine/step2")
set_source_files_properties("pics/big/explosion/submarine/step3.png"
PROPERTIES alias "big/explosion/submarine/step3")
set_source_files_properties("pics/big/explosion/submarine/step4.png"
PROPERTIES alias "big/explosion/submarine/step4")
set_source_files_properties("pics/big/submarine.png"
PROPERTIES alias "big/submarine")
set_source_files_properties("pics/big/surface.png"
PROPERTIES alias "big/surface")
set_source_files_properties("pics/big/torpedo.png"
PROPERTIES alias "big/torpedo")
set_source_files_properties("pics/scalable/boat.svg"
PROPERTIES alias "boat")
set_source_files_properties("pics/scalable/sub-attaq.svg"
PROPERTIES alias "all")
set_source_files_properties("pics/scalable/submarine.svg"
PROPERTIES alias "submarine")
set_source_files_properties("pics/scalable/torpedo.svg"
PROPERTIES alias "torpedo")
set_source_files_properties("pics/small/background.png"
PROPERTIES alias "small/background")
set_source_files_properties("pics/small/boat.png"
PROPERTIES alias "small/boat")
set_source_files_properties("pics/small/bomb.png"
PROPERTIES alias "small/bomb")
set_source_files_properties("pics/small/submarine.png"
PROPERTIES alias "small/submarine")
set_source_files_properties("pics/small/surface.png"
PROPERTIES alias "small/surface")
set_source_files_properties("pics/small/torpedo.png"
PROPERTIES alias "small/torpedo")
set_source_files_properties("pics/welcome/logo-a.png"
PROPERTIES alias "logo-a")
set_source_files_properties("pics/welcome/logo-a2.png"
PROPERTIES alias "logo-a2")
set_source_files_properties("pics/welcome/logo-b.png"
PROPERTIES alias "logo-b")
set_source_files_properties("pics/welcome/logo-dash.png"
PROPERTIES alias "logo-dash")
set_source_files_properties("pics/welcome/logo-excl.png"
PROPERTIES alias "logo-excl")
set_source_files_properties("pics/welcome/logo-q.png"
PROPERTIES alias "logo-q")
set_source_files_properties("pics/welcome/logo-s.png"
PROPERTIES alias "logo-s")
set_source_files_properties("pics/welcome/logo-t.png"
PROPERTIES alias "logo-t")
set_source_files_properties("pics/welcome/logo-t2.png"
PROPERTIES alias "logo-t2")
set_source_files_properties("pics/welcome/logo-u.png"
PROPERTIES alias "logo-u")
add_qt_resource(sub-attaq "subattaq" PREFIX "/" FILES
data.xml
pics/big/background.png
pics/big/boat.png
pics/big/bomb.png
pics/big/explosion/boat/step1.png
pics/big/explosion/boat/step2.png
pics/big/explosion/boat/step3.png
pics/big/explosion/boat/step4.png
pics/big/explosion/submarine/step1.png
pics/big/explosion/submarine/step2.png
pics/big/explosion/submarine/step3.png
pics/big/explosion/submarine/step4.png
pics/big/submarine.png
pics/big/surface.png
pics/big/torpedo.png
pics/scalable/boat.svg
pics/scalable/sub-attaq.svg
pics/scalable/submarine.svg
pics/scalable/torpedo.svg
pics/small/background.png
pics/small/boat.png
pics/small/bomb.png
pics/small/submarine.png
pics/small/surface.png
pics/small/torpedo.png
pics/welcome/logo-a.png
pics/welcome/logo-a2.png
pics/welcome/logo-b.png
pics/welcome/logo-dash.png
pics/welcome/logo-excl.png
pics/welcome/logo-q.png
pics/welcome/logo-s.png
pics/welcome/logo-t.png
pics/welcome/logo-t2.png
pics/welcome/logo-u.png)
## Scopes:
#####################################################################
extend_target(sub-attaq CONDITION TARGET Qt::OpenGL
LIBRARIES
Qt::OpenGL
)

View File

@ -0,0 +1,4 @@
# Generated from desktop.pro.
add_subdirectory(screenshot)
add_subdirectory(systray)

View File

@ -0,0 +1,16 @@
# Generated from screenshot.pro.
#####################################################################
## screenshot Binary:
#####################################################################
add_qt_executable(screenshot
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/screenshot"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/screenshot"
SOURCES
main.cpp
screenshot.cpp screenshot.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,23 @@
# Generated from systray.pro.
#####################################################################
## systray Binary:
#####################################################################
add_qt_executable(systray
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/systray"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/systray"
SOURCES
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(systray "systray" PREFIX "/" FILES
images/bad.png
images/heart.png
images/trash.png)

View File

@ -0,0 +1,14 @@
# Generated from dialogs.pro.
add_subdirectory(extension)
add_subdirectory(findfiles)
if(TARGET Qt::PrintSupport AND QT_FEATURE_wizard) # special case
add_subdirectory(licensewizard)
endif()
add_subdirectory(standarddialogs)
add_subdirectory(tabdialog)
if(QT_FEATURE_wizard) # special case
add_subdirectory(classwizard)
add_subdirectory(trivialwizard)
endif()

View File

@ -0,0 +1,27 @@
# Generated from classwizard.pro.
#####################################################################
## classwizard Binary:
#####################################################################
add_qt_executable(classwizard
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/classwizard"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/classwizard"
SOURCES
classwizard.cpp classwizard.h
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(classwizard "classwizard" FILES
images/background.png
images/banner.png
images/logo1.png
images/logo2.png
images/logo3.png
images/watermark1.png
images/watermark2.png)

View File

@ -0,0 +1,16 @@
# Generated from extension.pro.
#####################################################################
## extension Binary:
#####################################################################
add_qt_executable(extension
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/extension"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/extension"
SOURCES
finddialog.cpp finddialog.h
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,16 @@
# Generated from findfiles.pro.
#####################################################################
## findfiles Binary:
#####################################################################
add_qt_executable(findfiles
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/findfiles"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/findfiles"
SOURCES
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,23 @@
# Generated from licensewizard.pro.
#####################################################################
## licensewizard Binary:
#####################################################################
add_qt_executable(licensewizard
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/licensewizard"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/licensewizard"
SOURCES
licensewizard.cpp licensewizard.h
main.cpp
LIBRARIES
Qt::Widgets
Qt::PrintSupport
)
# Resources:
add_qt_resource(licensewizard "licensewizard" FILES
images/logo.png
images/watermark.png)

View File

@ -0,0 +1,16 @@
# Generated from standarddialogs.pro.
#####################################################################
## standarddialogs Binary:
#####################################################################
add_qt_executable(standarddialogs
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/standarddialogs"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/standarddialogs"
SOURCES
dialog.cpp dialog.h
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,16 @@
# Generated from tabdialog.pro.
#####################################################################
## tabdialog Binary:
#####################################################################
add_qt_executable(tabdialog
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/tabdialog"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/tabdialog"
SOURCES
main.cpp
tabdialog.cpp tabdialog.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,15 @@
# Generated from trivialwizard.pro.
#####################################################################
## trivialwizard Binary:
#####################################################################
add_qt_executable(trivialwizard
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/trivialwizard"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/trivialwizard"
SOURCES
trivialwizard.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,7 @@
# Generated from draganddrop.pro.
add_subdirectory(draggableicons)
add_subdirectory(draggabletext)
add_subdirectory(dropsite)
add_subdirectory(fridgemagnets)
add_subdirectory(puzzle)

View File

@ -0,0 +1,23 @@
# Generated from draggableicons.pro.
#####################################################################
## draggableicons Binary:
#####################################################################
add_qt_executable(draggableicons
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggableicons"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggableicons"
SOURCES
dragwidget.cpp dragwidget.h
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(draggableicons "draggableicons" FILES
images/boat.png
images/car.png
images/house.png)

View File

@ -0,0 +1,21 @@
# Generated from draggabletext.pro.
#####################################################################
## draggabletext Binary:
#####################################################################
add_qt_executable(draggabletext
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggabletext"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggabletext"
SOURCES
dragwidget.cpp dragwidget.h
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(draggabletext "draggabletext" PREFIX "/dictionary" FILES
words.txt)

View File

@ -0,0 +1,17 @@
# Generated from dropsite.pro.
#####################################################################
## dropsite Binary:
#####################################################################
add_qt_executable(dropsite
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/dropsite"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/dropsite"
SOURCES
droparea.cpp droparea.h
dropsitewindow.cpp dropsitewindow.h
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,22 @@
# Generated from fridgemagnets.pro.
#####################################################################
## fridgemagnets Binary:
#####################################################################
add_qt_executable(fridgemagnets
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/fridgemagnets"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/fridgemagnets"
SOURCES
draglabel.cpp draglabel.h
dragwidget.cpp dragwidget.h
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(fridgemagnets "fridgemagnets" PREFIX "/dictionary" FILES
words.txt)

View File

@ -0,0 +1,26 @@
# Generated from puzzle.pro.
#####################################################################
## puzzle Binary:
#####################################################################
add_qt_executable(puzzle
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/puzzle"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/puzzle"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
pieceslist.cpp pieceslist.h
puzzlewidget.cpp puzzlewidget.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(puzzle "puzzle" PREFIX "/images" FILES
example.jpg)
#### Keys ignored in scope 1:.:puzzle.pro:<NONE>:
# QMAKE_PROJECT_NAME = "dndpuzzle"

View File

@ -0,0 +1,4 @@
# Generated from effects.pro.
add_subdirectory(blurpicker)
add_subdirectory(fademessage)

View File

@ -0,0 +1,30 @@
# Generated from blurpicker.pro.
#####################################################################
## blurpicker Binary:
#####################################################################
add_qt_executable(blurpicker
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/effects/blurpicker"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/effects/blurpicker"
SOURCES
blureffect.cpp blureffect.h
blurpicker.cpp blurpicker.h
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(blurpicker "blurpicker" PREFIX "/" FILES
images/accessories-calculator.png
images/accessories-text-editor.png
images/background.jpg
images/help-browser.png
images/internet-group-chat.png
images/internet-mail.png
images/internet-web-browser.png
images/office-calendar.png
images/system-users.png)

View File

@ -0,0 +1,21 @@
# Generated from fademessage.pro.
#####################################################################
## fademessage Binary:
#####################################################################
add_qt_executable(fademessage
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/effects/fademessage"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/effects/fademessage"
SOURCES
fademessage.cpp fademessage.h
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(fademessage "fademessage" PREFIX "/" FILES
background.jpg)

View File

@ -0,0 +1,3 @@
# Generated from gestures.pro.
add_subdirectory(imagegestures)

View File

@ -0,0 +1,17 @@
# Generated from imagegestures.pro.
#####################################################################
## imagegestures Binary:
#####################################################################
add_qt_executable(imagegestures
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/gestures/imagegestures"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/gestures/imagegestures"
SOURCES
imagewidget.cpp imagewidget.h
main.cpp
mainwidget.cpp mainwidget.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,20 @@
# Generated from graphicsview.pro.
add_subdirectory(chip)
add_subdirectory(elasticnodes)
add_subdirectory(embeddeddialogs)
add_subdirectory(collidingmice)
add_subdirectory(padnavigator)
add_subdirectory(basicgraphicslayouts)
add_subdirectory(diagramscene)
if(QT_FEATURE_cursor AND QT_FEATURE_draganddrop)
add_subdirectory(dragdroprobot)
endif()
add_subdirectory(flowlayout)
add_subdirectory(anchorlayout)
add_subdirectory(simpleanchorlayout)
add_subdirectory(weatheranchorlayout)
if(TARGET Qt::OpenGL AND NOT QT_FEATURE_opengles2 AND NOT QT_FEATURE_dynamicgl)
add_subdirectory(boxes)
endif()

View File

@ -0,0 +1,15 @@
# Generated from anchorlayout.pro.
#####################################################################
## anchorlayout Binary:
#####################################################################
add_qt_executable(anchorlayout
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/anchorlayout"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/anchorlayout"
SOURCES
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,22 @@
# Generated from basicgraphicslayouts.pro.
#####################################################################
## basicgraphicslayouts Binary:
#####################################################################
add_qt_executable(basicgraphicslayouts
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/basicgraphicslayouts"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/basicgraphicslayouts"
SOURCES
layoutitem.cpp layoutitem.h
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(basicgraphicslayouts "basicgraphicslayouts" FILES
images/block.png)

View File

@ -0,0 +1,55 @@
# Generated from boxes.pro.
find_package(WrapOpenGL)
#####################################################################
## boxes Binary:
#####################################################################
add_qt_executable(boxes
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/boxes"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/boxes"
SOURCES
3rdparty/fbm.c 3rdparty/fbm.h
glbuffers.cpp glbuffers.h
glextensions.cpp glextensions.h
gltrianglemesh.h
main.cpp
qtbox.cpp qtbox.h
roundedbox.cpp roundedbox.h
scene.cpp scene.h
trackball.cpp trackball.h
LIBRARIES
Qt::OpenGL
Qt::Widgets
WrapOpenGL
)
# Resources:
add_qt_resource(boxes "boxes" PREFIX "/res/boxes" FILES
basic.fsh
basic.vsh
cubemap_negx.jpg
cubemap_negy.jpg
cubemap_negz.jpg
cubemap_posx.jpg
cubemap_posy.jpg
cubemap_posz.jpg
dotted.fsh
fresnel.fsh
glass.fsh
granite.fsh
marble.fsh
parameters.par
qt-logo.jpg
qt-logo.png
reflection.fsh
refraction.fsh
smiley.png
square.jpg
wood.fsh)
## Scopes:
#####################################################################

View File

@ -0,0 +1,44 @@
# Generated from chip.pro.
#####################################################################
## chip Binary:
#####################################################################
add_qt_executable(chip
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/chip"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/chip"
SOURCES
chip.cpp chip.h
main.cpp
mainwindow.cpp mainwindow.h
view.cpp view.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(chip "images" FILES
fileprint.png
qt4logo.png
rotateleft.png
rotateright.png
zoomin.png
zoomout.png)
## Scopes:
#####################################################################
extend_target(chip CONDITION TARGET Qt::PrintSupport
LIBRARIES
Qt::PrintSupport
)
extend_target(chip CONDITION TARGET Qt::OpenGL
LIBRARIES
Qt::OpenGL
)
#### Keys ignored in scope 4:.:chip.pro:build_all AND NOT build_pass:
# CONFIG = "-build_all" "release"

View File

@ -0,0 +1,21 @@
# Generated from collidingmice.pro.
#####################################################################
## collidingmice Binary:
#####################################################################
add_qt_executable(collidingmice
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/collidingmice"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/collidingmice"
SOURCES
main.cpp
mouse.cpp mouse.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(collidingmice "mice" PREFIX "/" FILES
images/cheese.jpg)

View File

@ -0,0 +1,39 @@
# Generated from diagramscene.pro.
#####################################################################
## diagramscene Binary:
#####################################################################
add_qt_executable(diagramscene
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/diagramscene"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/diagramscene"
SOURCES
arrow.cpp arrow.h
diagramitem.cpp diagramitem.h
diagramscene.cpp diagramscene.h
diagramtextitem.cpp diagramtextitem.h
main.cpp
mainwindow.cpp mainwindow.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(diagramscene "diagramscene" FILES
images/background1.png
images/background2.png
images/background3.png
images/background4.png
images/bold.png
images/bringtofront.png
images/delete.png
images/floodfill.png
images/italic.png
images/linecolor.png
images/linepointer.png
images/pointer.png
images/sendtoback.png
images/textpointer.png
images/underline.png)

View File

@ -0,0 +1,22 @@
# Generated from dragdroprobot.pro.
#####################################################################
## dragdroprobot Binary:
#####################################################################
add_qt_executable(dragdroprobot
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/dragdroprobot"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/dragdroprobot"
SOURCES
coloritem.cpp coloritem.h
main.cpp
robot.cpp robot.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(dragdroprobot "robot" PREFIX "/" FILES
images/head.png)

View File

@ -0,0 +1,18 @@
# Generated from elasticnodes.pro.
#####################################################################
## elasticnodes Binary:
#####################################################################
add_qt_executable(elasticnodes
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/elasticnodes"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/elasticnodes"
SOURCES
edge.cpp edge.h
graphwidget.cpp graphwidget.h
main.cpp
node.cpp node.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,28 @@
# Generated from embeddeddialogs.pro.
#####################################################################
## embeddeddialogs Binary:
#####################################################################
add_qt_executable(embeddeddialogs
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/embeddeddialogs"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/embeddeddialogs"
SOURCES
customproxy.cpp customproxy.h
embeddeddialog.cpp embeddeddialog.h embeddeddialog.ui
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(embeddeddialogs "embeddeddialogs" FILES
No-Ones-Laughing-3.jpg)
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:embeddeddialogs.pro:build_all AND NOT build_pass:
# CONFIG = "-build_all" "release"

View File

@ -0,0 +1,20 @@
# Generated from flowlayout.pro.
#####################################################################
## flowlayout Binary:
#####################################################################
add_qt_executable(flowlayout
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/flowlayout"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/flowlayout"
SOURCES
flowlayout.cpp flowlayout.h
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)
#### Keys ignored in scope 1:.:flowlayout.pro:<NONE>:
# QMAKE_PROJECT_NAME = "flowlayout_graphicsview"

View File

@ -0,0 +1,43 @@
# Generated from padnavigator.pro.
#####################################################################
## padnavigator Binary:
#####################################################################
add_qt_executable(padnavigator
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/padnavigator"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/padnavigator"
SOURCES
flippablepad.cpp flippablepad.h
form.ui
main.cpp
padnavigator.cpp padnavigator.h
roundrectitem.cpp roundrectitem.h
splashitem.cpp splashitem.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(padnavigator "padnavigator" FILES
images/artsfftscope.png
images/blue_angle_swirl.jpg
images/kontact_contacts.png
images/kontact_journal.png
images/kontact_mail.png
images/kontact_notes.png
images/kopeteavailable.png
images/metacontact_online.png
images/minitools.png)
#### Keys ignored in scope 1:.:padnavigator.pro:<NONE>:
# CONFIG = "console"
## Scopes:
#####################################################################
extend_target(padnavigator CONDITION TARGET Qt::OpenGL
LIBRARIES
Qt::OpenGL
)

View File

@ -0,0 +1,15 @@
# Generated from simpleanchorlayout.pro.
#####################################################################
## simpleanchorlayout Binary:
#####################################################################
add_qt_executable(simpleanchorlayout
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/simpleanchorlayout"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/simpleanchorlayout"
SOURCES
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,25 @@
# Generated from weatheranchorlayout.pro.
#####################################################################
## weatheranchorlayout Binary:
#####################################################################
add_qt_executable(weatheranchorlayout
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/weatheranchorlayout"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/weatheranchorlayout"
SOURCES
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(weatheranchorlayout "weatheranchorlayout" FILES
images/5days.jpg
images/details.jpg
images/place.jpg
images/tabbar.jpg
images/title.jpg
images/weather-few-clouds.png)

View File

@ -0,0 +1,27 @@
# Generated from itemviews.pro.
add_subdirectory(addressbook)
add_subdirectory(basicsortfiltermodel)
add_subdirectory(chart)
add_subdirectory(coloreditorfactory)
add_subdirectory(combowidgetmapper)
add_subdirectory(customsortfiltermodel)
add_subdirectory(dirview)
add_subdirectory(editabletreemodel)
add_subdirectory(fetchmore)
add_subdirectory(flattreeview)
add_subdirectory(frozencolumn)
add_subdirectory(interview)
add_subdirectory(pixelator)
if(QT_FEATURE_draganddrop) # special case
add_subdirectory(puzzle)
endif()
if(TARGET Qt::Xml) # special case
add_subdirectory(simpledommodel)
endif()
add_subdirectory(simpletreemodel)
add_subdirectory(simplewidgetmapper)
add_subdirectory(spinboxdelegate)
add_subdirectory(spreadsheet)
add_subdirectory(stardelegate)
add_subdirectory(storageview)

View File

@ -0,0 +1,20 @@
# Generated from addressbook.pro.
#####################################################################
## addressbook Binary:
#####################################################################
add_qt_executable(addressbook
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/addressbook"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/addressbook"
SOURCES
adddialog.cpp adddialog.h
addresswidget.cpp addresswidget.h
main.cpp
mainwindow.cpp mainwindow.h
newaddresstab.cpp newaddresstab.h
tablemodel.cpp tablemodel.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,16 @@
# Generated from basicsortfiltermodel.pro.
#####################################################################
## basicsortfiltermodel Binary:
#####################################################################
add_qt_executable(basicsortfiltermodel
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/basicsortfiltermodel"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/basicsortfiltermodel"
SOURCES
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,30 @@
# Generated from chart.pro.
#####################################################################
## chart Binary:
#####################################################################
add_qt_executable(chart
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/chart"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/chart"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
pieview.cpp pieview.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(chart "chart" PREFIX "/Charts" FILES
qtdata.cht)
## Scopes:
#####################################################################
extend_target(chart CONDITION UNIX AND NOT APPLE_OSX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS
LIBRARIES
m
)

View File

@ -0,0 +1,17 @@
# Generated from coloreditorfactory.pro.
#####################################################################
## coloreditorfactory Binary:
#####################################################################
add_qt_executable(coloreditorfactory
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/coloreditorfactory"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/coloreditorfactory"
SOURCES
colorlisteditor.cpp colorlisteditor.h
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,16 @@
# Generated from combowidgetmapper.pro.
#####################################################################
## combowidgetmapper Binary:
#####################################################################
add_qt_executable(combowidgetmapper
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/combowidgetmapper"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/combowidgetmapper"
SOURCES
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,23 @@
# Generated from customsortfiltermodel.pro.
#####################################################################
## customsortfiltermodel Binary:
#####################################################################
add_qt_executable(customsortfiltermodel
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/customsortfiltermodel"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/customsortfiltermodel"
SOURCES
filterwidget.cpp filterwidget.h
main.cpp
mysortfilterproxymodel.cpp mysortfilterproxymodel.h
window.cpp window.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(customsortfiltermodel "customsortfiltermodel" PREFIX "/" FILES
images/find.png)

View File

@ -0,0 +1,15 @@
# Generated from dirview.pro.
#####################################################################
## dirview Binary:
#####################################################################
add_qt_executable(dirview
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/dirview"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/dirview"
SOURCES
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,23 @@
# Generated from editabletreemodel.pro.
#####################################################################
## editabletreemodel Binary:
#####################################################################
add_qt_executable(editabletreemodel
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/editabletreemodel"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/editabletreemodel"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h mainwindow.ui
treeitem.cpp treeitem.h
treemodel.cpp treemodel.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(editabletreemodel "editabletreemodel" PREFIX "/" FILES
default.txt)

View File

@ -0,0 +1,17 @@
# Generated from fetchmore.pro.
#####################################################################
## fetchmore Binary:
#####################################################################
add_qt_executable(fetchmore
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/fetchmore"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/fetchmore"
SOURCES
filelistmodel.cpp filelistmodel.h
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,15 @@
# Generated from flattreeview.pro.
#####################################################################
## flattreeview Binary:
#####################################################################
add_qt_executable(flattreeview
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/flattreeview"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/flattreeview"
SOURCES
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,21 @@
# Generated from frozencolumn.pro.
#####################################################################
## frozencolumn Binary:
#####################################################################
add_qt_executable(frozencolumn
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/frozencolumn"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/frozencolumn"
SOURCES
freezetablewidget.cpp freezetablewidget.h
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(frozencolumn "grades" PREFIX "/" FILES
grades.txt)

View File

@ -0,0 +1,32 @@
# Generated from interview.pro.
#####################################################################
## interview Binary:
#####################################################################
add_qt_executable(interview
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/interview"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/interview"
SOURCES
main.cpp
model.cpp model.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(interview "interview" PREFIX "/" FILES
images/folder.png
images/interview.png
images/services.png)
#### Keys ignored in scope 1:.:interview.pro:<NONE>:
# TEMPLATE = "app"
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:interview.pro:build_all AND NOT build_pass:
# CONFIG = "-build_all" "release"

View File

@ -0,0 +1,31 @@
# Generated from pixelator.pro.
#####################################################################
## pixelator Binary:
#####################################################################
add_qt_executable(pixelator
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/pixelator"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/pixelator"
SOURCES
imagemodel.cpp imagemodel.h
main.cpp
mainwindow.cpp mainwindow.h
pixeldelegate.cpp pixeldelegate.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(pixelator "images" FILES
images/qt.png)
## Scopes:
#####################################################################
extend_target(pixelator CONDITION TARGET Qt::PrintSupport
LIBRARIES
Qt::PrintSupport
)

View File

@ -0,0 +1,23 @@
# Generated from puzzle.pro.
#####################################################################
## puzzle Binary:
#####################################################################
add_qt_executable(puzzle_itemview # special case
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/puzzle"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/puzzle"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
piecesmodel.cpp piecesmodel.h
puzzlewidget.cpp puzzlewidget.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(puzzle_itemview "puzzle" PREFIX "/images" FILES # special case
example.jpg)

View File

@ -0,0 +1,19 @@
# Generated from simpledommodel.pro.
#####################################################################
## simpledommodel Binary:
#####################################################################
add_qt_executable(simpledommodel
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simpledommodel"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simpledommodel"
SOURCES
domitem.cpp domitem.h
dommodel.cpp dommodel.h
main.cpp
mainwindow.cpp mainwindow.h
LIBRARIES
Qt::Xml
Qt::Widgets
)

View File

@ -0,0 +1,22 @@
# Generated from simpletreemodel.pro.
#####################################################################
## simpletreemodel Binary:
#####################################################################
add_qt_executable(simpletreemodel
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simpletreemodel"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simpletreemodel"
SOURCES
main.cpp
treeitem.cpp treeitem.h
treemodel.cpp treemodel.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(simpletreemodel "simpletreemodel" FILES
default.txt)

View File

@ -0,0 +1,16 @@
# Generated from simplewidgetmapper.pro.
#####################################################################
## simplewidgetmapper Binary:
#####################################################################
add_qt_executable(simplewidgetmapper
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simplewidgetmapper"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simplewidgetmapper"
SOURCES
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,16 @@
# Generated from spinboxdelegate.pro.
#####################################################################
## spinboxdelegate Binary:
#####################################################################
add_qt_executable(spinboxdelegate
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/spinboxdelegate"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/spinboxdelegate"
SOURCES
delegate.cpp delegate.h
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,35 @@
# Generated from spreadsheet.pro.
#####################################################################
## spreadsheet Binary:
#####################################################################
add_qt_executable(spreadsheet
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/spreadsheet"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/spreadsheet"
SOURCES
main.cpp
printview.cpp printview.h
spreadsheet.cpp spreadsheet.h
spreadsheetdelegate.cpp spreadsheetdelegate.h
spreadsheetitem.cpp spreadsheetitem.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(spreadsheet "spreadsheet" PREFIX "/" FILES
images/interview.png)
## Scopes:
#####################################################################
extend_target(spreadsheet CONDITION TARGET Qt::PrintSupport
LIBRARIES
Qt::PrintSupport
)
#### Keys ignored in scope 3:.:spreadsheet.pro:build_all AND NOT build_pass:
# CONFIG = "-build_all" "release"

View File

@ -0,0 +1,18 @@
# Generated from stardelegate.pro.
#####################################################################
## stardelegate Binary:
#####################################################################
add_qt_executable(stardelegate
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/stardelegate"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/stardelegate"
SOURCES
main.cpp
stardelegate.cpp stardelegate.h
stareditor.cpp stareditor.h
starrating.cpp starrating.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,20 @@
# Generated from storageview.pro.
#####################################################################
## storageview Binary:
#####################################################################
add_qt_executable(storageview
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/storageview"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/storageview"
SOURCES
main.cpp
storagemodel.cpp storagemodel.h
LIBRARIES
Qt::Gui
Qt::Widgets
)
#### Keys ignored in scope 1:.:storageview.pro:<NONE>:
# TEMPLATE = "app"

View File

@ -0,0 +1,6 @@
# Generated from layouts.pro.
add_subdirectory(basiclayouts)
add_subdirectory(borderlayout)
add_subdirectory(dynamiclayouts)
add_subdirectory(flowlayout)

View File

@ -0,0 +1,16 @@
# Generated from basiclayouts.pro.
#####################################################################
## basiclayouts Binary:
#####################################################################
add_qt_executable(basiclayouts
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/basiclayouts"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/basiclayouts"
SOURCES
dialog.cpp dialog.h
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,17 @@
# Generated from borderlayout.pro.
#####################################################################
## borderlayout Binary:
#####################################################################
add_qt_executable(borderlayout
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/borderlayout"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/borderlayout"
SOURCES
borderlayout.cpp borderlayout.h
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,16 @@
# Generated from dynamiclayouts.pro.
#####################################################################
## dynamiclayouts Binary:
#####################################################################
add_qt_executable(dynamiclayouts
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/dynamiclayouts"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/dynamiclayouts"
SOURCES
dialog.cpp dialog.h
main.cpp
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,17 @@
# Generated from flowlayout.pro.
#####################################################################
## flowlayout Binary:
#####################################################################
add_qt_executable(flowlayout_layout # special case
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/flowlayout"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/flowlayout"
SOURCES
flowlayout.cpp flowlayout.h
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,7 @@
# Generated from mac.pro.
if(APPLE_OSX)
add_subdirectory(qmaccocoaviewcontainer)
add_subdirectory(qmacnativewidget)
endif()

View File

@ -0,0 +1,19 @@
# Generated from qmaccocoaviewcontainer.pro.
#####################################################################
## qmaccocoaviewcontainer Binary:
#####################################################################
add_qt_executable(qmaccocoaviewcontainer
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mac/qmaccocoaviewcontainer"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mac/qmaccocoaviewcontainer"
SOURCES
main.mm
LIBRARIES
Qt::Widgets
${FWAppKit}
)
#### Keys ignored in scope 1:.:qmaccocoaviewcontainer.pro:<NONE>:
# TEMPLATE = "app"

View File

@ -0,0 +1,19 @@
# Generated from qmacnativewidget.pro.
#####################################################################
## qmacnativewidget Binary:
#####################################################################
add_qt_executable(qmacnativewidget
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mac/qmacnativewidget"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mac/qmacnativewidget"
SOURCES
main.mm
LIBRARIES
Qt::Widgets
${FWAppKit}
)
#### Keys ignored in scope 1:.:qmacnativewidget.pro:<NONE>:
# TEMPLATE = "app"

View File

@ -0,0 +1,8 @@
# Generated from mainwindows.pro.
add_subdirectory(application)
add_subdirectory(dockwidgets)
add_subdirectory(mainwindow)
add_subdirectory(mdi)
add_subdirectory(menus)
add_subdirectory(sdi)

View File

@ -0,0 +1,26 @@
# Generated from application.pro.
#####################################################################
## application Binary:
#####################################################################
add_qt_executable(application
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/application"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/application"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(application "application" FILES
images/copy.png
images/cut.png
images/new.png
images/open.png
images/paste.png
images/save.png)

View File

@ -0,0 +1,32 @@
# Generated from dockwidgets.pro.
#####################################################################
## dockwidgets Binary:
#####################################################################
add_qt_executable(dockwidgets
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/dockwidgets"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/dockwidgets"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(dockwidgets "dockwidgets" FILES
images/new.png
images/print.png
images/save.png
images/undo.png)
## Scopes:
#####################################################################
extend_target(dockwidgets CONDITION TARGET Qt::PrintSupport
LIBRARIES
Qt::PrintSupport
)

View File

@ -0,0 +1,35 @@
# Generated from mainwindow.pro.
#####################################################################
## mainwindow Binary:
#####################################################################
add_qt_executable(mainwindow
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/mainwindow"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/mainwindow"
SOURCES
colorswatch.cpp colorswatch.h
main.cpp
mainwindow.cpp mainwindow.h
toolbar.cpp toolbar.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(mainwindow "mainwindow" PREFIX "/res" FILES
qt.png
titlebarCenter.png
titlebarLeft.png
titlebarRight.png)
#### Keys ignored in scope 1:.:mainwindow.pro:<NONE>:
# TEMPLATE = "app"
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:mainwindow.pro:build_all AND NOT build_pass:
# CONFIG = "-build_all" "release"

View File

@ -0,0 +1,27 @@
# Generated from mdi.pro.
#####################################################################
## mdi Binary:
#####################################################################
add_qt_executable(mdi
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/mdi"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/mdi"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
mdichild.cpp mdichild.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(mdi "mdi" FILES
images/copy.png
images/cut.png
images/new.png
images/open.png
images/paste.png
images/save.png)

View File

@ -0,0 +1,16 @@
# Generated from menus.pro.
#####################################################################
## menus Binary:
#####################################################################
add_qt_executable(menus
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/menus"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/menus"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,26 @@
# Generated from sdi.pro.
#####################################################################
## sdi Binary:
#####################################################################
add_qt_executable(sdi
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/sdi"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/sdi"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(sdi "sdi" FILES
images/copy.png
images/cut.png
images/new.png
images/open.png
images/paste.png
images/save.png)

View File

@ -0,0 +1,14 @@
# Generated from painting.pro.
add_subdirectory(shared) # special case
add_subdirectory(basicdrawing)
add_subdirectory(concentriccircles)
add_subdirectory(affine)
# add_subdirectory(composition) # FIXME: Seems buggy wrt. usesOpenGL function
add_subdirectory(deform)
add_subdirectory(gradients)
add_subdirectory(pathstroke)
add_subdirectory(imagecomposition)
add_subdirectory(painterpaths)
add_subdirectory(transformations)
add_subdirectory(fontsampler)

View File

@ -0,0 +1,23 @@
# Generated from affine.pro.
#####################################################################
## affine Binary:
#####################################################################
add_qt_executable(affine
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/affine"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/affine"
SOURCES
main.cpp
xform.cpp xform.h
# INCLUDE_DIRECTORIES ../shared # special case
LIBRARIES # special case
painting_shared
)
# Resources:
add_qt_resource(affine "affine" PREFIX "/res/affine" FILES
bg1.jpg
xform.cpp
xform.html)

View File

@ -0,0 +1,23 @@
# Generated from basicdrawing.pro.
#####################################################################
## basicdrawing Binary:
#####################################################################
add_qt_executable(basicdrawing
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/basicdrawing"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/basicdrawing"
SOURCES
main.cpp
renderarea.cpp renderarea.h
window.cpp window.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(basicdrawing "basicdrawing" FILES
images/brick.png
images/qt-logo.png)

View File

@ -0,0 +1,23 @@
# Generated from composition.pro.
#####################################################################
## composition Binary:
#####################################################################
add_qt_executable(composition
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/composition"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/composition"
SOURCES
composition.cpp composition.h
main.cpp
LIBRARIES # special case
painting_shared
)
# Resources:
add_qt_resource(composition "composition" PREFIX "/res/composition" FILES
composition.cpp
composition.html
flower.jpg
flower_alpha.jpg)

View File

@ -0,0 +1,17 @@
# Generated from concentriccircles.pro.
#####################################################################
## concentriccircles Binary:
#####################################################################
add_qt_executable(concentriccircles
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/concentriccircles"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/concentriccircles"
SOURCES
circlewidget.cpp circlewidget.h
main.cpp
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,21 @@
# Generated from deform.pro.
#####################################################################
## deform Binary:
#####################################################################
add_qt_executable(deform
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/deform"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/deform"
SOURCES
main.cpp
pathdeform.cpp pathdeform.h
LIBRARIES # special case
painting_shared
)
# Resources:
add_qt_resource(deform "deform" PREFIX "/res/deform" FILES
pathdeform.cpp
pathdeform.html)

View File

@ -0,0 +1,25 @@
# Generated from fontsampler.pro.
#####################################################################
## fontsampler Binary:
#####################################################################
add_qt_executable(fontsampler
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/fontsampler"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/fontsampler"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
mainwindowbase.ui
LIBRARIES
Qt::Widgets
)
## Scopes:
#####################################################################
extend_target(fontsampler CONDITION TARGET Qt::PrintSupport
LIBRARIES
Qt::PrintSupport
)

View File

@ -0,0 +1,21 @@
# Generated from gradients.pro.
#####################################################################
## gradients Binary:
#####################################################################
add_qt_executable(gradients
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/gradients"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/gradients"
SOURCES
gradients.cpp gradients.h
main.cpp
LIBRARIES # special case
painting_shared
)
# Resources:
add_qt_resource(gradients "gradients" PREFIX "/res/gradients" FILES
gradients.cpp
gradients.html)

View File

@ -0,0 +1,22 @@
# Generated from imagecomposition.pro.
#####################################################################
## imagecomposition Binary:
#####################################################################
add_qt_executable(imagecomposition
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/imagecomposition"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/imagecomposition"
SOURCES
imagecomposer.cpp imagecomposer.h
main.cpp
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(imagecomposition "imagecomposition" FILES
images/butterfly.png
images/checker.png)

View File

@ -0,0 +1,26 @@
# Generated from painterpaths.pro.
#####################################################################
## painterpaths Binary:
#####################################################################
add_qt_executable(painterpaths
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/painterpaths"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/painterpaths"
SOURCES
main.cpp
renderarea.cpp renderarea.h
window.cpp window.h
LIBRARIES
Qt::Widgets
painting_shared # special case
)
## Scopes:
#####################################################################
extend_target(painterpaths CONDITION UNIX AND NOT APPLE_OSX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS
LIBRARIES
m
)

View File

@ -0,0 +1,21 @@
# Generated from pathstroke.pro.
#####################################################################
## pathstroke Binary:
#####################################################################
add_qt_executable(pathstroke
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/pathstroke"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/pathstroke"
SOURCES
main.cpp
pathstroke.cpp pathstroke.h
LIBRARIES # special case
painting_shared
)
# Resources:
add_qt_resource(pathstroke "pathstroke" PREFIX "/res/pathstroke" FILES
pathstroke.cpp
pathstroke.html)

View File

@ -0,0 +1,64 @@
# special case: Entire file!
# special case:
add_library(painting_shared OBJECT)
qt_manual_moc(moc_files arthurwidgets.h hoverpoints.h) # no automoc for OBJECT libs:-/
target_sources(painting_shared PRIVATE
arthurstyle.cpp arthurstyle.h
arthurwidgets.cpp arthurwidgets.h
hoverpoints.cpp hoverpoints.h
${moc_files}
)
target_link_libraries(painting_shared PUBLIC Qt::Widgets)
target_include_directories(painting_shared PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
# Resources:
add_qt_resource(painting_shared "shared" PREFIX "/res" FILES
images/button_normal_cap_left.png
images/button_normal_cap_right.png
images/button_normal_stretch.png
images/button_pressed_cap_left.png
images/button_pressed_cap_right.png
images/button_pressed_stretch.png
images/frame_bottom.png
images/frame_bottomleft.png
images/frame_bottomright.png
images/frame_left.png
images/frame_right.png
images/frame_top.png
images/frame_topleft.png
images/frame_topright.png
images/groupframe_bottom_left.png
images/groupframe_bottom_right.png
images/groupframe_bottom_stretch.png
images/groupframe_left_stretch.png
images/groupframe_right_stretch.png
images/groupframe_top_stretch.png
images/groupframe_topleft.png
images/groupframe_topright.png
images/line_dash_dot.png
images/line_dash_dot_dot.png
images/line_dashed.png
images/line_dotted.png
images/line_solid.png
images/radiobutton-on.png
images/radiobutton_off.png
images/radiobutton_on.png
images/slider_bar.png
images/slider_thumb_on.png
images/title_cap_left.png
images/title_cap_right.png
images/title_stretch.png)
## Scopes:
#####################################################################
extend_target(painting_shared CONDITION TARGET Qt::OpenGL OR QT_FEATURE_opengles2
DEFINES
QT_OPENGL_SUPPORT
LIBRARIES
Qt::OpenGL
Qt::Widgets
)

View File

@ -0,0 +1,17 @@
# Generated from transformations.pro.
#####################################################################
## transformations Binary:
#####################################################################
add_qt_executable(transformations
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/transformations"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/transformations"
SOURCES
main.cpp
renderarea.cpp renderarea.h
window.cpp window.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,6 @@
# Generated from richtext.pro.
add_subdirectory(calendar)
add_subdirectory(orderform)
add_subdirectory(syntaxhighlighter)
add_subdirectory(textedit)

View File

@ -0,0 +1,16 @@
# Generated from calendar.pro.
#####################################################################
## calendar Binary:
#####################################################################
add_qt_executable(calendar
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/calendar"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/calendar"
SOURCES
main.cpp
mainwindow.cpp mainwindow.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,25 @@
# Generated from orderform.pro.
#####################################################################
## orderform Binary:
#####################################################################
add_qt_executable(orderform
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/orderform"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/orderform"
SOURCES
detailsdialog.cpp detailsdialog.h
main.cpp
mainwindow.cpp mainwindow.h
LIBRARIES
Qt::Widgets
)
## Scopes:
#####################################################################
extend_target(orderform CONDITION TARGET Qt::PrintSupport
LIBRARIES
Qt::PrintSupport
)

View File

@ -0,0 +1,17 @@
# Generated from syntaxhighlighter.pro.
#####################################################################
## syntaxhighlighter Binary:
#####################################################################
add_qt_executable(syntaxhighlighter
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/syntaxhighlighter"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/syntaxhighlighter"
SOURCES
highlighter.cpp highlighter.h
main.cpp
mainwindow.cpp mainwindow.h
LIBRARIES
Qt::Widgets
)

View File

@ -0,0 +1,75 @@
# Generated from textedit.pro.
#####################################################################
## textedit Binary:
#####################################################################
add_qt_executable(textedit
GUI
OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/textedit"
INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/textedit"
SOURCES
main.cpp
textedit.cpp textedit.h
LIBRARIES
Qt::Widgets
)
# Resources:
add_qt_resource(textedit "textedit" PREFIX "/" FILES
example.html
images/logo32.png
images/mac/editcopy.png
images/mac/editcut.png
images/mac/editpaste.png
images/mac/editredo.png
images/mac/editundo.png
images/mac/exportpdf.png
images/mac/filenew.png
images/mac/fileopen.png
images/mac/fileprint.png
images/mac/filesave.png
images/mac/textbold.png
images/mac/textcenter.png
images/mac/textitalic.png
images/mac/textjustify.png
images/mac/textleft.png
images/mac/textright.png
images/mac/textunder.png
images/mac/zoomin.png
images/mac/zoomout.png
images/win/editcopy.png
images/win/editcut.png
images/win/editpaste.png
images/win/editredo.png
images/win/editundo.png
images/win/exportpdf.png
images/win/filenew.png
images/win/fileopen.png
images/win/fileprint.png
images/win/filesave.png
images/win/textbold.png
images/win/textcenter.png
images/win/textitalic.png
images/win/textjustify.png
images/win/textleft.png
images/win/textright.png
images/win/textunder.png
images/win/zoomin.png
images/win/zoomout.png)
#### Keys ignored in scope 1:.:textedit.pro:<NONE>:
# EXAMPLE_FILES = "textedit.qdoc"
# TEMPLATE = "app"
## Scopes:
#####################################################################
extend_target(textedit CONDITION TARGET Qt::PrintSupport
LIBRARIES
Qt::PrintSupport
)
#### Keys ignored in scope 3:.:textedit.pro:build_all AND NOT build_pass:
# CONFIG = "-build_all" "release"

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