qml interop: start replacing QMetaObject::invokeMethod with signals

It seems concurrent calls to invokeMethod using qml component
object pointers can lead to access violations. These method
invocations can be replaced with a signal/slot mechanism.

This patch replaces only the invocations in conversationsadapter
and accountsadapter that are known to be problematic for now.

Some code cleanup is done for QmlAdapterBase derived classes.

Gitlab: #61
Change-Id: I72f47c9229a9bf42299ae52822c3a1a8c04eb423
This commit is contained in:
Andreas Traczyk
2020-09-03 09:24:49 -04:00
parent 346b255c77
commit eb53a622b7
22 changed files with 147 additions and 191 deletions

View File

@@ -174,7 +174,6 @@ SOURCES += ./src/bannedlistmodel.cpp \
./src/conversationsadapter.cpp \
./src/distantrenderer.cpp \
./src/previewrenderer.cpp \
./src/qmladapterbase.cpp \
./src/avadapter.cpp \
./src/contactadapter.cpp \
./src/mediahandleradapter.cpp \