mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-07 10:14:41 +00:00
Merge pull request #56 from flanfly/reg-qvector-int
Explicitly register QVector<int> to Qt's MOS
This commit is contained in:
commit
3c2f2bd9ff
@ -21,6 +21,12 @@
|
||||
#include "DOtherSide/DosQAbstractListModel.h"
|
||||
#include "DOtherSide/DosQDeclarative.h"
|
||||
|
||||
namespace {
|
||||
void register_meta_types() {
|
||||
qRegisterMetaType<QVector<int>>();
|
||||
}
|
||||
}
|
||||
|
||||
char *convert_to_cstring(const QByteArray &array)
|
||||
{
|
||||
return qstrdup(array.data());
|
||||
@ -41,6 +47,9 @@ void dos_qguiapplication_create()
|
||||
static int argc = 1;
|
||||
static char empty[1] = {0};
|
||||
static char *argv[] = {empty};
|
||||
|
||||
register_meta_types();
|
||||
|
||||
new QGuiApplication(argc, argv);
|
||||
}
|
||||
|
||||
@ -64,6 +73,9 @@ void dos_qapplication_create()
|
||||
static int argc = 1;
|
||||
static char empty[1] = {0};
|
||||
static char *argv[] = {empty};
|
||||
|
||||
register_meta_types();
|
||||
|
||||
new QApplication(argc, argv);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user