feat: add matrix command possible 'parameter's
This commit is contained in:
@@ -10,9 +10,10 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
struct Command {
|
struct Command {
|
||||||
Command(QString u, QString s)
|
Command(QString p, QString a, QString h)
|
||||||
: command(std::move(std::move(u)))
|
: command(std::move(std::move(p)))
|
||||||
, help(std::move(std::move(s)))
|
, parameter(std::move(std::move(a)))
|
||||||
|
, help(std::move(std::move(h)))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
Command() = default;
|
Command() = default;
|
||||||
@@ -20,6 +21,7 @@ struct Command {
|
|||||||
friend QDataStream &operator<<(QDataStream &arch, const Command &object)
|
friend QDataStream &operator<<(QDataStream &arch, const Command &object)
|
||||||
{
|
{
|
||||||
arch << object.command;
|
arch << object.command;
|
||||||
|
arch << object.parameter;
|
||||||
arch << object.help;
|
arch << object.help;
|
||||||
return arch;
|
return arch;
|
||||||
}
|
}
|
||||||
@@ -27,15 +29,18 @@ struct Command {
|
|||||||
friend QDataStream &operator>>(QDataStream &arch, Command &object)
|
friend QDataStream &operator>>(QDataStream &arch, Command &object)
|
||||||
{
|
{
|
||||||
arch >> object.command;
|
arch >> object.command;
|
||||||
|
arch >> object.parameter;
|
||||||
arch >> object.help;
|
arch >> object.help;
|
||||||
return arch;
|
return arch;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString command;
|
QString command;
|
||||||
|
QString parameter;
|
||||||
QString help;
|
QString help;
|
||||||
|
|
||||||
Q_GADGET
|
Q_GADGET
|
||||||
Q_PROPERTY(QString command MEMBER command)
|
Q_PROPERTY(QString command MEMBER command)
|
||||||
|
Q_PROPERTY(QString parameter MEMBER parameter)
|
||||||
Q_PROPERTY(QString help MEMBER help)
|
Q_PROPERTY(QString help MEMBER help)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user