[Development] Qt 5.4.0 header diff: QtGui.diff

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Nov 19 10:43:57 CET 2014


ABI break (changing a private static in a public exported class)?

> --- a/src/gui/text/qfontdatabase.h
> +++ b/src/gui/text/qfontdatabase.h
> @@ -160,14 +152,14 @@ private:
>      static void createDatabase();
>      static void parseFontName(const QString &name, QString &foundry, QString &family);
>      static QString resolveFontFamilyAlias(const QString &family);
> -    static QFontEngine *findFont(int script, const QFontPrivate *fp, const QFontDef &request, bool multi = false, bool fallback = false);
> +    static QFontEngine *findFont(int script, const QFontPrivate *fp, const QFontDef &request, bool multi = false);
>      static void load(const QFontPrivate *d, int script);
>
>      friend struct QFontDef;
>      friend class QFontPrivate;
>      friend class QFontDialog;
>      friend class QFontDialogPrivate;
> -    friend class QFontEngineMultiQPA;
> +    friend class QFontEngineMultiBasicImpl;
>
>      QFontDatabasePrivate *d;
>  };

API and style mistake -- the new constructor should very likely be 
protected (useful only from subclasses?), but the private should be 
passed by reference (or "QOpenGLPaintDevice(0)" gives a cryptic error):

>  class Q_GUI_EXPORT QOpenGLPaintDevice : public QPaintDevice
> @@ -62,6 +53,7 @@ public:
>      QOpenGLPaintDevice();
>      explicit QOpenGLPaintDevice(const QSize &size);
>      QOpenGLPaintDevice(int width, int height);
> +    QOpenGLPaintDevice(QOpenGLPaintDevicePrivate *dd);
>      virtual ~QOpenGLPaintDevice();
>
>      int devType() const { return QInternal::OpenGL; }

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company
Tel. UK +44-1738-450410, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4048 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20141119/cb4f2568/attachment.bin>


More information about the Development mailing list