History

early smoketesting

Heather Anderson committed 5 years ago

Commit f209c511 parent 5f2b2c914 files · +150 −91Browse files

Showing the changes to libraries/script-engine/src/qtscript/ScriptEngineQtScript.h (1 of 14 files). Show all

Unified · Split

libraries/script-engine/src/qtscript/ScriptEngineQtScript.h+2−10
@@ -89,6 +89,7 @@ public: // ScriptEngine implementation · 88 unmodified lines
8989 virtual bool setProperty(const char* name, const QVariant& value);
9090 virtual void setProcessEventsInterval(int interval);
9191 virtual QThread* thread() const;
92+ virtual void setThread(QThread* thread);
9293 virtual ScriptValuePointer undefinedValue();
9394 virtual ScriptValuePointer uncaughtException() const;
9495 virtual QStringList uncaughtExceptionBacktrace() const;
@@ -404,18 +405,9 @@ protected: · 309 unmodified lines
404405 */
405406 Q_INVOKABLE void executeOnScriptThread(std::function<void()> function, const Qt::ConnectionType& type = Qt::QueuedConnection );
406407
407− // store for handling custom type marshaling/demarshaling
408− struct CustomTypeInfo {
409− ScriptEngine::MarshalFunction marshalFunc;
410− ScriptEngine::DemarshalFunction demarshalFunc;
411− ScriptValuePointer prototype;
412− };
413− typedef std::map<int, CustomTypeInfo> TCustomTypeMap;
414− TCustomTypeMap _customTypes;
415− std::mutex _customTypeProtect;
416−
417408 QPointer<ScriptManager> _manager;
418409
410+ int _nextCustomType = 0;
419411 ScriptValuePointer _nullValue;
420412 ScriptValuePointer _undefinedValue;
421413 mutable ScriptContextQtPointer _currContext;

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