удалено: build/.qt/QtDeploySupport.cmake

удалено:       build/.qt/QtDeployTargets.cmake
	удалено:       build/CMakeCache.txt
	удалено:       build/CMakeFiles/4.1.2/CMakeCXXCompiler.cmake
	удалено:       build/CMakeFiles/4.1.2/CMakeDetermineCompilerABI_CXX.bin
	удалено:       build/CMakeFiles/4.1.2/CMakeSystem.cmake
	удалено:       build/CMakeFiles/4.1.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
	удалено:       build/CMakeFiles/4.1.2/CompilerIdCXX/a.out
	удалено:       build/CMakeFiles/CMakeConfigureLog.yaml
	удалено:       build/CMakeFiles/CMakeDirectoryInformation.cmake
	удалено:       build/CMakeFiles/CMakeRuleHashes.txt
	удалено:       build/CMakeFiles/InstallScripts.json
	удалено:       build/CMakeFiles/Makefile.cmake
	удалено:       build/CMakeFiles/Makefile2
	удалено:       build/CMakeFiles/TargetDirectories.txt
	удалено:       build/CMakeFiles/cmake.check_cache
	удалено:       build/CMakeFiles/idef0_editor.dir/DependInfo.cmake
	удалено:       build/CMakeFiles/idef0_editor.dir/build.make
	удалено:       build/CMakeFiles/idef0_editor.dir/cmake_clean.cmake
	удалено:       build/CMakeFiles/idef0_editor.dir/compiler_depend.internal
	удалено:       build/CMakeFiles/idef0_editor.dir/compiler_depend.make
	удалено:       build/CMakeFiles/idef0_editor.dir/compiler_depend.ts
	удалено:       build/CMakeFiles/idef0_editor.dir/depend.make
	удалено:       build/CMakeFiles/idef0_editor.dir/flags.make
	удалено:       build/CMakeFiles/idef0_editor.dir/idef0_editor_autogen/mocs_compilation.cpp.o
	удалено:       build/CMakeFiles/idef0_editor.dir/idef0_editor_autogen/mocs_compilation.cpp.o.d
	удалено:       build/CMakeFiles/idef0_editor.dir/link.d
	удалено:       build/CMakeFiles/idef0_editor.dir/link.txt
	удалено:       build/CMakeFiles/idef0_editor.dir/progress.make
	удалено:       build/CMakeFiles/idef0_editor.dir/src/MainWindow.cpp.o
	удалено:       build/CMakeFiles/idef0_editor.dir/src/MainWindow.cpp.o.d
	удалено:       build/CMakeFiles/idef0_editor.dir/src/items/ArrowItem.cpp.o
	удалено:       build/CMakeFiles/idef0_editor.dir/src/items/ArrowItem.cpp.o.d
	удалено:       build/CMakeFiles/idef0_editor.dir/src/items/BlockItem.cpp.o
	удалено:       build/CMakeFiles/idef0_editor.dir/src/items/BlockItem.cpp.o.d
	удалено:       build/CMakeFiles/idef0_editor.dir/src/items/DiagramScene.cpp.o
	удалено:       build/CMakeFiles/idef0_editor.dir/src/items/DiagramScene.cpp.o.d
	удалено:       build/CMakeFiles/idef0_editor.dir/src/items/JunctionItem.cpp.o
	удалено:       build/CMakeFiles/idef0_editor.dir/src/items/JunctionItem.cpp.o.d
	удалено:       build/CMakeFiles/idef0_editor.dir/src/main.cpp.o
	удалено:       build/CMakeFiles/idef0_editor.dir/src/main.cpp.o.d
	удалено:       build/CMakeFiles/idef0_editor_autogen.dir/AutogenInfo.json
	удалено:       build/CMakeFiles/idef0_editor_autogen.dir/AutogenUsed.txt
	удалено:       build/CMakeFiles/idef0_editor_autogen.dir/DependInfo.cmake
	удалено:       build/CMakeFiles/idef0_editor_autogen.dir/ParseCache.txt
	удалено:       build/CMakeFiles/idef0_editor_autogen.dir/build.make
	удалено:       build/CMakeFiles/idef0_editor_autogen.dir/cmake_clean.cmake
	удалено:       build/CMakeFiles/idef0_editor_autogen.dir/compiler_depend.internal
удалено:       build/CMakeFiles/idef0_editor_autogen.dir/compiler_depend.make
	удалено:       build/CMakeFiles/idef0_editor_autogen.dir/compiler_depend.ts
	удалено:       build/CMakeFiles/idef0_editor_autogen.dir/progress.make
	удалено:       build/CMakeFiles/idef0_editor_autogen_timestamp_deps.dir/DependInfo.cmake
	удалено:       build/CMakeFiles/idef0_editor_autogen_timestamp_deps.dir/build.make
	удалено:       build/CMakeFiles/idef0_editor_autogen_timestamp_deps.dir/cmake_clean.cmake
	удалено:       build/CMakeFiles/idef0_editor_autogen_timestamp_deps.dir/compiler_depend.make
	удалено:       build/CMakeFiles/idef0_editor_autogen_timestamp_deps.dir/compiler_depend.ts
	удалено:       build/CMakeFiles/idef0_editor_autogen_timestamp_deps.dir/progress.make
	удалено:       build/CMakeFiles/progress.marks
	удалено:       build/Makefile
	удалено:       build/cmake_install.cmake
	удалено:       build/idef0_editor
	удалено:       build/idef0_editor_autogen/DWIBBXP2LJ/moc_BlockItem.cpp
	удалено:       build/idef0_editor_autogen/DWIBBXP2LJ/moc_BlockItem.cpp.d
	удалено:       build/idef0_editor_autogen/DWIBBXP2LJ/moc_DiagramScene.cpp
	удалено:       build/idef0_editor_autogen/DWIBBXP2LJ/moc_DiagramScene.cpp.d
	удалено:       build/idef0_editor_autogen/DWIBBXP2LJ/moc_JunctionItem.cpp
	удалено:       build/idef0_editor_autogen/DWIBBXP2LJ/moc_JunctionItem.cpp.d
	удалено:       build/idef0_editor_autogen/UVLADIE3JM/moc_MainWindow.cpp
	удалено:       build/idef0_editor_autogen/UVLADIE3JM/moc_MainWindow.cpp.d
	удалено:       build/idef0_editor_autogen/deps
	удалено:       build/idef0_editor_autogen/moc_predefs.h
	удалено:       build/idef0_editor_autogen/mocs_compilation.cpp
	удалено:       build/idef0_editor_autogen/timestamp
	удалено:       codex
	изменено:      src/items/ArrowItem.cpp
	изменено:      src/items/ArrowItem.h
	изменено:      src/items/BlockItem.h
	изменено:      src/items/DiagramScene.cpp
	изменено:      src/items/DiagramScene.h
This commit is contained in:
Gregory Bednov 2026-02-23 00:23:03 +03:00
commit abdbae5a11
79 changed files with 218 additions and 46399 deletions

View file

@ -45,7 +45,7 @@ public:
std::optional<QPointF> hitTest(const QPointF& scenePos, qreal radius) const;
private:
enum class DragPart { None, BendX, TopHorizontal, BottomHorizontal };
enum class DragPart { None, BendX, TopHorizontal, BottomHorizontal, FromEnd, ToEnd };
Endpoint m_from;
Endpoint m_to;
@ -77,4 +77,5 @@ protected:
void mouseMoveEvent(QGraphicsSceneMouseEvent* e) override;
void mouseReleaseEvent(QGraphicsSceneMouseEvent* e) override;
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* e) override;
bool adjustEndpoint(Endpoint& ep, const QPointF& delta);
};