summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextdocument.h
diff options
context:
space:
mode:
authorJan-Arve Saether <jan-arve.saether@nokia.com>2012-09-06 15:08:40 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-07 06:26:57 +0200
commit1abf0ca5e39b2f9f95d96f805484b122b2dc5e05 (patch)
tree3054d93d160478fe0901c62f474e5b84ad06c8ee /src/gui/text/qtextdocument.h
parentb77b5cc5be5d7ca00c6bf6c4b83585cbbf3d91fd (diff)
Move enums that was part of the Qt namespace to qnamespace.h
This caused some headache wrt documentation, since in order to generate the proper documentation for the qt namespace qdoc also needed to parse the headers of gui, which breaks cross-module linking. (This is because qdoc will actually generate two almost identical nodes in the code tree; one from the header files from gui and another from the index file of gui). The best fix would maybe be to make it part of QAbstractTextDocumentLayout, but that will break source compat. Change-Id: I34e94d05fa4bec3034778d1f1cc0e53d0625e1ab Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/gui/text/qtextdocument.h')
-rw-r--r--src/gui/text/qtextdocument.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gui/text/qtextdocument.h b/src/gui/text/qtextdocument.h
index 65ea1c8fd6..c4ececafea 100644
--- a/src/gui/text/qtextdocument.h
+++ b/src/gui/text/qtextdocument.h
@@ -75,14 +75,6 @@ template<typename T> class QVector;
namespace Qt
{
- enum HitTestAccuracy { ExactHit, FuzzyHit };
- enum WhiteSpaceMode {
- WhiteSpaceNormal,
- WhiteSpacePre,
- WhiteSpaceNoWrap,
- WhiteSpaceModeUndefined = -1
- };
-
Q_GUI_EXPORT bool mightBeRichText(const QString&);
Q_GUI_EXPORT QString convertFromPlainText(const QString &plain, WhiteSpaceMode mode = WhiteSpacePre);