Shared plumbing: a QPointer to the layer plus error reporting.
More...
#include <featurecommands.h>
Shared plumbing: a QPointer to the layer plus error reporting.
◆ FeatureCommandBase()
| openswmmvis::map::FeatureCommandBase::FeatureCommandBase |
( |
const QString & |
text, |
|
|
FeatureLayer * |
layer, |
|
|
MapCanvas * |
canvas, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ lastError()
| QString openswmmvis::map::FeatureCommandBase::lastError |
( |
| ) |
const |
|
inline |
The message from the last failed apply, for the caller to show. Empty when the command has not failed.
◆ layer()
| FeatureLayer * openswmmvis::map::FeatureCommandBase::layer |
( |
| ) |
const |
|
inline |
◆ recordFailure()
| void openswmmvis::map::FeatureCommandBase::recordFailure |
( |
const QString & |
err | ) |
const |
|
protected |
Log err and remember it. Commands cannot show UI from redo()/undo() — QUndoStack may be replaying — so a failure is recorded, logged, and surfaced by whoever pushed the command.
◆ m_lastError
| QString openswmmvis::map::FeatureCommandBase::m_lastError |
|
mutableprotected |
◆ m_layer
| QPointer<FeatureLayer> openswmmvis::map::FeatureCommandBase::m_layer |
|
protected |
The documentation for this class was generated from the following files: