Define constructors for struct VSShortcut.
This commit is contained in:
parent
b9b1d2fb66
commit
a3195babf2
|
@ -150,9 +150,17 @@ class VAbstractShortcutManager : public QObject
|
||||||
public:
|
public:
|
||||||
struct VSShortcut
|
struct VSShortcut
|
||||||
{
|
{
|
||||||
VShortcutAction type{};
|
VShortcutAction type{}; // NOLINT(misc-non-private-member-variables-in-classes)
|
||||||
QStringList defaultShortcuts{};
|
QStringList defaultShortcuts{}; // NOLINT(misc-non-private-member-variables-in-classes)
|
||||||
QStringList shortcuts{};
|
QStringList shortcuts{}; // NOLINT(misc-non-private-member-variables-in-classes)
|
||||||
|
|
||||||
|
VSShortcut() = default;
|
||||||
|
VSShortcut(VShortcutAction type, const QStringList &defaultShortcuts, const QStringList &shortcuts)
|
||||||
|
: type(type),
|
||||||
|
defaultShortcuts(defaultShortcuts),
|
||||||
|
shortcuts(shortcuts)
|
||||||
|
{
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit VAbstractShortcutManager(QObject *parent = nullptr);
|
explicit VAbstractShortcutManager(QObject *parent = nullptr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user