Filippo Cucchetto
a2217cf0d1
Casting to void* and reinterpret cast are evil
...
Instead of using reinterpret_cast use the safer static_cast
Furthermore in C++ casting to void* is a really unsafe. The
main thing to keep in mind is to use the initial type when
casting back. So we must ensure that
void* t = static_cast<QObject*>(value)
QObject* t = static_cast<void*>(value)
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
94353c1045
Refactoring by using a struct for the qmlRegisterType args
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
4c2570fc42
Removed switch duplicated code with a recursive template
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
0506920c4b
Add a battery of 20 qml registration slots
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
8d62c449be
Basic support for qmlRegisterType
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
cd0c08fb50
Fixed arguments offset
...
Methods have always the return value at pos 0 and arguments in pos >= 1. This is not true for WriteProperty calls. Infact the property value is at pos 0.
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
562fcc71a7
Started support for qmlregistertype
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
14a81b356d
Fixed broken tests
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
7881cc59ed
Moved implementation to cpp
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
c20683154a
Beautified the code
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
b0a18a0461
Updated the gitignore
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
553bec0eb7
Little refactor
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
c11cc30180
Renaming and code cleanup
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
b69ef602ad
MetaObject is required on QObject construction
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
e6753ee645
Removed useless includes
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
d90a650f8f
Updated the gitignore
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
7dd54c48e9
Added pch.h files for meson and used same CMakeLists.txt structure
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
46eb5683e6
Added build file for meson build system
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
4d4b0590ae
Fixed the implementation now everything seems to work fine
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
28f9898573
wip
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
39c0c94a24
Simple test
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
a9c95abd57
Fixed wrong offset in property invokation
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
ed7be34536
wip
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
5a42e05f98
Move implementation for using QAbstractDynamicMetaObject
...
Added support for QAbstractListModels
Fixed bug in the serialization of arguments before slot execution
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
eaaa1d13a9
Fixed bug in the creation of the parameter list
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
cc965c69b8
Refactored the creation of the DosQObjectImpl
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
1804071311
Renaming and beautifing the code
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
23f795298d
Refactoring and bug fixing
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
e5457adc85
Bug fixing
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
56306f8403
Added support for QMetaObject inheritance and lots of renaming
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
d0e0079fcf
Started the QMetaObject inheritance
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
db5ee9d75a
Started work for supporting QAbstractItemModels again
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
91ce909191
Fixed the creation of QObject instances
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
3c63201936
Added QMetaObjectFactory
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
2ed13a3238
Added auto when necessary
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
9a88ffd48e
Improved QQmlContext and QQmlApplicationEngine tests
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
d993980cd4
Added QQmlApplicationEngine::loadData()
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
b84505ddfe
Added missing operator-> for SafeQMetaObjectPtr
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
596dca3987
Added custom RAII type for MetaObjects
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
b093ed48e2
Added missing namespace
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
2ebada68b5
Removed leftovers
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
2fdba7dace
Added virtual display server
...
This is necessary because Travis run on an headless infrastructure
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
5c94dd3d70
Renamed the test to test_dotherside.cpp
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
8f188552c2
Temporary removed QAbstractListModel support and improved unit tests
2016-04-10 14:39:59 +02:00
Filippo Cucchetto
711131b4f4
Added DynamicQObjectFactory methods to C interface
2016-04-10 14:39:20 +02:00
Filippo Cucchetto
83893b2934
Introduced the concept of factories
...
The use of a factory decreased the creation time from 500ms for 1000 DynamicQObjects to 1.6ms
2016-04-10 14:39:20 +02:00
Filippo Cucchetto
7328a1e24c
Merge pull request #34 from Calrama/fixes
...
Signals may have no arguments
0.4.7
2015-12-28 23:51:38 +01:00
Moritz Maxeiner
42a5a454ef
Signals may have no arguments
2015-12-28 23:33:33 +01:00
Filippo Cucchetto
7586b827e7
Merge pull request #31 from Calrama/misc
...
Added extra functions for QQuickView, QQmlApplicationEngine and QUrl
2015-12-24 13:56:18 +01:00
Filippo Cucchetto
3dd62f2c4b
Merge pull request #32 from Calrama/signals
...
Implement functionality to receive any signals
2015-12-24 13:55:29 +01:00