summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@nokia.com>2011-01-18 17:17:17 +0100
committerChristiaan Janssen <christiaan.janssen@nokia.com>2011-01-20 15:11:39 +0100
commitf5039a4a022a31cc4c1330d35350ae39cf11b5dd (patch)
tree896474a7d5413705a93042d8347add6acc939f84 /src/plugins/qmljseditor
parent6a829f5a8fa272bfb4bef92cf40d6d024756be69 (diff)
downloadqt-creator-f5039a4a022a31cc4c1330d35350ae39cf11b5dd.tar.gz
QmlJsInspector: implemented Property Inspector
Reviewed-by: Kai Koehne
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r--src/plugins/qmljseditor/qmljseditor.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp
index 4037994470..0eac867b7e 100644
--- a/src/plugins/qmljseditor/qmljseditor.cpp
+++ b/src/plugins/qmljseditor/qmljseditor.cpp
@@ -1054,22 +1054,6 @@ protected:
return 0;
}
- inline bool hasVisualPresentation(Node *ast)
- {
- Bind *bind = m_lookupContext->document()->bind();
- const Interpreter::ObjectValue *objValue = bind->findQmlObject(ast);
- if (!objValue)
- return false;
-
- QStringList prototypes;
- foreach (const Interpreter::ObjectValue *value,
- Interpreter::PrototypeIterator(objValue, m_lookupContext->context()).all()) {
- prototypes.append(value->className());
- }
-
- return prototypes.contains(QString("QGraphicsObject"));
- }
-
inline bool isIdBinding(UiObjectMember *member) const
{
if (UiScriptBinding *script = cast<UiScriptBinding *>(member)) {
@@ -1116,7 +1100,7 @@ protected:
if ((isRangeSelected() && intersectsCursor(begin, end))
|| (!isRangeSelected() && containsCursor(begin, end)))
{
- if (initializer(member) && isSelectable(member) && hasVisualPresentation(member)) {
+ if (initializer(member) && isSelectable(member)) {
m_selectedMembers << member;
// move start towards end; this facilitates multiselection so that root is usually ignored.
m_cursorPositionStart = qMin(end, m_cursorPositionEnd);