Skip to content

Commit 6859140

Browse files
committed
porting to Qt 6.9.0 and GNU compiler
1 parent 9424cb1 commit 6859140

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

src/greasepad.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ DEFINES += QT_DEPRECATED_WARNINGS
1717
# You can also select to disable deprecated APIs only up to a certain version of Qt.
1818
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
1919

20+
21+
# set assember's flags (MinGW), syntax: -Wa,<comma-separated list>
22+
QMAKE_CXXFLAGS += -Wa,-mbig-obj
23+
24+
2025
SOURCES += \
2126
aabb.cpp \
2227
adjustment.cpp \

src/mainview.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ void MainView::wheelEvent( QWheelEvent *event )
5656
// restricted zooming [0.1, 10]
5757
const qreal lod = QStyleOptionGraphicsItem::levelOfDetailFromTransform(transform());
5858

59-
double s = event->delta() > 0 ? zoom_out : zoom_in;
59+
// double s = event->delta() > 0 ? zoom_out : zoom_in; // old Qt version
60+
double s = event->angleDelta().y() > 0 ? zoom_out : zoom_in;
6061

6162
setTransformationAnchor( QGraphicsView::AnchorUnderMouse );
6263
// qDebug() << s << lod;

src/qconstraints.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include <QPainter>
2929
#include <qstyleoption.h>
3030

31+
#include <cfloat>
32+
3133

3234
namespace QConstraint {
3335

src/statistics.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
#ifndef STATISTICS_H
2020
#define STATISTICS_H
2121

22-
#include <limits>
2322
#include <cassert>
23+
#include <cfloat>
24+
#include <cmath>
2425

2526
//! Parametric probability distributions
2627
namespace Stats {

src/uncertain.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
#include <Eigen/Dense>
2323

24+
#include <cfloat>
25+
2426
//! Uncertain geometric entities
2527
namespace Uncertain {
2628

0 commit comments

Comments
 (0)