Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F116501
main.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
981 B
Referenced Files
None
Subscribers
None
main.cpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2021-2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include
<libkazv-config.hpp>
#include
<immer/config.hpp>
// https://github.com/arximboldi/immer/issues/168
#include
<QApplication>
#include
<QQmlApplicationEngine>
#include
<QtQml>
#include
<QUrl>
#include
"register-types.hpp"
Q_DECL_EXPORT
int
main
(
int
argc
,
char
*
argv
[])
{
QGuiApplication
::
setAttribute
(
Qt
::
AA_EnableHighDpiScaling
);
QApplication
app
(
argc
,
argv
);
QCoreApplication
::
setOrganizationName
(
"project-kazv"
);
QCoreApplication
::
setOrganizationDomain
(
"mxc.kazv.moe"
);
QCoreApplication
::
setApplicationName
(
"kazv"
);
QGuiApplication
::
setDesktopFileName
(
"moe.kazv.mxc.kazv.desktop"
);
QQmlApplicationEngine
engine
;
registerKazvQmlTypes
();
engine
.
load
(
QUrl
(
QStringLiteral
(
"qrc:///main.qml"
)));
if
(
engine
.
rootObjects
().
isEmpty
())
{
return
-1
;
}
return
app
.
exec
();
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Dec 1, 5:38 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41764
Default Alt Text
main.cpp (981 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment