Skip to content

Commit

Permalink
Merge pull request cneben#217 from cneben/develop
Browse files Browse the repository at this point in the history
2.4.0
  • Loading branch information
cneben authored Jan 4, 2024
2 parents 7559d74 + 629c92f commit 6009c79
Show file tree
Hide file tree
Showing 222 changed files with 4,367 additions and 2,494 deletions.
Empty file added .gitmodules
Empty file.
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# CHANGELOG

## 20231116 2.4.0:
- Rewrite the Qt5/6 CMake configuration.
- Remove all QUICKQANAVA_QT_MAJOR_VERSION and all compilation options, compilation is now always "static".
- Fix bugs in multiple selection dragging.
- Update https://github.com/oysteinmyrmo/bezier to `0.2.1`.
- Features:
- Add dragging of nodes / groups by keyboard arrow keys.
- Add custom QML group delegate support in `qan::Graph::insertGroup()`.

## 20230406 prev2.3.0:
- Fix a serious bug on multiple selection dragging and snap to grid.
- Fix a table node grouping issue when cols==1 or rows==1.

## 20221226 prev2.3.0:
- #185: Add horizontal or vertical constrain on node/group dragging, see new property `qan::NodeItem::dragOrientation`.

## 20221225 prev2.3.0:
- #185: Add support for "snap to grid" when moving node or groups.
- Add |qan::Graph`, `snapToGrid` and `snapToGridSize` properties.

## 20221225 v2.2.0:
- Release v2.2.0

## 20221215 v2.2.0:
- #183: Add a `multipleSelectionEnabled` property to `qan::Graph` to enable or disable multiple selection.

Expand All @@ -16,7 +39,7 @@
- #167: Add partial edge selection support.
- #164: Change signature of qan::Graph::connectorRequestEdgeCreation().

## 20220824 v2.1.1:
## 20220824 v2*$.1.1:
- Change signature of two public API methods (public but presumably mainly used internally):
- Rename qan::Graph::collectInerEdges() to qan::Graph::collectInnerEdges().
- Rename qan::Graph::collectAncestorsDfs() to qan::Graph::collectAncestors().
Expand Down
7 changes: 7 additions & 0 deletions CMakeLists.qt5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.5.0)

add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x050F00)

find_package(Qt5 REQUIRED COMPONENTS Core Quick Qml Quick QuickControls2 REQUIRED)
message("Building QuickQanava with Qt5")

9 changes: 9 additions & 0 deletions CMakeLists.qt6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.5.0)

# Specific to Qt6
add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x050F00)

find_package(Qt6 REQUIRED COMPONENTS Core Quick Qml Quick QuickControls2)

message("QuickQanava building with Qt6")

34 changes: 11 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,33 +1,21 @@
cmake_minimum_required(VERSION 3.5.0)

project(QuickQanava VERSION 2.1.0 LANGUAGES CXX)
project(QuickQanava VERSION 2.4.0 LANGUAGES CXX)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x050F00)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Qml Quick QuickControls2 REQUIRED)
message("Building with Qt" ${QT_VERSION_MAJOR})
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Quick Qml Quick QuickControls2)

option(QUICK_QANAVA_BUILD_SAMPLES "Build the samples" TRUE)
option(QUICK_QANAVA_BUILD_STATIC_QRC "Build *.qrc resources statically" TRUE)
option(QUICK_QANAVA_WINDOWS_DEPLOY "Use windeployqt on Windows" FALSE)
message("Building QuickQanava for Qt${QT_VERSION_MAJOR}")

add_subdirectory(QuickContainers)
add_subdirectory(src)
option(QUICK_QANAVA_BUILD_SAMPLES "Build the samples" FALSE)

if (${QUICK_QANAVA_BUILD_SAMPLES})
#add_subdirectory(samples/resizer)
#add_subdirectory(samples/navigable)
add_subdirectory(samples/nodes)
add_subdirectory(samples/cpp)
add_subdirectory(samples/edges)
add_subdirectory(samples/connector)
add_subdirectory(samples/groups)
add_subdirectory(samples/selection)
add_subdirectory(samples/style)
add_subdirectory(samples/dataflow)
add_subdirectory(samples/topology)
if (${QT_VERSION_MAJOR} EQUAL 5)
include(CMakeLists.qt5.txt)
else()
include(CMakeLists.qt6.txt)
endif()

add_subdirectory(exports)
add_subdirectory(src)
58 changes: 0 additions & 58 deletions QuickContainers/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions QuickContainers/quickcontainers.pri

This file was deleted.

19 changes: 0 additions & 19 deletions QuickContainers/samples/containermodel/containermodel.pro

This file was deleted.

93 changes: 0 additions & 93 deletions QuickContainers/samples/containermodel/containermodel.qml

This file was deleted.

8 changes: 0 additions & 8 deletions QuickContainers/samples/containermodel/containermodel.qrc

This file was deleted.

Loading

0 comments on commit 6009c79

Please sign in to comment.