History

first pass creating Qt <-> QtScript interface

Heather Anderson committed 4 years ago

Commit bc6eaf21 parent bd0455463 files · +1707 −294Browse files

Showing the changes to libraries/script-engine/src/KeyEvent.cpp (1 of 63 files). Show all

Unified · Split

libraries/script-engine/src/KeyEvent.cpp+2−1
@@ -187,7 +187,7 @@ ScriptValue KeyEvent::toScriptValue(ScriptEngine* engine, const KeyEvent& event) · 186 unmodified lines
187187 return obj;
188188 }
189189
190−void KeyEvent::fromScriptValue(const ScriptValue& object, KeyEvent& event) {
190+bool KeyEvent::fromScriptValue(const ScriptValue& object, KeyEvent& event) {
191191
192192 event.isValid = false; // assume the worst
193193 event.isMeta = object.property("isMeta").toVariant().toBool();
@@ -281,6 +281,7 @@ void KeyEvent::fromScriptValue(const ScriptValue& object, KeyEvent& event) { · 87 unmodified lines
281281 }
282282 event.isValid = true;
283283 }
284+ return true;
284285 }
285286
286287 ScriptValue isShifted = object.property("isShifted");

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