File: qmlalkimiaplugin.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 (21 lines) | stat: -rw-r--r-- 510 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
/*
    SPDX-FileCopyrightText: 2018 Ralf Habacker ralf.habacker @freenet.de

    This file is part of libalkimia.

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

#include "qmlalkimiaplugin.h"

#include "alkonlinequote.h"

void QmlAlkimiaPlugin::registerTypes(const char *uri)
{
    Q_ASSERT(uri == QLatin1String("org.kde.alkimia"));
    qmlRegisterType<AlkOnlineQuote>(uri, 1, 0, "AlkOnlineQuote");
}

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
Q_EXPORT_PLUGIN2(qmlalkimiaplugin, QmlAlkimiaPlugin);
#endif