File: alknewstuffwidgettest.cpp

package info (click to toggle)
alkimia 8.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,796 kB
  • sloc: cpp: 10,563; sh: 563; python: 212; php: 105; perl: 69; xml: 12; makefile: 10
file content (35 lines) | stat: -rw-r--r-- 874 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
    SPDX-FileCopyrightText: 2024 Ralf Habacker ralf.habacker @freenet.de

    This file is part of libalkimia.

    SPDX-License-Identifier: LGPL-2.1-or-later
*/

#include "alknewstuffwidget.h"

#include "alkapplication.h"

#if defined(Q_OS_WIN)
#include <QNetworkProxyFactory>
#endif

int main(int argc, char *argv[])
{
    AlkApplication app(argc,argv);

    // this is needed by KNS3
    AlkAboutData aboutData(QStringLiteral("alknewstuffwidgettest"), QStringLiteral("Alkimia New Stuff Widget Test"), QStringLiteral("1.0.0"));
    aboutData.setOrganizationDomain("kde.org");
    AlkAboutData::setApplicationData(aboutData);

#if defined(Q_OS_WIN)
    QNetworkProxyFactory::setUseSystemConfiguration(true);
#endif

    QString configFile = KNSRC_DIR "/alkimia-quotes.knsrc";

    AlkNewStuffWidget engine;
    engine.init(configFile);
    engine.showInstallDialog();
}