File indexing completed on 2024-07-21 04:35:18

0001 /*
0002     SPDX-FileCopyrightText: 2024 Ralf Habacker ralf.habacker @freenet.de
0003 
0004     This file is part of libalkimia.
0005 
0006     SPDX-License-Identifier: LGPL-2.1-or-later
0007 */
0008 
0009 #include "alknewstuffwidget.h"
0010 
0011 #include "alkapplication.h"
0012 
0013 #if defined(Q_OS_WIN) && !defined(BUILD_WITH_KIO)
0014 #include <QNetworkProxyFactory>
0015 #endif
0016 
0017 int main(int argc, char *argv[])
0018 {
0019     AlkApplication app(argc,argv);
0020 
0021     // this is needed by KNS3
0022     AlkAboutData aboutData(QStringLiteral("alknewstuffwidgettest"), QStringLiteral("Alkimia New Stuff Widget Test"), QStringLiteral("1.0.0"));
0023     aboutData.setOrganizationDomain("kde.org");
0024     AlkAboutData::setApplicationData(aboutData);
0025 
0026 #if defined(Q_OS_WIN) && !defined(BUILD_WITH_KIO)
0027     QNetworkProxyFactory::setUseSystemConfiguration(true);
0028 #endif
0029 
0030     QString configFile = KNSRC_DIR "/alkimia-quotes.knsrc";
0031 
0032     AlkNewStuffWidget engine;
0033     engine.init(configFile);
0034     engine.showInstallDialog();
0035 }