Logo Search packages:      
Sourcecode: qapt version File versions  Download package

void QApt::Backend::saveCacheState (  )  [slot]

Takes the current state of the cache and puts it on the undo stack

Definition at line 492 of file backend.cpp.

References currentCacheState().

{
    Q_D(Backend);
    CacheState state = currentCacheState();
    d->undoStack.prepend(state);
    d->redoStack.clear();

    // TODO: Configurable
    int maxStackSize = 20;

    while (d->undoStack.size() > maxStackSize) {
        d->undoStack.removeLast();
    }
}


Generated by  Doxygen 1.6.0   Back to index