mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-09 16:54:28 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
4a2c7b19fb | |||
3bba3d6cd7 | |||
0374e59bce |
@ -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
|
||||
|
@ -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
|
||||
|
15
src/gui.cpp
15
src/gui.cpp
@ -400,8 +400,10 @@ 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();
|
||||
}
|
||||
|
@ -205,6 +205,9 @@ void Track::redraw()
|
||||
|
||||
void Track::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
if (_tracks.isEmpty())
|
||||
return;
|
||||
|
||||
QPointF pos = mapToScene(event->pos());
|
||||
qreal scale = _scale;
|
||||
|
||||
|
Reference in New Issue
Block a user