Fix iOS build
This commit is contained in:
parent
4e9f68acff
commit
cacf74af3c
8 changed files with 15 additions and 18 deletions
|
@ -1,9 +1,9 @@
|
|||
#ifndef QTAPPDELEGATECINTERFACE_H
|
||||
#define QTAPPDELEGATECINTERFACE_H
|
||||
|
||||
#include "ui/pages_logic/StartPageLogic.h"
|
||||
#include "ui/controllers/importController.h"
|
||||
|
||||
void QtAppDelegateInitialize();
|
||||
void setStartPageLogic(StartPageLogic*);
|
||||
void setImportController(ImportController*);
|
||||
|
||||
#endif // QTAPPDELEGATECINTERFACE_H
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#import <UIKit/UIKit.h>
|
||||
#import "QtAppDelegate-C-Interface.h"
|
||||
|
||||
#include "ui/pages_logic/StartPageLogic.h"
|
||||
#include "ui/controllers/importController.h"
|
||||
|
||||
@interface QtAppDelegate : UIResponder <UIApplicationDelegate>
|
||||
+(QtAppDelegate *)sharedQtAppDelegate;
|
||||
@property (nonatomic) StartPageLogic* startPageLogic;
|
||||
@property (nonatomic) ImportController* ImportController;
|
||||
@end
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
bool isOpenFile = file.open(QIODevice::ReadOnly);
|
||||
QByteArray data = file.readAll();
|
||||
|
||||
[QtAppDelegate sharedQtAppDelegate].startPageLogic->importAnyFile(QString(data));
|
||||
[QtAppDelegate sharedQtAppDelegate].ImportController->extractConfigFromData(QString(data));
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
|
@ -92,8 +92,8 @@ void QtAppDelegateInitialize()
|
|||
NSLog(@"Created a new AppDelegate");
|
||||
}
|
||||
|
||||
void setStartPageLogic(StartPageLogic* startPage) {
|
||||
[QtAppDelegate sharedQtAppDelegate].startPageLogic = startPage;
|
||||
void setImportController(ImportController* controller) {
|
||||
[QtAppDelegate sharedQtAppDelegate].ImportController = controller;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue