diff options
author | Jesper K. Pedersen <jesper.pedersen@kdab.com> | 2013-05-08 10:48:48 +0200 |
---|---|---|
committer | Jesper K. Pedersen <jesper.pedersen@kdab.com> | 2013-05-13 10:17:31 +0200 |
commit | 8115489dadbb93438346ee492ca684cc79e96e34 (patch) | |
tree | 1df12a522800927e18aaab03a050760c55560fa0 | |
parent | 5fe4de31d7bc526f0751e1cf23b93131b560e087 (diff) |
make the currentFunction into a property
This is to make the scripting side more java script alike:
editor.currentFunction.start rather than editor.currentFunction().start
Change-Id: I4615b7112ee30a5850552fdfa053ecabdfa3b8b6
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
-rw-r--r-- | objects/cppeditor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/objects/cppeditor.h b/objects/cppeditor.h index e9e499c..74c94b9 100644 --- a/objects/cppeditor.h +++ b/objects/cppeditor.h @@ -18,6 +18,8 @@ class CppFunction; class CppEditor : public BaseTextEditor { Q_OBJECT + Q_PROPERTY( CppFunction* currentFunction READ currentFunction ) + public: explicit CppEditor(QObject *parent = 0); |