forked from qt-creator/qt-creator
		
	Change-Id: I1ccc631a6e03b0e1229fa23d13ff13303166df80 Reviewed-by: hjk <hjk121@nokiamail.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			224 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			224 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "myplugin.h"
 | 
						|
#include "mytype.h"
 | 
						|
 | 
						|
#include <qqml.h>
 | 
						|
 | 
						|
void MyPlugin::registerTypes(const char *uri)
 | 
						|
{
 | 
						|
    // @uri mymodule
 | 
						|
    // bp here should be hit on startup
 | 
						|
    qmlRegisterType<MyType>(uri, 1, 0, "MyType");
 | 
						|
}
 | 
						|
 |