Skip to content

Commit c489e13

Browse files
committed
Merge branch 'release/v1.3.3'
2 parents 33c794f + 0cab962 commit c489e13

38 files changed

Lines changed: 506 additions & 91 deletions

.github/workflows/deploy-linux-appimage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
deploy:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout code
1212
uses: actions/checkout@v2
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install package
1616
run: |
1717
sudo apt-get update
18-
sudo apt-get -y install qt6-base-dev libqt6svg6-dev freeglut3-dev fuse
18+
sudo apt-get -y install qtbase5-dev libqt5svg5-dev freeglut3-dev
1919
- name: Build and test
2020
run: ci/buildappimage.sh
2121
- name: Create Release

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
static_analysis:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@v2
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install package
1515
run: |
1616
sudo apt-get update
17-
sudo apt-get -y install qt6-base-dev libqt6svg6-dev freeglut3-dev lcov
17+
sudo apt-get -y install qtbase5-dev libqt5svg5-dev freeglut3-dev lcov
1818
- name: Install build wrapper
1919
run: |
2020
wget http://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ find_package(codecov)
3838

3939
find_package(PythonInterp)
4040

41-
find_package(Qt6 COMPONENTS REQUIRED
41+
find_package(Qt5 COMPONENTS REQUIRED
4242
Core
4343
Widgets
4444
Gui
@@ -58,8 +58,8 @@ set(INCLUDE_DIRS
5858
template
5959
${CMAKE_BINARY_DIR}/src
6060
${CMAKE_BINARY_DIR}/template
61-
${Qt6Widgets_INCLUDE_DIRS}
62-
${Qt6Gui_INCLUDE_DIRS}
61+
${Qt5Widgets_INCLUDE_DIRS}
62+
${Qt5Gui_INCLUDE_DIRS}
6363
)
6464

6565
set(LINK_LIBRARIES

resource/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
qt_add_resources(SOURCES resource.qrc)
1+
qt5_add_resources(SOURCES resource.qrc)
22

33
add_library(resource ${SOURCES})
44

resource/icons/layer-lower.svg

Lines changed: 22 additions & 0 deletions
Loading

resource/icons/layer-raise.svg

Lines changed: 22 additions & 0 deletions
Loading

resource/icons/set-origin.svg

Lines changed: 30 additions & 0 deletions
Loading

resource/resource.qrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<file>icons/edit-copy.svg</file>
1414
<file>icons/go-down.svg</file>
1515
<file>icons/go-up.svg</file>
16+
<file>icons/layer-lower.svg</file>
17+
<file>icons/layer-raise.svg</file>
1618
<file>icons/layer-visible-off.svg</file>
1719
<file>icons/layer-visible-on.svg</file>
1820
<file>icons/list-add.svg</file>
@@ -21,6 +23,7 @@
2123
<file>icons/path-outset.svg</file>
2224
<file>icons/pocket-shape.svg</file>
2325
<file>icons/resizecol.svg</file>
26+
<file>icons/set-origin.svg</file>
2427
<file>icons/show-path-outline.svg</file>
2528
<file>icons/transform-rotate.svg</file>
2629
<file>icons/zoom-in.svg</file>

src/geometry/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ set(SRC
1111
polyline.cpp
1212
quadraticspline.cpp
1313
rect.cpp
14+
sorter.cpp
1415
spline.cpp
1516

1617
arc.h
@@ -23,6 +24,7 @@ set(SRC
2324
cubicspline.h
2425
polyline.h
2526
quadraticspline.h
27+
sorter.h
2628
spline.h
2729
rect.h
2830
utils.h

src/geometry/rect.cpp

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "qvectornd.h"
21
#include <rect.h>
32

43
namespace geometry
@@ -36,6 +35,24 @@ const QVector2D &Rect::max() const
3635
return m_max;
3736
}
3837

38+
QVector2D Rect::bottomLeft() const
39+
{
40+
return m_min;
41+
}
42+
43+
QVector2D Rect::topLeft() const
44+
{
45+
return QVector2D(m_min.x(), m_max.y());
46+
}
47+
QVector2D Rect::topRight() const
48+
{
49+
return m_max;
50+
}
51+
QVector2D Rect::bottomRight() const
52+
{
53+
return QVector2D(m_max.x(), m_min.y());
54+
}
55+
3956
QRectF Rect::toQt() const
4057
{
4158
const QPointF topLeft(m_min.x(), m_max.y());

0 commit comments

Comments
 (0)