QGIS/python/PyQt6/gui/auto_generated/history/qgshistoryentry.sip.in
Nyall Dawson 814e6db3b4 Don't map non-list of QVariantMaps to QMap<QString,QVariant>
The original workaround was only supposed to apply to QList/
QVector of QVariantMaps. By replacing them all in sip we
break mapping of signals defined in c++ which are emitted
by Python code.

Fixes exceptions after running processing algorithms in Qt6
builds.
2024-02-12 12:16:14 +10:00

72 lines
2.1 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/history/qgshistoryentry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsHistoryEntry
{
%Docstring(signature="appended")
Encapsulates a history entry.
.. versionadded:: 3.24
%End
%TypeHeaderCode
#include "qgshistoryentry.h"
%End
public:
QgsHistoryEntry();
%Docstring
Constructor for an invalid entry.
%End
explicit QgsHistoryEntry( const QString &providerId, const QDateTime &timestamp, const QVariantMap &entry );
%Docstring
Constructor for QgsHistoryEntry ``entry``, with the specified ``providerId`` and ``timestamp``.
%End
explicit QgsHistoryEntry( const QVariantMap &entry );
%Docstring
Constructor for QgsHistoryEntry ``entry``.
The entry timestamp will be automatically set to the current date/time.
%End
bool isValid() const;
%Docstring
Returns ``True`` if the entry is valid.
.. versionadded:: 3.32
%End
long long id;
QDateTime timestamp;
QString providerId;
QVariantMap entry;
SIP_PYOBJECT __repr__();
%MethodCode
const QString str = QStringLiteral( "<QgsHistoryEntry: %1 %2>" ).arg( sipCpp->providerId, sipCpp->timestamp.toString( Qt::ISODate ) );
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/history/qgshistoryentry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/