History

fix typo preventing methods from being discovered on scriptable objects when we're ignoring superclasses

Heather Anderson committed 4 years ago

Commit 67260b91 parent a8221101 file · +1 −1Browse files

Showing the changes to libraries/script-engine/src/qtscript/ScriptObjectQtProxy.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/qtscript/ScriptObjectQtProxy.cpp+1−1
@@ -158,7 +158,7 @@ void ScriptObjectQtProxy::investigate() { · 157 unmodified lines
158 }158 }
159 159
160 // discover methods160 // discover methods
161 startIdx = _wrapOptions & ScriptEngine::ExcludeSuperClassMethods ? metaObject->methodCount() : 0;161 startIdx = (_wrapOptions & ScriptEngine::ExcludeSuperClassMethods) ? metaObject->methodOffset() : 0;
162 num = metaObject->methodCount();162 num = metaObject->methodCount();
163 QHash<QScriptString, int> methodNames;163 QHash<QScriptString, int> methodNames;
164 for (int idx = startIdx; idx < num; ++idx) {164 for (int idx = startIdx; idx < num; ++idx) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t