8 class FontsConfigProperties;
10 class FontInfo : public QObject
13 Q_PROPERTY(QString fontPath READ fontPath WRITE setFontPath NOTIFY fontPathChanged)
14 Q_PROPERTY(QStringList families READ families NOTIFY fontPathChanged)
16 explicit FontInfo(QObject *parent = 0);
17 explicit FontInfo(const QString &fontPath, QObject *parent = 0);
20 QString fontPath() const;
21 void setFontPath(const QString &fontPath);
23 QStringList families() const;
25 Q_INVOKABLE FontsConfigProperties *fontProperty(const QString &family) const;
28 void fontPathChanged();
35 QStringList mFontFamilies;
36 QList<FontsConfigProperties *> mFontProperties;