Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 441 Bytes
#ifndef ABSTRACT_COMMAND_H
#define ABSTRACT_COMMAND_H
#include <QObject>
class AbstractCommand : public QObject {
Q_OBJECT
Q_PROPERTY(bool canExecute READ canExecute NOTIFY canExecuteChanged)
public:
AbstractCommand(QObject *parent = 0):QObject(parent){}
Q_INVOKABLE virtual void execute() = 0;
virtual bool canExecute() const = 0;
signals:
void canExecuteChanged(bool canExecute);
};
#endif // ABSTRACT_COMMAND_H
You can’t perform that action at this time.