diff --git a/CMakeLists.txt b/CMakeLists.txt index b8a58145..b4cffaae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -355,7 +355,7 @@ if(KDDockWidgets_EXAMPLES) if(KDDW_FRONTEND_QTWIDGETS) add_subdirectory(examples/dockwidgets) add_subdirectory(examples/minimal) - add_subdirectory(examples/minimal-mdi) + add_subdirectory(examples/mdi) add_subdirectory(examples/mdi_with_docking) set_compiler_flags(qtwidgets_dockwidgets) set_compiler_flags(qtwidgets_minimal) diff --git a/code.dev.code-workspace b/code.dev.code-workspace index 64da93be..1587e8ae 100644 --- a/code.dev.code-workspace +++ b/code.dev.code-workspace @@ -50,10 +50,10 @@ "cwd": "${workspaceFolder}" }, { - "name": "qtwidgets_minimal_mdi", + "name": "qtwidgets_mdi", "type": "lldb", "request": "launch", - "program": "${workspaceFolder}/build-dev/bin/examples/qtwidgets_minimal_mdi", + "program": "${workspaceFolder}/build-dev/bin/examples/qtwidgets_mdi", "args": [], "cwd": "${workspaceFolder}" }, @@ -104,10 +104,10 @@ "externalConsole": false }, { - "name": "msvc-qtwidgets_minimal_mdi", + "name": "msvc-qtwidgets_mdi", "type": "cppvsdbg", "request": "launch", - "program": "${workspaceFolder}/build-dev/bin/examples/qtwidgets_minimal_mdi", + "program": "${workspaceFolder}/build-dev/bin/examples/qtwidgets_mdi", "args": [], "cwd": "${workspaceFolder}", "stopAtEntry": false, @@ -125,4 +125,4 @@ } ] } -} +} \ No newline at end of file diff --git a/code.dev6.code-workspace b/code.dev6.code-workspace index 1b4d21d4..5c771ad1 100644 --- a/code.dev6.code-workspace +++ b/code.dev6.code-workspace @@ -50,10 +50,10 @@ "cwd": "${workspaceFolder}" }, { - "name": "qtwidgets_minimal_mdi", + "name": "qtwidgets_mdi", "type": "lldb", "request": "launch", - "program": "${workspaceFolder}/build-dev6/bin/examples/qtwidgets_minimal_mdi", + "program": "${workspaceFolder}/build-dev6/bin/examples/qtwidgets_mdi", "args": [], "cwd": "${workspaceFolder}" }, @@ -104,10 +104,10 @@ "externalConsole": false }, { - "name": "msvc-qtwidgets_minimal_mdi", + "name": "msvc-qtwidgets_mdi", "type": "cppvsdbg", "request": "launch", - "program": "${workspaceFolder}/build-dev6/bin/examples/qtwidgets_minimal_mdi", + "program": "${workspaceFolder}/build-dev6/bin/examples/qtwidgets_mdi", "args": [], "cwd": "${workspaceFolder}", "stopAtEntry": false, @@ -125,4 +125,4 @@ } ] } -} +} \ No newline at end of file diff --git a/examples/minimal-mdi/CMakeLists.txt b/examples/mdi/CMakeLists.txt similarity index 78% rename from examples/minimal-mdi/CMakeLists.txt rename to examples/mdi/CMakeLists.txt index e8c1a5c8..1a832add 100644 --- a/examples/minimal-mdi/CMakeLists.txt +++ b/examples/mdi/CMakeLists.txt @@ -10,7 +10,7 @@ # cmake_minimum_required(VERSION 3.7) -project(qtwidgets_minimal_mdi) +project(qtwidgets_mdi) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) @@ -24,15 +24,15 @@ endif() set(RESOURCES_EXAMPLE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../dockwidgets/resources_example.qrc) -add_executable(qtwidgets_minimal_mdi +add_executable(qtwidgets_mdi main.cpp ../dockwidgets/MyWidget.cpp ${RESOURCES_EXAMPLE_SRC} ) -set_target_properties(qtwidgets_minimal_mdi PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/examples/" ) +set_target_properties(qtwidgets_mdi PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/examples/" ) -target_link_libraries(qtwidgets_minimal_mdi +target_link_libraries(qtwidgets_mdi PRIVATE KDAB::kddockwidgets ) diff --git a/examples/minimal-mdi/MyWidget.cpp b/examples/mdi/MyWidget.cpp similarity index 100% rename from examples/minimal-mdi/MyWidget.cpp rename to examples/mdi/MyWidget.cpp diff --git a/examples/minimal-mdi/MyWidget.h b/examples/mdi/MyWidget.h similarity index 100% rename from examples/minimal-mdi/MyWidget.h rename to examples/mdi/MyWidget.h diff --git a/examples/minimal-mdi/main.cpp b/examples/mdi/main.cpp similarity index 100% rename from examples/minimal-mdi/main.cpp rename to examples/mdi/main.cpp