diff options
Diffstat (limited to 'examples/widgets')
30 files changed, 0 insertions, 1721 deletions
diff --git a/examples/widgets/.prev_CMakeLists.txt b/examples/widgets/.prev_CMakeLists.txt deleted file mode 100644 index cffc0a6293..0000000000 --- a/examples/widgets/.prev_CMakeLists.txt +++ /dev/null @@ -1,32 +0,0 @@ -# Generated from widgets.pro. - -if(NOT TARGET Qt::Widgets) - return() -endif() -if(QT_FEATURE_animation) - add_subdirectory(animation) -endif() -add_subdirectory(desktop) -add_subdirectory(dialogs) -add_subdirectory(effects) -add_subdirectory(gallery) -add_subdirectory(gestures) -add_subdirectory(graphicsview) -add_subdirectory(itemviews) -add_subdirectory(layouts) -add_subdirectory(painting) -add_subdirectory(richtext) -add_subdirectory(scroller) -add_subdirectory(tools) -add_subdirectory(touch) -add_subdirectory(tutorials) -add_subdirectory(widgets) -if(QT_FEATURE_draganddrop) - add_subdirectory(draganddrop) -endif() -if(QT_FEATURE_cursor) - add_subdirectory(mainwindows) -endif() -if(QT_FEATURE_opengl AND TARGET Qt::Gui) - add_subdirectory(windowcontainer) -endif() diff --git a/examples/widgets/dialogs/.prev_CMakeLists.txt b/examples/widgets/dialogs/.prev_CMakeLists.txt deleted file mode 100644 index 354424bf1f..0000000000 --- a/examples/widgets/dialogs/.prev_CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -# Generated from dialogs.pro. - -if(QT_FEATURE_wizard) - add_subdirectory(classwizard) - add_subdirectory(trivialwizard) -endif() -add_subdirectory(extension) -add_subdirectory(findfiles) -add_subdirectory(standarddialogs) -add_subdirectory(tabdialog) -if(QT_FEATURE_wizard AND TARGET Qt::PrintSupport) - add_subdirectory(licensewizard) -endif() diff --git a/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt b/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt deleted file mode 100644 index bcc7708662..0000000000 --- a/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt +++ /dev/null @@ -1,55 +0,0 @@ -# Generated from puzzle.pro. - -cmake_minimum_required(VERSION 3.14) -project(puzzle LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/puzzle") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(puzzle - main.cpp - mainwindow.cpp mainwindow.h - pieceslist.cpp pieceslist.h - puzzlewidget.cpp puzzlewidget.h -) -set_target_properties(puzzle PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(puzzle PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(puzzle_resource_files - "example.jpg" -) - -qt6_add_resources(puzzle "puzzle" - PREFIX - "/images" - FILES - ${puzzle_resource_files} -) - -install(TARGETS puzzle - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt b/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt deleted file mode 100644 index 1140aeb969..0000000000 --- a/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt +++ /dev/null @@ -1,66 +0,0 @@ -# Generated from chip.pro. - -cmake_minimum_required(VERSION 3.14) -project(chip LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/chip") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(chip - chip.cpp chip.h - main.cpp - mainwindow.cpp mainwindow.h - view.cpp view.h -) -set_target_properties(chip PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(chip PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(images_resource_files - "fileprint.png" - "qt4logo.png" - "rotateleft.png" - "rotateright.png" - "zoomin.png" - "zoomout.png" -) - -qt6_add_resources(chip "images" - PREFIX - "/" - FILES - ${images_resource_files} -) - -if(TARGET Qt::PrintSupport) - target_link_libraries(chip PUBLIC - Qt::PrintSupport - ) -endif() - -install(TARGETS chip - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt b/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt deleted file mode 100644 index 4208ba303e..0000000000 --- a/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt +++ /dev/null @@ -1,41 +0,0 @@ -# Generated from flowlayout.pro. - -cmake_minimum_required(VERSION 3.14) -project(flowlayout LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/flowlayout") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(flowlayout - flowlayout.cpp flowlayout.h - main.cpp - window.cpp window.h -) -set_target_properties(flowlayout PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(flowlayout PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -install(TARGETS flowlayout - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/itemviews/.prev_CMakeLists.txt b/examples/widgets/itemviews/.prev_CMakeLists.txt deleted file mode 100644 index 96f03a2e61..0000000000 --- a/examples/widgets/itemviews/.prev_CMakeLists.txt +++ /dev/null @@ -1,27 +0,0 @@ -# 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) -add_subdirectory(simpletreemodel) -add_subdirectory(simplewidgetmapper) -add_subdirectory(spinboxdelegate) -add_subdirectory(spreadsheet) -add_subdirectory(stardelegate) -add_subdirectory(storageview) -if(QT_FEATURE_draganddrop) - add_subdirectory(puzzle) -endif() -if(TARGET Qt::Xml) - add_subdirectory(simpledommodel) -endif() diff --git a/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt b/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt deleted file mode 100644 index 2beeba0939..0000000000 --- a/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt +++ /dev/null @@ -1,61 +0,0 @@ -# Generated from pixelator.pro. - -cmake_minimum_required(VERSION 3.14) -project(pixelator LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/itemviews/pixelator") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(pixelator - imagemodel.cpp imagemodel.h - main.cpp - mainwindow.cpp mainwindow.h - pixeldelegate.cpp pixeldelegate.h -) -set_target_properties(pixelator PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(pixelator PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(images_resource_files - "images/qt.png" -) - -qt6_add_resources(pixelator "images" - PREFIX - "/" - FILES - ${images_resource_files} -) - -if(TARGET Qt::PrintSupport) - target_link_libraries(pixelator PUBLIC - Qt::PrintSupport - ) -endif() - -install(TARGETS pixelator - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt b/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt deleted file mode 100644 index b80cb9c29b..0000000000 --- a/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt +++ /dev/null @@ -1,55 +0,0 @@ -# Generated from puzzle.pro. - -cmake_minimum_required(VERSION 3.14) -project(puzzle LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/itemviews/puzzle") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(puzzle - main.cpp - mainwindow.cpp mainwindow.h - piecesmodel.cpp piecesmodel.h - puzzlewidget.cpp puzzlewidget.h -) -set_target_properties(puzzle PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(puzzle PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(puzzle_resource_files - "example.jpg" -) - -qt6_add_resources(puzzle "puzzle" - PREFIX - "/images" - FILES - ${puzzle_resource_files} -) - -install(TARGETS puzzle - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt b/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt deleted file mode 100644 index e14931e62f..0000000000 --- a/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt +++ /dev/null @@ -1,62 +0,0 @@ -# Generated from spreadsheet.pro. - -cmake_minimum_required(VERSION 3.14) -project(spreadsheet LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/itemviews/spreadsheet") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(spreadsheet - main.cpp - printview.cpp printview.h - spreadsheet.cpp spreadsheet.h - spreadsheetdelegate.cpp spreadsheetdelegate.h - spreadsheetitem.cpp spreadsheetitem.h -) -set_target_properties(spreadsheet PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(spreadsheet PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(spreadsheet_resource_files - "images/interview.png" -) - -qt6_add_resources(spreadsheet "spreadsheet" - PREFIX - "/" - FILES - ${spreadsheet_resource_files} -) - -if(TARGET Qt::PrintSupport) - target_link_libraries(spreadsheet PUBLIC - Qt::PrintSupport - ) -endif() - -install(TARGETS spreadsheet - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt b/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt deleted file mode 100644 index 2affbef3b9..0000000000 --- a/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt +++ /dev/null @@ -1,62 +0,0 @@ -# Generated from dockwidgets.pro. - -cmake_minimum_required(VERSION 3.14) -project(dockwidgets LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/dockwidgets") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(dockwidgets - main.cpp - mainwindow.cpp mainwindow.h -) -set_target_properties(dockwidgets PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(dockwidgets PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(dockwidgets_resource_files - "images/new.png" - "images/print.png" - "images/save.png" - "images/undo.png" -) - -qt6_add_resources(dockwidgets "dockwidgets" - PREFIX - "/" - FILES - ${dockwidgets_resource_files} -) - -if(TARGET Qt::PrintSupport) - target_link_libraries(dockwidgets PUBLIC - Qt::PrintSupport - ) -endif() - -install(TARGETS dockwidgets - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/painting/.prev_CMakeLists.txt b/examples/widgets/painting/.prev_CMakeLists.txt deleted file mode 100644 index 2ef5da303a..0000000000 --- a/examples/widgets/painting/.prev_CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -# Generated from painting.pro. - -add_subdirectory(basicdrawing) -add_subdirectory(concentriccircles) -add_subdirectory(affine) -add_subdirectory(composition) -add_subdirectory(deform) -add_subdirectory(gradients) -add_subdirectory(pathstroke) -add_subdirectory(imagecomposition) -add_subdirectory(painterpaths) -add_subdirectory(transformations) -add_subdirectory(fontsampler) diff --git a/examples/widgets/painting/affine/.prev_CMakeLists.txt b/examples/widgets/painting/affine/.prev_CMakeLists.txt deleted file mode 100644 index 4efe5f28a7..0000000000 --- a/examples/widgets/painting/affine/.prev_CMakeLists.txt +++ /dev/null @@ -1,118 +0,0 @@ -# Generated from affine.pro. - -cmake_minimum_required(VERSION 3.14) -project(affine LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/painting/affine") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(affine - ../shared/arthurstyle.cpp ../shared/arthurstyle.h - ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h - ../shared/hoverpoints.cpp ../shared/hoverpoints.h - main.cpp - xform.cpp xform.h -) -set_target_properties(affine PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_include_directories(affine PUBLIC - ../shared -) - -target_link_libraries(affine PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(shared_resource_files - "../shared/images/button_normal_cap_left.png" - "../shared/images/button_normal_cap_right.png" - "../shared/images/button_normal_stretch.png" - "../shared/images/button_pressed_cap_left.png" - "../shared/images/button_pressed_cap_right.png" - "../shared/images/button_pressed_stretch.png" - "../shared/images/frame_bottom.png" - "../shared/images/frame_bottomleft.png" - "../shared/images/frame_bottomright.png" - "../shared/images/frame_left.png" - "../shared/images/frame_right.png" - "../shared/images/frame_top.png" - "../shared/images/frame_topleft.png" - "../shared/images/frame_topright.png" - "../shared/images/groupframe_bottom_left.png" - "../shared/images/groupframe_bottom_right.png" - "../shared/images/groupframe_bottom_stretch.png" - "../shared/images/groupframe_left_stretch.png" - "../shared/images/groupframe_right_stretch.png" - "../shared/images/groupframe_top_stretch.png" - "../shared/images/groupframe_topleft.png" - "../shared/images/groupframe_topright.png" - "../shared/images/line_dash_dot.png" - "../shared/images/line_dash_dot_dot.png" - "../shared/images/line_dashed.png" - "../shared/images/line_dotted.png" - "../shared/images/line_solid.png" - "../shared/images/radiobutton-on.png" - "../shared/images/radiobutton_off.png" - "../shared/images/radiobutton_on.png" - "../shared/images/slider_bar.png" - "../shared/images/slider_thumb_on.png" - "../shared/images/title_cap_left.png" - "../shared/images/title_cap_right.png" - "../shared/images/title_stretch.png" -) - -qt6_add_resources(affine "shared" - PREFIX - "/res" - BASE - "../shared" - FILES - ${shared_resource_files} -) -set(affine_resource_files - "bg1.jpg" - "xform.cpp" - "xform.html" -) - -qt6_add_resources(affine "affine" - PREFIX - "/res/affine" - FILES - ${affine_resource_files} -) - -if(QT_FEATURE_opengl) - target_sources(affine PUBLIC - ../shared/fbopaintdevice.cpp ../shared/fbopaintdevice.h - ) - - target_link_libraries(affine PUBLIC - Qt::OpenGL - ) -endif() - -install(TARGETS affine - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/painting/composition/.prev_CMakeLists.txt b/examples/widgets/painting/composition/.prev_CMakeLists.txt deleted file mode 100644 index 7cf2aab45f..0000000000 --- a/examples/widgets/painting/composition/.prev_CMakeLists.txt +++ /dev/null @@ -1,119 +0,0 @@ -# Generated from composition.pro. - -cmake_minimum_required(VERSION 3.14) -project(composition LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/painting/composition") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(composition - ../shared/arthurstyle.cpp ../shared/arthurstyle.h - ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h - ../shared/hoverpoints.cpp ../shared/hoverpoints.h - composition.cpp composition.h - main.cpp -) -set_target_properties(composition PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_include_directories(composition PUBLIC - ../shared -) - -target_link_libraries(composition PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(shared_resource_files - "../shared/images/button_normal_cap_left.png" - "../shared/images/button_normal_cap_right.png" - "../shared/images/button_normal_stretch.png" - "../shared/images/button_pressed_cap_left.png" - "../shared/images/button_pressed_cap_right.png" - "../shared/images/button_pressed_stretch.png" - "../shared/images/frame_bottom.png" - "../shared/images/frame_bottomleft.png" - "../shared/images/frame_bottomright.png" - "../shared/images/frame_left.png" - "../shared/images/frame_right.png" - "../shared/images/frame_top.png" - "../shared/images/frame_topleft.png" - "../shared/images/frame_topright.png" - "../shared/images/groupframe_bottom_left.png" - "../shared/images/groupframe_bottom_right.png" - "../shared/images/groupframe_bottom_stretch.png" - "../shared/images/groupframe_left_stretch.png" - "../shared/images/groupframe_right_stretch.png" - "../shared/images/groupframe_top_stretch.png" - "../shared/images/groupframe_topleft.png" - "../shared/images/groupframe_topright.png" - "../shared/images/line_dash_dot.png" - "../shared/images/line_dash_dot_dot.png" - "../shared/images/line_dashed.png" - "../shared/images/line_dotted.png" - "../shared/images/line_solid.png" - "../shared/images/radiobutton-on.png" - "../shared/images/radiobutton_off.png" - "../shared/images/radiobutton_on.png" - "../shared/images/slider_bar.png" - "../shared/images/slider_thumb_on.png" - "../shared/images/title_cap_left.png" - "../shared/images/title_cap_right.png" - "../shared/images/title_stretch.png" -) - -qt6_add_resources(composition "shared" - PREFIX - "/res" - BASE - "../shared" - FILES - ${shared_resource_files} -) -set(composition_resource_files - "composition.cpp" - "composition.html" - "flower.jpg" - "flower_alpha.jpg" -) - -qt6_add_resources(composition "composition" - PREFIX - "/res/composition" - FILES - ${composition_resource_files} -) - -if(QT_FEATURE_opengl) - target_sources(composition PUBLIC - ../shared/fbopaintdevice.cpp ../shared/fbopaintdevice.h - ) - - target_link_libraries(composition PUBLIC - Qt::OpenGL - ) -endif() - -install(TARGETS composition - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/painting/deform/.prev_CMakeLists.txt b/examples/widgets/painting/deform/.prev_CMakeLists.txt deleted file mode 100644 index c99df00a5a..0000000000 --- a/examples/widgets/painting/deform/.prev_CMakeLists.txt +++ /dev/null @@ -1,117 +0,0 @@ -# Generated from deform.pro. - -cmake_minimum_required(VERSION 3.14) -project(deform LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/painting/deform") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(deform - ../shared/arthurstyle.cpp ../shared/arthurstyle.h - ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h - ../shared/hoverpoints.cpp ../shared/hoverpoints.h - main.cpp - pathdeform.cpp pathdeform.h -) -set_target_properties(deform PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_include_directories(deform PUBLIC - ../shared -) - -target_link_libraries(deform PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(shared_resource_files - "../shared/images/button_normal_cap_left.png" - "../shared/images/button_normal_cap_right.png" - "../shared/images/button_normal_stretch.png" - "../shared/images/button_pressed_cap_left.png" - "../shared/images/button_pressed_cap_right.png" - "../shared/images/button_pressed_stretch.png" - "../shared/images/frame_bottom.png" - "../shared/images/frame_bottomleft.png" - "../shared/images/frame_bottomright.png" - "../shared/images/frame_left.png" - "../shared/images/frame_right.png" - "../shared/images/frame_top.png" - "../shared/images/frame_topleft.png" - "../shared/images/frame_topright.png" - "../shared/images/groupframe_bottom_left.png" - "../shared/images/groupframe_bottom_right.png" - "../shared/images/groupframe_bottom_stretch.png" - "../shared/images/groupframe_left_stretch.png" - "../shared/images/groupframe_right_stretch.png" - "../shared/images/groupframe_top_stretch.png" - "../shared/images/groupframe_topleft.png" - "../shared/images/groupframe_topright.png" - "../shared/images/line_dash_dot.png" - "../shared/images/line_dash_dot_dot.png" - "../shared/images/line_dashed.png" - "../shared/images/line_dotted.png" - "../shared/images/line_solid.png" - "../shared/images/radiobutton-on.png" - "../shared/images/radiobutton_off.png" - "../shared/images/radiobutton_on.png" - "../shared/images/slider_bar.png" - "../shared/images/slider_thumb_on.png" - "../shared/images/title_cap_left.png" - "../shared/images/title_cap_right.png" - "../shared/images/title_stretch.png" -) - -qt6_add_resources(deform "shared" - PREFIX - "/res" - BASE - "../shared" - FILES - ${shared_resource_files} -) -set(deform_resource_files - "pathdeform.cpp" - "pathdeform.html" -) - -qt6_add_resources(deform "deform" - PREFIX - "/res/deform" - FILES - ${deform_resource_files} -) - -if(QT_FEATURE_opengl) - target_sources(deform PUBLIC - ../shared/fbopaintdevice.cpp ../shared/fbopaintdevice.h - ) - - target_link_libraries(deform PUBLIC - Qt::OpenGL - ) -endif() - -install(TARGETS deform - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/painting/gradients/.prev_CMakeLists.txt b/examples/widgets/painting/gradients/.prev_CMakeLists.txt deleted file mode 100644 index 1260b18089..0000000000 --- a/examples/widgets/painting/gradients/.prev_CMakeLists.txt +++ /dev/null @@ -1,117 +0,0 @@ -# Generated from gradients.pro. - -cmake_minimum_required(VERSION 3.14) -project(gradients LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/painting/gradients") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(gradients - ../shared/arthurstyle.cpp ../shared/arthurstyle.h - ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h - ../shared/hoverpoints.cpp ../shared/hoverpoints.h - gradients.cpp gradients.h - main.cpp -) -set_target_properties(gradients PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_include_directories(gradients PUBLIC - ../shared -) - -target_link_libraries(gradients PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(shared_resource_files - "../shared/images/button_normal_cap_left.png" - "../shared/images/button_normal_cap_right.png" - "../shared/images/button_normal_stretch.png" - "../shared/images/button_pressed_cap_left.png" - "../shared/images/button_pressed_cap_right.png" - "../shared/images/button_pressed_stretch.png" - "../shared/images/frame_bottom.png" - "../shared/images/frame_bottomleft.png" - "../shared/images/frame_bottomright.png" - "../shared/images/frame_left.png" - "../shared/images/frame_right.png" - "../shared/images/frame_top.png" - "../shared/images/frame_topleft.png" - "../shared/images/frame_topright.png" - "../shared/images/groupframe_bottom_left.png" - "../shared/images/groupframe_bottom_right.png" - "../shared/images/groupframe_bottom_stretch.png" - "../shared/images/groupframe_left_stretch.png" - "../shared/images/groupframe_right_stretch.png" - "../shared/images/groupframe_top_stretch.png" - "../shared/images/groupframe_topleft.png" - "../shared/images/groupframe_topright.png" - "../shared/images/line_dash_dot.png" - "../shared/images/line_dash_dot_dot.png" - "../shared/images/line_dashed.png" - "../shared/images/line_dotted.png" - "../shared/images/line_solid.png" - "../shared/images/radiobutton-on.png" - "../shared/images/radiobutton_off.png" - "../shared/images/radiobutton_on.png" - "../shared/images/slider_bar.png" - "../shared/images/slider_thumb_on.png" - "../shared/images/title_cap_left.png" - "../shared/images/title_cap_right.png" - "../shared/images/title_stretch.png" -) - -qt6_add_resources(gradients "shared" - PREFIX - "/res" - BASE - "../shared" - FILES - ${shared_resource_files} -) -set(gradients_resource_files - "gradients.cpp" - "gradients.html" -) - -qt6_add_resources(gradients "gradients" - PREFIX - "/res/gradients" - FILES - ${gradients_resource_files} -) - -if(QT_FEATURE_opengl) - target_sources(gradients PUBLIC - ../shared/fbopaintdevice.cpp ../shared/fbopaintdevice.h - ) - - target_link_libraries(gradients PUBLIC - Qt::OpenGL - ) -endif() - -install(TARGETS gradients - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/painting/pathstroke/.prev_CMakeLists.txt b/examples/widgets/painting/pathstroke/.prev_CMakeLists.txt deleted file mode 100644 index e2c1d5f793..0000000000 --- a/examples/widgets/painting/pathstroke/.prev_CMakeLists.txt +++ /dev/null @@ -1,117 +0,0 @@ -# Generated from pathstroke.pro. - -cmake_minimum_required(VERSION 3.14) -project(pathstroke LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/painting/pathstroke") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(pathstroke - ../shared/arthurstyle.cpp ../shared/arthurstyle.h - ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h - ../shared/hoverpoints.cpp ../shared/hoverpoints.h - main.cpp - pathstroke.cpp pathstroke.h -) -set_target_properties(pathstroke PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_include_directories(pathstroke PUBLIC - ../shared -) - -target_link_libraries(pathstroke PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(shared_resource_files - "../shared/images/button_normal_cap_left.png" - "../shared/images/button_normal_cap_right.png" - "../shared/images/button_normal_stretch.png" - "../shared/images/button_pressed_cap_left.png" - "../shared/images/button_pressed_cap_right.png" - "../shared/images/button_pressed_stretch.png" - "../shared/images/frame_bottom.png" - "../shared/images/frame_bottomleft.png" - "../shared/images/frame_bottomright.png" - "../shared/images/frame_left.png" - "../shared/images/frame_right.png" - "../shared/images/frame_top.png" - "../shared/images/frame_topleft.png" - "../shared/images/frame_topright.png" - "../shared/images/groupframe_bottom_left.png" - "../shared/images/groupframe_bottom_right.png" - "../shared/images/groupframe_bottom_stretch.png" - "../shared/images/groupframe_left_stretch.png" - "../shared/images/groupframe_right_stretch.png" - "../shared/images/groupframe_top_stretch.png" - "../shared/images/groupframe_topleft.png" - "../shared/images/groupframe_topright.png" - "../shared/images/line_dash_dot.png" - "../shared/images/line_dash_dot_dot.png" - "../shared/images/line_dashed.png" - "../shared/images/line_dotted.png" - "../shared/images/line_solid.png" - "../shared/images/radiobutton-on.png" - "../shared/images/radiobutton_off.png" - "../shared/images/radiobutton_on.png" - "../shared/images/slider_bar.png" - "../shared/images/slider_thumb_on.png" - "../shared/images/title_cap_left.png" - "../shared/images/title_cap_right.png" - "../shared/images/title_stretch.png" -) - -qt6_add_resources(pathstroke "shared" - PREFIX - "/res" - BASE - "../shared" - FILES - ${shared_resource_files} -) -set(pathstroke_resource_files - "pathstroke.cpp" - "pathstroke.html" -) - -qt6_add_resources(pathstroke "pathstroke" - PREFIX - "/res/pathstroke" - FILES - ${pathstroke_resource_files} -) - -if(QT_FEATURE_opengl) - target_sources(pathstroke PUBLIC - ../shared/fbopaintdevice.cpp ../shared/fbopaintdevice.h - ) - - target_link_libraries(pathstroke PUBLIC - Qt::OpenGL - ) -endif() - -install(TARGETS pathstroke - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/richtext/textedit/.prev_CMakeLists.txt b/examples/widgets/richtext/textedit/.prev_CMakeLists.txt deleted file mode 100644 index c32496a98b..0000000000 --- a/examples/widgets/richtext/textedit/.prev_CMakeLists.txt +++ /dev/null @@ -1,108 +0,0 @@ -# Generated from textedit.pro. - -cmake_minimum_required(VERSION 3.14) -project(textedit LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/richtext/textedit") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(textedit - main.cpp - textedit.cpp textedit.h -) -set_target_properties(textedit PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(textedit PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(textedit_resource_files - "example.html" - "images/logo32.png" - "images/mac/checkbox-checked.png" - "images/mac/checkbox.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/format-indent-less.png" - "images/mac/format-indent-more.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/textundercolor.png" - "images/mac/zoomin.png" - "images/mac/zoomout.png" - "images/win/checkbox-checked.png" - "images/win/checkbox.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/format-indent-less.png" - "images/win/format-indent-more.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/textundercolor.png" - "images/win/zoomin.png" - "images/win/zoomout.png" -) - -qt6_add_resources(textedit "textedit" - PREFIX - "/" - FILES - ${textedit_resource_files} -) - -if(TARGET Qt::PrintSupport) - target_link_libraries(textedit PUBLIC - Qt::PrintSupport - ) -endif() - -install(TARGETS textedit - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/tools/.prev_CMakeLists.txt b/examples/widgets/tools/.prev_CMakeLists.txt deleted file mode 100644 index 29e7f8f9e8..0000000000 --- a/examples/widgets/tools/.prev_CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -# Generated from tools.pro. - -add_subdirectory(completer) -add_subdirectory(customcompleter) -add_subdirectory(regularexpression) -add_subdirectory(settingseditor) -add_subdirectory(styleplugin) -add_subdirectory(treemodelcompleter) -add_subdirectory(undo) -add_subdirectory(undoframework) -if(QT_FEATURE_library) - add_subdirectory(echoplugin) - add_subdirectory(plugandpaint) -endif() -if(QT_FEATURE_translation) - add_subdirectory(i18n) -endif() diff --git a/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt b/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt deleted file mode 100644 index 1262ce5452..0000000000 --- a/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt +++ /dev/null @@ -1,41 +0,0 @@ -# Generated from echowindow.pro. - -cmake_minimum_required(VERSION 3.14) -project(echoplugin LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/tools/echoplugin") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(echoplugin - echointerface.h - echowindow.cpp echowindow.h - main.cpp -) -set_target_properties(echoplugin PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(echoplugin PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -install(TARGETS echoplugin - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/tools/echoplugin/plugin/.prev_CMakeLists.txt b/examples/widgets/tools/echoplugin/plugin/.prev_CMakeLists.txt deleted file mode 100644 index 9f3a93b3bd..0000000000 --- a/examples/widgets/tools/echoplugin/plugin/.prev_CMakeLists.txt +++ /dev/null @@ -1,35 +0,0 @@ -# Generated from plugin.pro. - -cmake_minimum_required(VERSION 3.14) -project(echoplugin LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -set(INSTALL_EXAMPLEDIR "examples/widgets/tools/echoplugin/plugins") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -add_library(echoplugin MODULE - echoplugin.cpp echoplugin.h -) -target_include_directories(echoplugin PUBLIC - ../echowindow -) - -target_link_libraries(echoplugin PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -install(TARGETS echoplugin - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt deleted file mode 100644 index feaac7ad8f..0000000000 --- a/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt +++ /dev/null @@ -1,74 +0,0 @@ -# Generated from app.pro. - -cmake_minimum_required(VERSION 3.14) -project(plugandpaint LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/tools/plugandpaint") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(plugandpaint - interfaces.h - main.cpp - mainwindow.cpp mainwindow.h - paintarea.cpp paintarea.h - plugindialog.cpp plugindialog.h -) -set_target_properties(plugandpaint PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(plugandpaint PUBLIC - # Remove: L../plugins - Qt::Core - Qt::Gui - Qt::Widgets -) - -if(macx-xcode) - target_link_libraries(plugandpaint PUBLIC - ( - ) - pnp_basictools$ - ) -endif() - -if(NOT macx-xcode) - target_link_libraries(plugandpaint PUBLIC - pnp_basictools - ) -endif() - -if(((NOT (macx-xcode)) AND (( NOT debug_and_release OR build_pass ) AND CONFIG(debug,debug OR release))) AND (APPLE)) - target_link_libraries(plugandpaint PUBLIC - (LIBS, 0) - (LIBS, 1) - _debug - ) -endif() - -if(((NOT (macx-xcode)) AND (( NOT debug_and_release OR build_pass ) AND CONFIG(debug,debug OR release))) AND (WIN32)) - target_link_libraries(plugandpaint PUBLIC - (LIBS, 0) - (LIBS, 1) - d - ) -endif() - -install(TARGETS plugandpaint - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/tools/plugandpaint/plugins/basictools/.prev_CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/basictools/.prev_CMakeLists.txt deleted file mode 100644 index 76474c282b..0000000000 --- a/examples/widgets/tools/plugandpaint/plugins/basictools/.prev_CMakeLists.txt +++ /dev/null @@ -1,36 +0,0 @@ -# Generated from basictools.pro. - -cmake_minimum_required(VERSION 3.14) -project(pnp_basictools LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -set(INSTALL_EXAMPLEDIR "examples/widgets/tools/plugandpaint/plugins") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt6_add_plugin(pnp_basictools STATIC) -target_sources(pnp_basictools PRIVATE - basictoolsplugin.cpp basictoolsplugin.h -) -target_include_directories(pnp_basictools PUBLIC - ../../app -) - -target_link_libraries(pnp_basictools PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -install(TARGETS pnp_basictools - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/tools/plugandpaint/plugins/extrafilters/.prev_CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/extrafilters/.prev_CMakeLists.txt deleted file mode 100644 index 57f37843b8..0000000000 --- a/examples/widgets/tools/plugandpaint/plugins/extrafilters/.prev_CMakeLists.txt +++ /dev/null @@ -1,36 +0,0 @@ -# Generated from extrafilters.pro. - -cmake_minimum_required(VERSION 3.14) -project(pnp_extrafilters LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -set(INSTALL_EXAMPLEDIR "examples/widgets/tools/plugandpaint/plugins") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_plugin(pnp_extrafilters) -target_sources(pnp_extrafilters PRIVATE - extrafiltersplugin.cpp extrafiltersplugin.h -) -target_include_directories(pnp_extrafilters PUBLIC - ../../app -) - -target_link_libraries(pnp_extrafilters PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -install(TARGETS pnp_extrafilters - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/tools/styleplugin/.prev_CMakeLists.txt b/examples/widgets/tools/styleplugin/.prev_CMakeLists.txt deleted file mode 100644 index 630c3703f8..0000000000 --- a/examples/widgets/tools/styleplugin/.prev_CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ -# Generated from styleplugin.pro. - -add_subdirectory(stylewindow) -add_subdirectory(plugin) diff --git a/examples/widgets/tools/styleplugin/plugin/.prev_CMakeLists.txt b/examples/widgets/tools/styleplugin/plugin/.prev_CMakeLists.txt deleted file mode 100644 index c1be706fde..0000000000 --- a/examples/widgets/tools/styleplugin/plugin/.prev_CMakeLists.txt +++ /dev/null @@ -1,32 +0,0 @@ -# Generated from plugin.pro. - -cmake_minimum_required(VERSION 3.14) -project(simplestyleplugin LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -set(INSTALL_EXAMPLEDIR "examples/widgets/tools/styleplugin/styles") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -add_library(simplestyleplugin MODULE - simplestyle.cpp simplestyle.h - simplestyleplugin.cpp simplestyleplugin.h -) -target_link_libraries(simplestyleplugin PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -install(TARGETS simplestyleplugin - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt b/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt deleted file mode 100644 index 3077bf5bc6..0000000000 --- a/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt +++ /dev/null @@ -1,47 +0,0 @@ -# Generated from fingerpaint.pro. - -cmake_minimum_required(VERSION 3.14) -project(fingerpaint LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/touch/fingerpaint") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(fingerpaint - main.cpp - mainwindow.cpp mainwindow.h - scribblearea.cpp scribblearea.h -) -set_target_properties(fingerpaint PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(fingerpaint PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -if(TARGET Qt::PrintSupport) - target_link_libraries(fingerpaint PUBLIC - Qt::PrintSupport - ) -endif() - -install(TARGETS fingerpaint - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt b/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt deleted file mode 100644 index 119ca9d6cf..0000000000 --- a/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt +++ /dev/null @@ -1,76 +0,0 @@ -# Generated from notepad.pro. - -cmake_minimum_required(VERSION 3.14) -project(notepad LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/tutorials/notepad") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(notepad - main.cpp - notepad.cpp notepad.h notepad.ui -) -set_target_properties(notepad PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(notepad PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - - -# Resources: -set(notepad_resource_files - "images/bold.png" - "images/copy.png" - "images/create.png" - "images/cut.png" - "images/edit_redo.png" - "images/edit_undo.png" - "images/exit.png" - "images/font.png" - "images/info.png" - "images/italic.png" - "images/new.png" - "images/open.png" - "images/paste.png" - "images/pencil.png" - "images/print.png" - "images/save.png" - "images/save_as.png" - "images/underline.png" -) - -qt6_add_resources(notepad "notepad" - PREFIX - "/" - FILES - ${notepad_resource_files} -) - -if(TARGET Qt::PrintSupport) - target_link_libraries(notepad PUBLIC - Qt::PrintSupport - ) -endif() - -install(TARGETS notepad - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/widgets/icons/.prev_CMakeLists.txt b/examples/widgets/widgets/icons/.prev_CMakeLists.txt deleted file mode 100644 index ff25b3eaef..0000000000 --- a/examples/widgets/widgets/icons/.prev_CMakeLists.txt +++ /dev/null @@ -1,47 +0,0 @@ -# Generated from icons.pro. - -cmake_minimum_required(VERSION 3.14) -project(icons LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/widgets/icons") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(icons - iconpreviewarea.cpp iconpreviewarea.h - iconsizespinbox.cpp iconsizespinbox.h - imagedelegate.cpp imagedelegate.h - main.cpp - mainwindow.cpp mainwindow.h -) -set_target_properties(icons PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_compile_definitions(icons PUBLIC - SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\" -) - -target_link_libraries(icons PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -install(TARGETS icons - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt b/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt deleted file mode 100644 index 9603f8dcbd..0000000000 --- a/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt +++ /dev/null @@ -1,46 +0,0 @@ -# Generated from imageviewer.pro. - -cmake_minimum_required(VERSION 3.14) -project(imageviewer LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/widgets/imageviewer") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(imageviewer - imageviewer.cpp imageviewer.h - main.cpp -) -set_target_properties(imageviewer PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(imageviewer PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -if(TARGET Qt::PrintSupport) - target_link_libraries(imageviewer PUBLIC - Qt::PrintSupport - ) -endif() - -install(TARGETS imageviewer - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/widgets/widgets/scribble/.prev_CMakeLists.txt b/examples/widgets/widgets/scribble/.prev_CMakeLists.txt deleted file mode 100644 index 2ce40dc8cb..0000000000 --- a/examples/widgets/widgets/scribble/.prev_CMakeLists.txt +++ /dev/null @@ -1,47 +0,0 @@ -# Generated from scribble.pro. - -cmake_minimum_required(VERSION 3.14) -project(scribble LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/widgets/scribble") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - -qt_add_executable(scribble - main.cpp - mainwindow.cpp mainwindow.h - scribblearea.cpp scribblearea.h -) -set_target_properties(scribble PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(scribble PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets -) - -if(TARGET Qt::PrintSupport) - target_link_libraries(scribble PUBLIC - Qt::PrintSupport - ) -endif() - -install(TARGETS scribble - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) |