1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-09 16:54:28 +02:00

Compare commits

...

3 Commits
2.3 ... 2.4

Author SHA1 Message Date
4a2c7b19fb Version 2.4 2015-12-19 13:16:51 +01:00
3bba3d6cd7 Fixed navigation logic 2015-12-19 13:15:13 +01:00
0374e59bce Fixed crash when zooming with no track loaded. 2015-12-19 12:57:09 +01:00
4 changed files with 8 additions and 14 deletions

View File

@ -63,7 +63,7 @@ Section "GPXSee (required)" SEC_APP
; Write the uninstall keys for Windows
WriteRegStr HKCU "${REGENTRY}" "DisplayName" "GPXSee"
WriteRegStr HKCU "${REGENTRY}" "Publisher" "Martin Tuma"
WriteRegStr HKCU "${REGENTRY}" "DisplayVersion" "2.3"
WriteRegStr HKCU "${REGENTRY}" "DisplayVersion" "2.4"
WriteRegStr HKCU "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKCU "${REGENTRY}" "NoModify" 1
WriteRegDWORD HKCU "${REGENTRY}" "NoRepair" 1

View File

@ -3,7 +3,7 @@
#define APP_NAME "GPXSee"
#define APP_HOMEPAGE "http://tumic.wz.cz/gpxsee"
#define APP_VERSION "2.3"
#define APP_VERSION "2.4"
#define FONT_FAMILY "Arial"
#define FONT_SIZE 12

View File

@ -400,9 +400,11 @@ bool GUI::openFile(const QString &fileName)
_navigationActionGroup->setEnabled(true);
updateNavigationActions();
return true;
} else
} else {
updateNavigationActions();
return false;
}
}
bool GUI::loadFile(const QString &fileName)
{
@ -537,7 +539,6 @@ void GUI::closeFile()
_files.clear();
_fileActionGroup->setEnabled(false);
_navigationActionGroup->setEnabled(false);
updateStatusBarInfo();
}
@ -640,8 +641,6 @@ void GUI::next()
closeFile();
openFile(file);
updateNavigationActions();
}
void GUI::prev()
@ -652,8 +651,6 @@ void GUI::prev()
closeFile();
openFile(file);
updateNavigationActions();
}
void GUI::last()
@ -664,8 +661,6 @@ void GUI::last()
closeFile();
openFile(file);
updateNavigationActions();
}
void GUI::first()
@ -676,8 +671,6 @@ void GUI::first()
closeFile();
openFile(file);
updateNavigationActions();
}
void GUI::keyPressEvent(QKeyEvent *event)
@ -704,6 +697,4 @@ void GUI::keyPressEvent(QKeyEvent *event)
closeFile();
openFile(file);
}
updateNavigationActions();
}

View File

@ -205,6 +205,9 @@ void Track::redraw()
void Track::wheelEvent(QWheelEvent *event)
{
if (_tracks.isEmpty())
return;
QPointF pos = mapToScene(event->pos());
qreal scale = _scale;