mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-13 02:15:10 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
db4ed75757 | |||
4eae93e403 | |||
6ffeefe9c9 | |||
4069bfcc6e |
@ -1,4 +1,4 @@
|
|||||||
version: 9.8.{build}
|
version: 9.9.{build}
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
- Release
|
- Release
|
||||||
|
@ -3,7 +3,7 @@ unix:!macx {
|
|||||||
} else {
|
} else {
|
||||||
TARGET = GPXSee
|
TARGET = GPXSee
|
||||||
}
|
}
|
||||||
VERSION = 9.8
|
VERSION = 9.9
|
||||||
|
|
||||||
QT += core \
|
QT += core \
|
||||||
gui \
|
gui \
|
||||||
|
@ -697,7 +697,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="808"/>
|
<location filename="../src/GUI/gui.cpp" line="808"/>
|
||||||
<source>Symbols directory:</source>
|
<source>Symbols directory:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Symbolien hakemisto:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="1180"/>
|
<location filename="../src/GUI/gui.cpp" line="1180"/>
|
||||||
|
@ -9,7 +9,7 @@ Unicode true
|
|||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "GPXSee"
|
Name "GPXSee"
|
||||||
; Program version
|
; Program version
|
||||||
!define VERSION "9.8"
|
!define VERSION "9.9"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "GPXSee-${VERSION}.exe"
|
OutFile "GPXSee-${VERSION}.exe"
|
||||||
|
@ -9,7 +9,7 @@ Unicode true
|
|||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "GPXSee"
|
Name "GPXSee"
|
||||||
; Program version
|
; Program version
|
||||||
!define VERSION "9.8"
|
!define VERSION "9.9"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||||
|
@ -350,12 +350,12 @@ void GraphView::mousePressEvent(QMouseEvent *e)
|
|||||||
|
|
||||||
void GraphView::wheelEvent(QWheelEvent *e)
|
void GraphView::wheelEvent(QWheelEvent *e)
|
||||||
{
|
{
|
||||||
static int deg = 0;
|
static int deg8 = 0;
|
||||||
|
|
||||||
deg += e->angleDelta().y() / 8;
|
deg8 += e->angleDelta().y();
|
||||||
if (qAbs(deg) < 15)
|
if (qAbs(deg8) < (15 * 8))
|
||||||
return;
|
return;
|
||||||
deg = 0;
|
deg8 = deg8 % (15 * 8);
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
||||||
QPointF pos = mapToScene(e->pos());
|
QPointF pos = mapToScene(e->pos());
|
||||||
|
@ -586,17 +586,17 @@ void MapView::zoom(int zoom, const QPoint &pos, bool shift)
|
|||||||
|
|
||||||
void MapView::wheelEvent(QWheelEvent *event)
|
void MapView::wheelEvent(QWheelEvent *event)
|
||||||
{
|
{
|
||||||
static int deg = 0;
|
static int deg8 = 0;
|
||||||
bool shift = (event->modifiers() & MODIFIER) ? true : false;
|
bool shift = (event->modifiers() & MODIFIER) ? true : false;
|
||||||
// Shift inverts the wheel axis on OS X, so use scrolling in both axes for
|
// Shift inverts the wheel axis on OS X, so use scrolling in both axes for
|
||||||
// the zoom.
|
// the zoom.
|
||||||
int delta = event->angleDelta().y()
|
int delta = event->angleDelta().y()
|
||||||
? event->angleDelta().y() : event->angleDelta().x();
|
? event->angleDelta().y() : event->angleDelta().x();
|
||||||
|
|
||||||
deg += delta / 8;
|
deg8 += delta;
|
||||||
if (qAbs(deg) < 15)
|
if (qAbs(deg8) < (15 * 8))
|
||||||
return;
|
return;
|
||||||
deg = 0;
|
deg8 = deg8 % (15 * 8);
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
||||||
zoom((delta > 0) ? 1 : -1, event->pos(), shift);
|
zoom((delta > 0) ? 1 : -1, event->pos(), shift);
|
||||||
|
Reference in New Issue
Block a user