Skip to content

Commit 7761360

Browse files
committed
Fix clazy invalid slot warning
1 parent 2682a74 commit 7761360

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python/core/layout/qgslayoutitem.sip.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,9 @@ Cancels the current item command and discards it.
852852
Returns whether the item should be drawn in the current context.
853853
%End
854854

855+
virtual QgsExpressionContext createExpressionContext() const;
856+
857+
855858
public slots:
856859

857860
virtual void refresh();
@@ -900,9 +903,6 @@ Rotates the item by a specified ``angle`` in degrees clockwise around a specifie
900903
.. seealso:: :py:func:`itemRotation`
901904
%End
902905

903-
virtual QgsExpressionContext createExpressionContext() const;
904-
905-
906906
signals:
907907

908908
void frameChanged();

src/core/layout/qgslayoutitem.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,8 @@ class CORE_EXPORT QgsLayoutItem : public QgsLayoutObject, public QGraphicsRectIt
765765
*/
766766
bool shouldDrawItem() const;
767767

768+
QgsExpressionContext createExpressionContext() const override;
769+
768770
public slots:
769771

770772
/**
@@ -809,8 +811,6 @@ class CORE_EXPORT QgsLayoutItem : public QgsLayoutObject, public QGraphicsRectIt
809811
*/
810812
virtual void rotateItem( const double angle, const QPointF &transformOrigin );
811813

812-
QgsExpressionContext createExpressionContext() const override;
813-
814814
signals:
815815

816816
/**

0 commit comments

Comments
 (0)