-
-
Save Nicd/e1db57fe567052f7eea6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* © Mikko Ahlroth 2014 | |
* WeeCRApp is open source software. For licensing information, please check | |
* the LICENCE file. | |
*/ | |
#ifdef QT_QML_DEBUG | |
#include <QtQuick> | |
#endif | |
#include <sailfishapp.h> | |
#include <QScopedPointer> | |
#include <QGuiApplication> | |
#include <QtQml> | |
#include <QQuickView> | |
#include "connectionhandler.h" | |
#include "qsslcertificateinfo.h" | |
int main(int argc, char* argv[]) | |
{ | |
// SailfishApp::main() will display "qml/template.qml", if you need more | |
// control over initialization, you can use: | |
// | |
// - SailfishApp::application(int, char *[]) to get the QGuiApplication * | |
// - SailfishApp::createView() to get a new QQuickView * instance | |
// - SailfishApp::pathTo(QString) to get a QUrl to a resource file | |
// | |
// To display the view, call "show()" (will show fullscreen on device). | |
QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv)); | |
app->setApplicationName("WeeCRApp"); | |
app->setOrganizationName("Nytsoi Inc."); | |
app->setOrganizationDomain("nytsoi.net"); | |
QScopedPointer<QQuickView> view(SailfishApp::createView()); | |
// Register custom types to be accessible from QML | |
qmlRegisterType<ConnectionHandler>("harbour.weechatrelay.connectionhandler", 1, 0, "ConnectionHandler"); | |
qmlRegisterType<QSslCertificateInfo>("harbour.weechatrelay.qsslcertificateinfo", 1, 0, "QSslCertificateInfo"); | |
view->setSource(SailfishApp::pathTo("qml/harbour-weechatrelay.qml")); | |
view->showFullScreen(); | |
return app->exec(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
X-Nemo-Application-Type=silica-qt5 | |
Name=WeeCRApp | |
Icon=harbour-weechatrelay | |
Exec=harbour-weechatrelay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment