Define constructors for struct VSShortcut.

This commit is contained in:
Roman Telezhynskyi 2023-10-25 11:29:36 +03:00
parent b9b1d2fb66
commit a3195babf2

View File

@ -150,9 +150,17 @@ class VAbstractShortcutManager : public QObject
public:
struct VSShortcut
{
VShortcutAction type{};
QStringList defaultShortcuts{};
QStringList shortcuts{};
VShortcutAction type{}; // NOLINT(misc-non-private-member-variables-in-classes)
QStringList defaultShortcuts{}; // NOLINT(misc-non-private-member-variables-in-classes)
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);