Example #1
0
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);
}
Example #2
0
void UndoRedo::AddArtworksHistoryItem::undo(const Commands::CommandManager *commandManager) const {
    qDebug() << "Undo: Add artworks command";

    Models::ArtItemsModel *artItemsModel = commandManager->getArtItemsModel();
    artItemsModel->removeArtworks(m_AddedRanges);
}