82 Commits

Author SHA1 Message Date
Duncan Paterson
fbe5fd93cc Fixed #53: added initial (QPixmap only) implementation of QQuickImageProvider (#70)
Added initial support for QQuickImageProvider
2018-02-12 22:45:21 +01:00
Filippo Cucchetto
41c33f7751 Added optional support for QtQuickControls2 module 2017-08-24 23:17:32 +02:00
Filippo Cucchetto
886984a2a2 Fixes #63 Added support for setting the QtQuickControls2 style 2017-08-24 22:52:39 +02:00
drug007
c1fc74a14e QAbstractItemModel::hasIndex added. (#60)
* QAbstractItemModel::hasIndex added.

* Typo
2017-04-16 22:52:43 +02:00
Filippo Cucchetto
0fc5218bbe Fixed #57: Added support for QModelIndex::internalPointer 2017-04-13 14:35:49 +02:00
Filippo Cucchetto
e38e3e606c Beautified the codebase through astyle 2017-04-09 14:34:47 +02:00
Filippo Cucchetto
f5eba67bd3 Merge branch 'qaim' 2017-04-09 12:06:12 +02:00
Filippo Cucchetto
c77567b0e4 Added CanFetchMore, FetchMore and HasChildren callbacks 2017-04-02 16:12:18 +02:00
Filippo Cucchetto
ffd9b493a9 Simplified the dos_qabstractitemmodel_create interface by using a struct
Removed most of the function parameters by putting them inside a struct
2017-04-02 14:47:42 +02:00
seu
c355fda609 Explicitly register QVector<int> to Qt's MOS 2017-03-30 13:22:59 +02:00
Filippo Cucchetto
0bb4bc8d3c Finished adding default function implementation for QAIM 2017-03-25 15:08:04 +01:00
Filippo Cucchetto
3fb5073aff wip 2017-03-22 22:23:17 +01:00
Filippo Cucchetto
4321a18fa6 Added support for QAbstractTableModels 2017-03-22 21:25:36 +01:00
Filippo Cucchetto
7bc65bc4f1 Added support for QAbstractListModel 2017-03-22 21:21:57 +01:00
Filippo Cucchetto
259b8e4a48 Added index and parent callbacks 2017-03-05 19:07:40 +01:00
Filippo Cucchetto
8d14731273 Exposed the beginInsertColumns and beginRemoveColumns 2017-03-05 18:37:49 +01:00
Filippo Cucchetto
25f396ef46 Renamed QAbstractListModel in QAbstractItemModel 2017-03-05 18:22:04 +01:00
Tom Hall
66d3fa5124 Use qGuiApp instead of qApp when working with a QGuiApplication
qApp casts to QApplication, so it is only really valid when we're using
QApplication. In addition, QApplication and qApp are part of QtWidgets,
so using qApp adds an unnecessary dependency on QtWidgets to
QtQuick-only applications.
2017-02-18 14:52:05 +00:00
Filippo Cucchetto
7b94508c80 Fixed compilation 2016-07-10 00:30:00 +02:00
Filippo Cucchetto
81854f9a9e Merge remote-tracking branch 'origin/master' into doxygen
# Conflicts:
#	lib/include/DOtherSide/DOtherSide.h
#	lib/include/DOtherSide/DOtherSideTypes.h
2016-07-09 18:31:22 +02:00
Filippo Cucchetto
d70919b772 Improved the documentation 2016-07-09 18:20:00 +02:00
Filippo Cucchetto
819409fa94 Closed #39 Add support for QVariantList
This adds support for marshalling arrays of QVariant (QVariantList) in/out from DosQVariant.
We added the following 3 API:
dos_qvariant_create_array
dos_qvariant_setArray
dos_qvariant_toArray

Support for QVariantList in property definition of QObjects is already enabled. The end
user should use the QVariantList metatype.
2016-07-04 18:20:02 +02:00
Filippo Cucchetto
4068279091 Added QUrl test 2016-06-26 15:05:38 +02:00
Filippo Cucchetto
4660a36e8d Work on MockQAbstractListModel 2016-06-19 18:17:48 +02:00
Filippo Cucchetto
864849680b Work on MockQAbstractListModel 2016-06-19 12:20:00 +02:00
Filippo Cucchetto
12e19be48e Fixed return type for connect/disconnect 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
ada750679e Formatted code through astyle 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
a3372a66a9 Added typedefs for giving semantic to void* 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
a846ad2a3d Fixed mismatch between declarations and definitions 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
c4884c43fe Removed void** because they're ugly 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
bcbe9e5315 Fixed wrong signal emittion in QAbstractListModelWrapper 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
e7dfc7c8b0 Move DosQObjectWrapper to header file and added DosQdeclarative module 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
c271423009 Possible Fix 2 by swapping the qobject 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
7f1f91a71e Given a pass of astyle 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
ef0ed26f7c Added API for QModelIndex copy constructor 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
9fac298369 Added API for assigning two QModelIndex 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
ac7f43a044 Removed QAIM delete and fixed casting to void* 2016-04-10 14:40:01 +02:00
Filippo Cucchetto
10cee8d739 Added support for qmlRegisterSingletonType 2016-04-10 14:40:00 +02:00
Filippo Cucchetto
eda7720869 Little fixes 2016-04-10 14:40:00 +02:00
Filippo Cucchetto
f02d1e965a Fixed passing slot, signals and properties structs by reference 2016-04-10 14:40:00 +02:00
Filippo Cucchetto
49f02c9671 Fixes for qmlRegisterType for supporting Nim
The callback now return the registration id.
Furthermore  we pass the struct by reference for better supporting
the C language
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
8d9ef5d70e Added missing setObjectName 2016-04-10 14:40:00 +02:00
Filippo Cucchetto
99c385446f Temporary removed findChild and rootObjects
This is done for safety reasons. We will bring them back once we found
out how to deal with shared ownership with cpp
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
548b7f4e50 Checking for nullnes is unnecessary
If the memory allocation fails we are screwed anyway
2016-04-10 14:40:00 +02:00
Filippo Cucchetto
ed8cb13083 Removed useless QAbstractListModels methods for QVariant 2016-04-10 14:40:00 +02:00
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