Skip to content

Class QfFeatureHistory

ClassList > QfFeatureHistory

Inherits the following classes: QObject

Classes

Type Name
struct FeatureModifications

Public Properties

Type Name
property bool isRedoAvailable
property bool isUndoAvailable

Public Signals

Type Name
signal void isRedoAvailableChanged
signal void isUndoAvailableChanged

Public Functions

Type Name
QfFeatureHistory (const QgsProject * project, QfTrackingModel * trackingModel=nullptr)
bool isRedoAvailable ()
bool isUndoAvailable ()
Q_INVOKABLE bool redo ()
Perform redo of the most recent modification step.
Q_INVOKABLE const QString redoMessage ()
Get the redo message to be show in the UI. NOTE should be called before calling redo .
Q_INVOKABLE bool undo ()
Perform undo of the most recent modification step.
Q_INVOKABLE const QString undoMessage ()
Get the undo message to be show in the UI. NOTE should be called before calling undo .

Public Properties Documentation

property isRedoAvailable [1/2]

bool QfFeatureHistory::isRedoAvailable;

property isUndoAvailable [1/2]

bool QfFeatureHistory::isUndoAvailable;

Public Signals Documentation

signal isRedoAvailableChanged

void QfFeatureHistory::isRedoAvailableChanged;

signal isUndoAvailableChanged

void QfFeatureHistory::isUndoAvailableChanged;

Public Functions Documentation

function QfFeatureHistory

explicit QfFeatureHistory::QfFeatureHistory (
    const QgsProject * project,
    QfTrackingModel * trackingModel=nullptr
) 

Construct a new Feature history object

Parameters:

  • project the current project instance
  • trackingModel the tracking model

function isRedoAvailable [2/2]

bool QfFeatureHistory::isRedoAvailable () 

function isUndoAvailable [2/2]

bool QfFeatureHistory::isUndoAvailable () 

function redo

Perform redo of the most recent modification step.

Q_INVOKABLE bool QfFeatureHistory::redo () 


function redoMessage

Get the redo message to be show in the UI. NOTE should be called before calling redo .

Q_INVOKABLE const QString QfFeatureHistory::redoMessage () 


function undo

Perform undo of the most recent modification step.

Q_INVOKABLE bool QfFeatureHistory::undo () 


function undoMessage

Get the undo message to be show in the UI. NOTE should be called before calling undo .

Q_INVOKABLE const QString QfFeatureHistory::undoMessage () 



The documentation for this class was generated from the following file src/core/qffeaturehistory.h