#include <QThread.h>
This little helper class works similarly to FX::QMtxHold in disabling thread termination on construction and disabling it on destruction. Since FX::QThread::disableTermination() works by a reference count this works nicely. You can use undo() and redo() if needed.
Public Member Functions | |
QThread_DTHold (QThread *t=QThread::current()) | |
void | undo () |
void | redo () |
FX::QThread_DTHold::QThread_DTHold | ( | QThread * | t = QThread::current() |
) | [inline] |
Constructs an instance disabling thread termination for thread t.
void FX::Generic::DoUndo< obj, doaddr, undoaddr >::undo | ( | ) | [inline, inherited] |
Undoes the action.
void FX::Generic::DoUndo< obj, doaddr, undoaddr >::redo | ( | ) | [inline, inherited] |
Redoes the action.