Import config from filesystem on iOS
This commit is contained in:
parent
cacf74af3c
commit
1b3a32f83f
5 changed files with 7 additions and 11 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#import "QtAppDelegate.h"
|
||||
#import "ios_controller.h"
|
||||
|
||||
#include <QFile>
|
||||
|
||||
|
|
@ -79,7 +80,7 @@
|
|||
bool isOpenFile = file.open(QIODevice::ReadOnly);
|
||||
QByteArray data = file.readAll();
|
||||
|
||||
[QtAppDelegate sharedQtAppDelegate].ImportController->extractConfigFromData(QString(data));
|
||||
IosController::Instance()->importConfigFromOutside(QString(data));
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
|
|
@ -92,8 +93,4 @@ void QtAppDelegateInitialize()
|
|||
NSLog(@"Created a new AppDelegate");
|
||||
}
|
||||
|
||||
void setImportController(ImportController* controller) {
|
||||
[QtAppDelegate sharedQtAppDelegate].ImportController = controller;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue