StackBase Class Reference
The Undo and Redo stacks now no longer inherit directly from a stack. More...
#include <undo.h>
Inheritance diagram for StackBase:

Signals | |
void | changed () |
Public Methods | |
StackBase () | |
void | push (Command *c) |
bool | isEmpty () |
Command * | top () |
void | clear () |
Protected Methods | |
Command * | pop () |
Protected Attributes | |
QPtrStack< Command > | mCommandStack |
Detailed Description
The Undo and Redo stacks now no longer inherit directly from a stack.They now contain a stack internally and inherit from StackBase, which has a signal for when the stack is modified. This is need to keep the edit menu and toolbar up to date.
Really this is a simple observable stack.
Definition at line 61 of file undo.h.
Member Function Documentation
|
Protect the pop method so users must call undo/redo to properly use the stack, however the subclasses need it to modify the stack.
Definition at line 51 of file undo.cpp. References QPtrStack< Command >::pop(). |
The documentation for this class was generated from the following files: