This repository has been archived by the owner on May 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
63 lines (47 loc) · 1.96 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <QApplication>
#include "helper.h"
#include "decolorizeeditor.h"
#include "sketcheditor.h"
#include "cartooneditor.h"
#include "blureditor.h"
#include "pixelateeditor.h"
#include "recoloreditor.h"
#include "retoucheditor.h"
#include "qmlapplicationviewer.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
#ifndef MEEGO_TARGET
QmlApplicationViewer splash;
#endif
QmlApplicationViewer viewer;
qmlRegisterType<Helper>("ImageEditor", 1, 0, "Helper");
qmlRegisterType<DecolorizeEditor>("ImageEditor", 1, 0, "DecolorizeEditor");
qmlRegisterType<SketchEditor>("ImageEditor", 1, 0, "SketchEditor");
qmlRegisterType<SketchPreviewGenerator>("ImageEditor", 1, 0, "SketchPreviewGenerator");
qmlRegisterType<CartoonEditor>("ImageEditor", 1, 0, "CartoonEditor");
qmlRegisterType<CartoonPreviewGenerator>("ImageEditor", 1, 0, "CartoonPreviewGenerator");
qmlRegisterType<BlurEditor>("ImageEditor", 1, 0, "BlurEditor");
qmlRegisterType<BlurPreviewGenerator>("ImageEditor", 1, 0, "BlurPreviewGenerator");
qmlRegisterType<PixelateEditor>("ImageEditor", 1, 0, "PixelateEditor");
qmlRegisterType<PixelatePreviewGenerator>("ImageEditor", 1, 0, "PixelatePreviewGenerator");
qmlRegisterType<RecolorEditor>("ImageEditor", 1, 0, "RecolorEditor");
qmlRegisterType<RetouchEditor>("ImageEditor", 1, 0, "RetouchEditor");
#ifndef MEEGO_TARGET
splash.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
splash.setMainQmlFile(QLatin1String("qml/magicphotos/Symbian/splash.qml"));
splash.showFullScreen();
QCoreApplication::processEvents();
#endif
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
#ifdef MEEGO_TARGET
viewer.setMainQmlFile(QLatin1String("qml/magicphotos/Meego/main.qml"));
#else
viewer.setMainQmlFile(QLatin1String("qml/magicphotos/Symbian/main.qml"));
#endif
viewer.showFullScreen();
#ifndef MEEGO_TARGET
splash.close();
#endif
return app.exec();
}