blob: 916172a1cdd72bb8b776b87610af6a10659ca2ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "qmt_global.h"
#include <QAction>
namespace qmt {
class QMT_EXPORT ContextMenuAction : public QAction
{
public:
ContextMenuAction(const QString &label, const QString &id, QObject *parent = nullptr);
ContextMenuAction(const QString &label, const QString &id, const QKeySequence &shortcut,
QObject *parent = nullptr);
~ContextMenuAction() override;
QString id() const { return m_id; }
private:
QString m_id;
};
} // namespace qmt
|