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: 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);