mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-17 16:20:48 +01:00
Fixed shorcuts duplicity
This commit is contained in:
parent
ad3b666a19
commit
704c66449f
@ -233,14 +233,14 @@ void GUI::createActions()
|
|||||||
_exportPDFFileAction = new QAction(QIcon(EXPORT_FILE_ICON),
|
_exportPDFFileAction = new QAction(QIcon(EXPORT_FILE_ICON),
|
||||||
tr("Export to PDF..."), this);
|
tr("Export to PDF..."), this);
|
||||||
_exportPDFFileAction->setMenuRole(QAction::NoRole);
|
_exportPDFFileAction->setMenuRole(QAction::NoRole);
|
||||||
_exportPDFFileAction->setShortcut(EXPORT_SHORTCUT);
|
_exportPDFFileAction->setShortcut(PDF_EXPORT_SHORTCUT);
|
||||||
_exportPDFFileAction->setActionGroup(_fileActionGroup);
|
_exportPDFFileAction->setActionGroup(_fileActionGroup);
|
||||||
connect(_exportPDFFileAction, SIGNAL(triggered()), this, SLOT(exportPDFFile()));
|
connect(_exportPDFFileAction, SIGNAL(triggered()), this, SLOT(exportPDFFile()));
|
||||||
addAction(_exportPDFFileAction);
|
addAction(_exportPDFFileAction);
|
||||||
_exportPNGFileAction = new QAction(QIcon(EXPORT_FILE_ICON),
|
_exportPNGFileAction = new QAction(QIcon(EXPORT_FILE_ICON),
|
||||||
tr("Export to PNG..."), this);
|
tr("Export to PNG..."), this);
|
||||||
_exportPNGFileAction->setMenuRole(QAction::NoRole);
|
_exportPNGFileAction->setMenuRole(QAction::NoRole);
|
||||||
_exportPNGFileAction->setShortcut(EXPORT_SHORTCUT);
|
_exportPNGFileAction->setShortcut(PNG_EXPORT_SHORTCUT);
|
||||||
_exportPNGFileAction->setActionGroup(_fileActionGroup);
|
_exportPNGFileAction->setActionGroup(_fileActionGroup);
|
||||||
connect(_exportPNGFileAction, SIGNAL(triggered()), this, SLOT(exportPNGFile()));
|
connect(_exportPNGFileAction, SIGNAL(triggered()), this, SLOT(exportPNGFile()));
|
||||||
addAction(_exportPNGFileAction);
|
addAction(_exportPNGFileAction);
|
||||||
|
@ -18,7 +18,8 @@
|
|||||||
#define OPEN_SHORTCUT QKeySequence(QKeySequence::Open)
|
#define OPEN_SHORTCUT QKeySequence(QKeySequence::Open)
|
||||||
#define CLOSE_SHORTCUT QKeySequence(QKeySequence::Close)
|
#define CLOSE_SHORTCUT QKeySequence(QKeySequence::Close)
|
||||||
#define RELOAD_SHORTCUT QKeySequence(QKeySequence::Refresh)
|
#define RELOAD_SHORTCUT QKeySequence(QKeySequence::Refresh)
|
||||||
#define EXPORT_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_E)
|
#define PDF_EXPORT_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_E)
|
||||||
|
#define PNG_EXPORT_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_X)
|
||||||
#define SHOW_POI_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_P)
|
#define SHOW_POI_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_P)
|
||||||
#define SHOW_MAP_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_M)
|
#define SHOW_MAP_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_M)
|
||||||
#define NEXT_MAP_SHORTCUT QKeySequence(QKeySequence::Forward)
|
#define NEXT_MAP_SHORTCUT QKeySequence(QKeySequence::Forward)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user