r24896 by jghali - Add override specifier to ScElemMimeData functions inherited from QMimeData

scribus-commit scribus-commit at lists.scribus.net
Fri Feb 4 19:52:57 UTC 2022


Author: jghali
Date: Fri Feb  4 19:52:57 2022
New Revision: 24896

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24896
Log:
Add override specifier to ScElemMimeData functions inherited from QMimeData

Modified:
    branches/Version15x/Scribus/scribus/scmimedata.h

Modified: branches/Version15x/Scribus/scribus/scmimedata.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24896&path=/branches/Version15x/Scribus/scribus/scmimedata.h
==============================================================================
--- branches/Version15x/Scribus/scribus/scmimedata.h	(original)
+++ branches/Version15x/Scribus/scribus/scmimedata.h	Fri Feb  4 19:52:57 2022
@@ -62,20 +62,20 @@
 {
 	Q_OBJECT
 
+public:
+	ScElemMimeData();
+
+	QStringList formats() const override { return m_formats; }
+	bool hasFormat (const QString & mimeType) const override;
+
+	void  setScribusElem(const QString& elem) { m_scribusElemData = elem; }
+	const QString& scribusElem(void) const    { return m_scribusElemData; }
+
 protected:
 	QString m_scribusElemData;
 	QStringList m_formats;
 
-	virtual QVariant retrieveData ( const QString & mimeType, QVariant::Type type ) const;
-
-public:
-	ScElemMimeData();
-
-	virtual QStringList formats() const { return m_formats; }
-	virtual bool hasFormat ( const QString & mimeType ) const;
-
-	void  setScribusElem(const QString& elem) { m_scribusElemData = elem; }
-	const QString& scribusElem(void) const    { return m_scribusElemData; }
+	QVariant retrieveData(const QString & mimeType, QVariant::Type type) const override;
 };
 
 class SCRIBUS_API ScTextMimeData : public QMimeData




More information about the scribus-commit mailing list