mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-30 09:07:32 -04:00
Create logic for call android native image picker
This commit is contained in:
parent
59b77da6a2
commit
2cb6742dbc
6 changed files with 87 additions and 1 deletions
|
@ -34,6 +34,8 @@
|
|||
|
||||
#include "libresapilocalclient.h"
|
||||
#include "rsqmlappengine.h"
|
||||
#include "androidimagepicker.h"
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -46,6 +48,7 @@ int main(int argc, char *argv[])
|
|||
"org.retroshare.qml_components.LibresapiLocalClient", 1, 0,
|
||||
"LibresapiLocalClient");
|
||||
|
||||
|
||||
QString sockPath = QDir::homePath() + "/.retroshare";
|
||||
sockPath.append("/libresapi.sock");
|
||||
|
||||
|
@ -55,6 +58,14 @@ int main(int argc, char *argv[])
|
|||
RsQmlAppEngine engine(true);
|
||||
QQmlContext& rootContext = *engine.rootContext();
|
||||
|
||||
qmlRegisterType<AndroidImagePicker>(
|
||||
"org.retroshare.qml_components.AndroidImagePicker", 1, 0,
|
||||
"AndroidImagePicker");
|
||||
|
||||
AndroidImagePicker androidImagePicker;
|
||||
engine.rootContext()->setContextProperty("androidImagePicker",
|
||||
&androidImagePicker);
|
||||
|
||||
QStringList mainArgs = app.arguments();
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue