File indexing completed on 2024-05-12 05:37:59

0001 /*
0002     SPDX-FileCopyrightText: 2011 Ivan Cukic <ivan.cukic(at)kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "splashapp.h"
0008 #include <QQuickWindow>
0009 #include <QSurfaceFormat>
0010 
0011 #include <QFile>
0012 #include <QTextStream>
0013 
0014 int main(int argc, char **argv)
0015 {
0016     // read ksplashrc as config file, not ksplashqmlrc
0017     QCoreApplication::setApplicationName(QStringLiteral("ksplash"));
0018 
0019     auto format = QSurfaceFormat::defaultFormat();
0020     format.setOption(QSurfaceFormat::ResetNotification);
0021     QSurfaceFormat::setDefaultFormat(format);
0022 
0023     QQuickWindow::setDefaultAlphaBuffer(true);
0024     SplashApp app(argc, argv);
0025 
0026     return app.exec();
0027 }