Cleanup & refactoring

This commit is contained in:
Aruki
2018-12-16 14:00:40 -07:00
parent 2287b05bc3
commit c4829f5fda
197 changed files with 2461 additions and 2345 deletions

View File

@@ -50,14 +50,14 @@ CRotateNodeCommand::~CRotateNodeCommand()
int CRotateNodeCommand::id() const
{
return eRotateNodeCmd;
return (int) EUndoCommand::RotateNodeCmd;
}
bool CRotateNodeCommand::mergeWith(const QUndoCommand *pkOther)
{
if (mCommandEnded) return false;
if (pkOther->id() == eRotateNodeCmd)
if (pkOther->id() == (int) EUndoCommand::RotateNodeCmd)
{
const CRotateNodeCommand *pkCmd = static_cast<const CRotateNodeCommand*>(pkOther);