1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 19:55:53 +01:00
GPXSee/src/GUI/poiaction.h

22 lines
340 B
C
Raw Normal View History

#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