repo.or.cz
/
GPXSee.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use the canonical file name also for the "already open" check
[GPXSee.git]
/
src
/
GUI
/
poiaction.h
blob
eca5a17c48a5cb0df9dfbac430db8c14994dbd86
1
#ifndef POIACTION_H
2
#define POIACTION_H
3
4
#include <QAction>
5
#include
"common/util.h"
6
7
class
POIAction
:
public
QAction
8
{
9
Q_OBJECT
10
11
public
:
12
POIAction
(
const
QString
&
path
,
QObject
*
parent
=
0
)
13
:
QAction
(
Util
::
file2name
(
path
),
parent
)
14
{
15
setMenuRole
(
QAction
::
NoRole
);
16
setCheckable
(
true
);
17
setData
(
path
);
18
}
19
};
20
21
#endif
// POIACTION_H