diff options
Diffstat (limited to 'examples/widgets/graphicsview')
14 files changed, 387 insertions, 0 deletions
diff --git a/examples/widgets/graphicsview/CMakeLists.txt b/examples/widgets/graphicsview/CMakeLists.txt new file mode 100644 index 0000000000..19f60011e5 --- /dev/null +++ b/examples/widgets/graphicsview/CMakeLists.txt @@ -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() diff --git a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt new file mode 100644 index 0000000000..8149f96784 --- /dev/null +++ b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt @@ -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 +) diff --git a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt new file mode 100644 index 0000000000..d285a35ecc --- /dev/null +++ b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt @@ -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) + diff --git a/examples/widgets/graphicsview/boxes/CMakeLists.txt b/examples/widgets/graphicsview/boxes/CMakeLists.txt new file mode 100644 index 0000000000..10ff8b5b47 --- /dev/null +++ b/examples/widgets/graphicsview/boxes/CMakeLists.txt @@ -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: +##################################################################### diff --git a/examples/widgets/graphicsview/chip/CMakeLists.txt b/examples/widgets/graphicsview/chip/CMakeLists.txt new file mode 100644 index 0000000000..566a8aae02 --- /dev/null +++ b/examples/widgets/graphicsview/chip/CMakeLists.txt @@ -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" diff --git a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt new file mode 100644 index 0000000000..5455bec89e --- /dev/null +++ b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt @@ -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) + diff --git a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt new file mode 100644 index 0000000000..fb3ff6c712 --- /dev/null +++ b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt @@ -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) + diff --git a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt new file mode 100644 index 0000000000..76932368e8 --- /dev/null +++ b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt @@ -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) + diff --git a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt new file mode 100644 index 0000000000..d1c10327b0 --- /dev/null +++ b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt @@ -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 +) diff --git a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt new file mode 100644 index 0000000000..d31e15102e --- /dev/null +++ b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt @@ -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" diff --git a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt new file mode 100644 index 0000000000..2d313ff700 --- /dev/null +++ b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt @@ -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" diff --git a/examples/widgets/graphicsview/padnavigator/CMakeLists.txt b/examples/widgets/graphicsview/padnavigator/CMakeLists.txt new file mode 100644 index 0000000000..ad879d3a8b --- /dev/null +++ b/examples/widgets/graphicsview/padnavigator/CMakeLists.txt @@ -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 +) diff --git a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt new file mode 100644 index 0000000000..87e4742b44 --- /dev/null +++ b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt @@ -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 +) diff --git a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt new file mode 100644 index 0000000000..5a20bbdb2e --- /dev/null +++ b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt @@ -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) + |