diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-08-14 02:56:13 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-08-14 02:56:13 (GMT) |
commit | c7aef9c3a3a9c4b2fcebb9f55ae11fc0b590a9ed (patch) | |
tree | e2618da2b6ce8c4d3ceeecfe66d7fb133068be01 /src/declarative/fx/qfxtext_p.h | |
parent | da56f50eb640823e2d48c1308c09626a428a50f5 (diff) | |
download | Qt-c7aef9c3a3a9c4b2fcebb9f55ae11fc0b590a9ed.zip Qt-c7aef9c3a3a9c4b2fcebb9f55ae11fc0b590a9ed.tar.gz Qt-c7aef9c3a3a9c4b2fcebb9f55ae11fc0b590a9ed.tar.bz2 |
Get rid of QmlFont and use the QFont value type instead.
Diffstat (limited to 'src/declarative/fx/qfxtext_p.h')
-rw-r--r-- | src/declarative/fx/qfxtext_p.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/declarative/fx/qfxtext_p.h b/src/declarative/fx/qfxtext_p.h index bbb54a3..95b566c 100644 --- a/src/declarative/fx/qfxtext_p.h +++ b/src/declarative/fx/qfxtext_p.h @@ -69,22 +69,13 @@ class QFxTextPrivate : public QFxItemPrivate Q_DECLARE_PUBLIC(QFxText) public: QFxTextPrivate() - : _font(0), color((QRgb)0), style(QFxText::Normal), imgDirty(true), + : color((QRgb)0), style(QFxText::Normal), imgDirty(true), hAlign(QFxText::AlignLeft), vAlign(QFxText::AlignTop), elideMode(Qt::ElideNone), dirty(false), wrap(false), richText(false), singleline(false), control(0), doc(0), format(QFxText::AutoText) { } - ~QFxTextPrivate() - { - delete _font; - } - - void init() - { - } - void updateSize(); void checkImgCache(); @@ -96,17 +87,7 @@ public: QSize setupTextLayout(QTextLayout *layout); QString text; - QmlFont *font() - { - if (!_font) { - Q_Q(QFxText); - _font = new QmlFont; - QObject::connect(_font, SIGNAL(updated()), q, SLOT(fontChanged())); - } - return _font; - } - - QmlFont *_font; + QFont font; QColor color; QFxText::TextStyle style; QColor styleColor; |