aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-18 15:37:24 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-18 15:37:24 (GMT)
commitfec814f1f654bd6c43a13a8b748c9f6ed6b15a54 (patch)
tree53703b41b80c2a57b44beae92ca1f36048c50534
parentcd4692b9e7cd46e171ccb6beb3af29f3124fd43f (diff)
make the trivial cursors and ranges movable
-rw-r--r--src/include/ktexteditor/cursor.h4
-rw-r--r--src/include/ktexteditor/documentcursor.h2
-rw-r--r--src/include/ktexteditor/range.h3
3 files changed, 9 insertions, 0 deletions
diff --git a/src/include/ktexteditor/cursor.h b/src/include/ktexteditor/cursor.h
index d667e55..91f63ea 100644
--- a/src/include/ktexteditor/cursor.h
+++ b/src/include/ktexteditor/cursor.h
@@ -25,7 +25,9 @@
#define KDELIBS_KTEXTEDITOR_CURSOR_H
#include <ktexteditor_export.h>
+
#include <QDebug>
+#include <QtGlobal>
namespace KTextEditor
{
@@ -352,5 +354,7 @@ private:
}
+Q_DECLARE_TYPEINFO (KTextEditor::Cursor, Q_MOVABLE_TYPE);
+
#endif
diff --git a/src/include/ktexteditor/documentcursor.h b/src/include/ktexteditor/documentcursor.h
index ae9197a..8f9ec21 100644
--- a/src/include/ktexteditor/documentcursor.h
+++ b/src/include/ktexteditor/documentcursor.h
@@ -407,5 +407,7 @@ private:
}
+Q_DECLARE_TYPEINFO (KTextEditor::DocumentCursor, Q_MOVABLE_TYPE);
+
#endif
diff --git a/src/include/ktexteditor/range.h b/src/include/ktexteditor/range.h
index e4d62a3..3133e60 100644
--- a/src/include/ktexteditor/range.h
+++ b/src/include/ktexteditor/range.h
@@ -28,6 +28,7 @@
#include <ktexteditor/cursor.h>
#include <QDebug>
+#include <QtGlobal>
namespace KTextEditor
{
@@ -577,5 +578,7 @@ private:
}
+Q_DECLARE_TYPEINFO (KTextEditor::Range, Q_MOVABLE_TYPE);
+
#endif