diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-05-07 19:45:12 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-10 03:26:11 +0200 |
commit | 6f86fea820f7de17da9501ebb323398cd851fab3 (patch) | |
tree | e8673e0565ba7748a40a39254c3c5f0f3a8e370f /src/gui/text/qtextformat.h | |
parent | 340bd0d4292ef5d715065733017784e576f6e97b (diff) |
QtGui: declare some classes as shared
Change-Id: I0ebb0ca8b8edcecc939021407d1755693f97e553
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/text/qtextformat.h')
-rw-r--r-- | src/gui/text/qtextformat.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/text/qtextformat.h b/src/gui/text/qtextformat.h index 58525a3dd0..a0a1e8846e 100644 --- a/src/gui/text/qtextformat.h +++ b/src/gui/text/qtextformat.h @@ -376,6 +376,8 @@ private: friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QTextFormat &); }; +Q_DECLARE_SHARED(QTextFormat) + inline void QTextFormat::setObjectType(int atype) { setProperty(ObjectType, atype); } @@ -549,6 +551,8 @@ protected: friend class QTextFormat; }; +Q_DECLARE_SHARED(QTextCharFormat) + inline void QTextCharFormat::setTableCellRowSpan(int _tableCellRowSpan) { if (_tableCellRowSpan <= 1) @@ -639,6 +643,8 @@ protected: friend class QTextFormat; }; +Q_DECLARE_SHARED(QTextBlockFormat) + inline void QTextBlockFormat::setAlignment(Qt::Alignment aalignment) { setProperty(BlockAlignment, int(aalignment)); } @@ -702,6 +708,8 @@ protected: friend class QTextFormat; }; +Q_DECLARE_SHARED(QTextListFormat) + inline void QTextListFormat::setStyle(Style astyle) { setProperty(ListStyle, astyle); } @@ -738,6 +746,8 @@ protected: friend class QTextFormat; }; +Q_DECLARE_SHARED(QTextImageFormat) + inline void QTextImageFormat::setName(const QString &aname) { setProperty(ImageName, aname); } @@ -836,6 +846,8 @@ protected: friend class QTextFormat; }; +Q_DECLARE_SHARED(QTextFrameFormat) + inline void QTextFrameFormat::setBorder(qreal aborder) { setProperty(FrameBorder, aborder); } @@ -905,6 +917,8 @@ protected: friend class QTextFormat; }; +Q_DECLARE_SHARED(QTextTableFormat) + inline void QTextTableFormat::setColumns(int acolumns) { if (acolumns == 1) @@ -944,6 +958,8 @@ protected: friend class QTextFormat; }; +Q_DECLARE_SHARED(QTextTableCellFormat) + inline void QTextTableCellFormat::setTopPadding(qreal padding) { setProperty(TableCellTopPadding, padding); |