Fix build warnings

This commit is contained in:
Nyall Dawson 2017-07-03 15:00:00 +10:00
parent 7972092311
commit ada01d8671
2 changed files with 2 additions and 9 deletions

View File

@ -26,12 +26,6 @@ class QgsLayoutItem : QgsLayoutObject, QGraphicsRectItem
Constructor for QgsLayoutItem, with the specified parent ``layout``.
%End
virtual int type() const = 0;
%Docstring
Return correct graphics item type.
:rtype: int
%End
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget );
%Docstring

View File

@ -34,6 +34,8 @@ class QPainter;
class CORE_EXPORT QgsLayoutItem : public QgsLayoutObject, public QGraphicsRectItem
{
Q_OBJECT
public:
/**
@ -41,9 +43,6 @@ class CORE_EXPORT QgsLayoutItem : public QgsLayoutObject, public QGraphicsRectIt
*/
QgsLayoutItem( QgsLayout *layout );
//! Return correct graphics item type.
virtual int type() const = 0;
/**
* Handles preparing a paint surface for the layout item and painting the item's
* content. Derived classes must not override this method, but instead implement