File indexing completed on 2024-05-12 17:09:55
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 #include <kworkspace.h> 0015 0016 int main(int argc, char **argv) 0017 { 0018 // read ksplashrc as config file, not ksplashqmlrc 0019 QCoreApplication::setApplicationName(QStringLiteral("ksplash")); 0020 0021 auto format = QSurfaceFormat::defaultFormat(); 0022 format.setOption(QSurfaceFormat::ResetNotification); 0023 QSurfaceFormat::setDefaultFormat(format); 0024 0025 KWorkSpace::detectPlatform(argc, argv); 0026 QQuickWindow::setDefaultAlphaBuffer(true); 0027 SplashApp app(argc, argv); 0028 0029 return app.exec(); 0030 }