void UndoRedo::AddArtworksHistoryItem::undo(const Commands::ICommandManager *commandManagerInterface) const { LOG_INFO << "#"; Commands::CommandManager *commandManager = (Commands::CommandManager*)commandManagerInterface; Models::ArtItemsModel *artItemsModel = commandManager->getArtItemsModel(); artItemsModel->removeArtworks(m_AddedRanges); }
void UndoRedo::AddArtworksHistoryItem::undo(const Commands::CommandManager *commandManager) const { qDebug() << "Undo: Add artworks command"; Models::ArtItemsModel *artItemsModel = commandManager->getArtItemsModel(); artItemsModel->removeArtworks(m_AddedRanges); }