Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 342 Bytes
#include "EmitCommand.h"
void EmitCommand::setCanExecute(bool canExecute)
{
if (canExe != canExecute) {
canExe = canExecute;
emit canExecuteChanged(canExe);
emit privateCanExecuteChanged();
}
}
bool EmitCommand::canExecute() const
{
return canExe;
}
void EmitCommand::execute()
{
emit executes();
}
You can’t perform that action at this time.