mirror of
				https://github.com/fralx/LimeReport.git
				synced 2025-11-03 22:51:26 +03:00 
			
		
		
		
	QQmlEngine -> QJSEngine
This commit is contained in:
		
							
								
								
									
										11
									
								
								common.pri
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								common.pri
									
									
									
									
									
								
							@@ -18,12 +18,13 @@ contains(CONFIG, easy_profiler){
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
!contains(CONFIG, qtscriptengine){
 | 
					!contains(CONFIG, qtscriptengine){
 | 
				
			||||||
greaterThan(QT_MAJOR_VERSION, 4){
 | 
					greaterThan(QT_MAJOR_VERSION, 4){
 | 
				
			||||||
greaterThan(QT_MINOR_VERSION, 5){
 | 
					 | 
				
			||||||
    CONFIG *= qjsengine
 | 
					    CONFIG *= qjsengine
 | 
				
			||||||
}
 | 
					#greaterThan(QT_MINOR_VERSION, 5){
 | 
				
			||||||
lessThan(QT_MINOR_VERSION, 6){
 | 
					#    CONFIG *= qjsengine
 | 
				
			||||||
    CONFIG *= qtscriptengine
 | 
					#}
 | 
				
			||||||
}
 | 
					#lessThan(QT_MINOR_VERSION, 6){
 | 
				
			||||||
 | 
					#    CONFIG *= qtscriptengine
 | 
				
			||||||
 | 
					#}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
lessThan(QT_MAJOR_VERSION, 5){
 | 
					lessThan(QT_MAJOR_VERSION, 5){
 | 
				
			||||||
    CONFIG *= qtscriptengine
 | 
					    CONFIG *= qtscriptengine
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -138,13 +138,12 @@ namespace Const{
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef USE_QJSENGINE
 | 
					#ifdef USE_QJSENGINE
 | 
				
			||||||
    typedef QQmlEngine ScriptEngineType;
 | 
					    typedef QJSEngine ScriptEngineType;
 | 
				
			||||||
    typedef QJSValue ScriptValueType;
 | 
					    typedef QJSValue ScriptValueType;
 | 
				
			||||||
    template <typename T>
 | 
					    template <typename T>
 | 
				
			||||||
    static inline QJSValue getCppOwnedJSValue(QJSEngine &e, T *p)
 | 
					    static inline QJSValue getJSValue(QJSEngine &e, T *p)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        QJSValue res = e.newQObject(p);
 | 
					        QJSValue res = e.newQObject(p);
 | 
				
			||||||
        QQmlEngine::setObjectOwnership(p, QQmlEngine::CppOwnership);
 | 
					 | 
				
			||||||
        return res;
 | 
					        return res;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user