mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
History providers should be QObjects
This commit is contained in:
parent
8958af74da
commit
8795bd9da5
@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
|
||||
class QgsAbstractHistoryProvider
|
||||
class QgsAbstractHistoryProvider : QObject
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
Abstract base class for objects which track user history (i.e. operations performed through the GUI).
|
||||
@ -24,7 +24,7 @@ Abstract base class for objects which track user history (i.e. operations perfor
|
||||
public:
|
||||
|
||||
%ConvertToSubClassCode
|
||||
if ( dynamic_cast<QgsProcessingHistoryProvider *>( sipCpp ) )
|
||||
if ( qobject_cast<QgsProcessingHistoryProvider *>( sipCpp ) )
|
||||
sipType = sipType_QgsProcessingHistoryProvider;
|
||||
else
|
||||
sipType = nullptr;
|
||||
|
@ -33,13 +33,15 @@ class QgsHistoryWidgetContext;
|
||||
* \ingroup gui
|
||||
* \since QGIS 3.24
|
||||
*/
|
||||
class GUI_EXPORT QgsAbstractHistoryProvider
|
||||
class GUI_EXPORT QgsAbstractHistoryProvider : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
#ifdef SIP_RUN
|
||||
SIP_CONVERT_TO_SUBCLASS_CODE
|
||||
if ( dynamic_cast<QgsProcessingHistoryProvider *>( sipCpp ) )
|
||||
if ( qobject_cast<QgsProcessingHistoryProvider *>( sipCpp ) )
|
||||
sipType = sipType_QgsProcessingHistoryProvider;
|
||||
else
|
||||
sipType = nullptr;
|
||||
|
@ -29,6 +29,8 @@
|
||||
*/
|
||||
class GUI_EXPORT QgsProcessingHistoryProvider : public QgsAbstractHistoryProvider
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
QgsProcessingHistoryProvider();
|
||||
|
Loading…
x
Reference in New Issue
Block a user