Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9981af9c5f
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.562 kb
#ifndef UNDOCHARMCOMMANDWRAPPER_H
#define UNDOCHARMCOMMANDWRAPPER_H
#include <QUndoCommand>
#include "Core/CharmCommand.h"
/**
Thin wrapper for CharmCommand -> QUndoCommand
It simply forwards the command text and emits signals for commit/rollback on undo/redo
**/
class UndoCharmCommandWrapper : public QUndoCommand
{
public:
UndoCharmCommandWrapper(CharmCommand* command);
virtual ~UndoCharmCommandWrapper();
virtual void undo();
virtual void redo();
CharmCommand* command() const;
private:
CharmCommand* m_command;
};
#endif
Jump to Line
Something went wrong with that request. Please try again.