mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-01 07:01:16 +01:00
22 lines
340 B
C++
22 lines
340 B
C++
#ifndef POIACTION_H
|
|
#define POIACTION_H
|
|
|
|
#include <QAction>
|
|
#include "common/util.h"
|
|
|
|
class POIAction : public QAction
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
POIAction(const QString &path, QObject *parent = 0)
|
|
: QAction(Util::file2name(path), parent)
|
|
{
|
|
setMenuRole(QAction::NoRole);
|
|
setCheckable(true);
|
|
setData(path);
|
|
}
|
|
};
|
|
|
|
#endif // POIACTION_H
|