r19708 by jghali - fix warning apparently triggered by some compilers

scribus-commit scribus-commit at lists.scribus.net
Wed Dec 31 22:37:14 UTC 2014


Author: jghali
Date: Wed Dec 31 22:37:14 2014
New Revision: 19708

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19708
Log:
fix warning apparently triggered by some compilers

Modified:
    trunk/Scribus/scribus/ui/proptree.h

Modified: trunk/Scribus/scribus/ui/proptree.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19708&path=/trunk/Scribus/scribus/ui/proptree.h
==============================================================================
--- trunk/Scribus/scribus/ui/proptree.h (original)
+++ trunk/Scribus/scribus/ui/proptree.h Wed Dec 31 22:37:14 2014
@@ -40,13 +40,13 @@
 
 public:
 	PropTreeItemDelegate(PropTreeWidget *parent);
-	void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
-	QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
-	void setEditorData(QWidget *editor, const QModelIndex &index) const;
-	void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
-	void destroyEditor(QWidget * editor, const QModelIndex & index) const;
-	void updateEditorGeometry(QWidget *editor,const QStyleOptionViewItem &option, const QModelIndex &index) const;
-	QSize sizeHint(const QStyleOptionViewItem &opt, const QModelIndex &index) const;
+	virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
+	virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
+	virtual void setEditorData(QWidget *editor, const QModelIndex &index) const;
+	virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
+	virtual void destroyEditor(QWidget * editor, const QModelIndex & index) const;
+	virtual void updateEditorGeometry(QWidget *editor,const QStyleOptionViewItem &option, const QModelIndex &index) const;
+	virtual QSize sizeHint(const QStyleOptionViewItem &opt, const QModelIndex &index) const;
 private slots:
 	void valueHasChanged();
 private:




More information about the scribus-commit mailing list