-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cannot print report Competitors with rented cards #944 fixed
- Loading branch information
Fanda Vacek
committed
Aug 27, 2023
1 parent
de2d139
commit f0e65a9
Showing
6 changed files
with
94 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#include "qfcore_plugin.h" | ||
|
||
#include "crypt.h" | ||
#include "settings.h" | ||
|
||
#include "qmllogsingleton.h" | ||
//#include "qmlfilesingleton.h" | ||
#include "sql/qmlsqlsingleton.h" | ||
#include "sql/sqlconnection.h" | ||
#include "sql/sqlquery.h" | ||
#include "sql/sqlrecord.h" | ||
#include "sql/sqlquerybuilder.h" | ||
#include "model/sqldatadocument.h" | ||
|
||
#include "model/sqltablemodel.h" | ||
#include "model/tablemodelcolumn.h" | ||
|
||
//#include <qf/core/network/networkaccessmanager.h> | ||
//#include <qf/core/network/networkreply.h> | ||
|
||
//#include <qf/core/model/sqltablemodel.h> | ||
//#include <qf/core/model/datadocument.h> | ||
|
||
//#include <qf/core/log.h> | ||
|
||
//#include <QQmlExtensionPlugin> | ||
//#include <QQmlEngine> | ||
|
||
#include <QtQml> | ||
|
||
QT_BEGIN_NAMESPACE | ||
|
||
void QFCorePlugin::registerTypes(const char *uri) | ||
{ | ||
//qfLogFuncFrame() << uri; | ||
Q_ASSERT(uri == QLatin1String("qf.core")); | ||
|
||
qmlRegisterSingletonType<qf::core::qml::QmlLogSingleton>(uri, 1, 0, "Log_helper", &qf::core::qml::QmlLogSingleton::singletontype_provider); | ||
//qmlRegisterSingletonType<qf::core::qml::QmlFileSingleton>(uri, 1, 0, "File", &qf::core::qml::QmlFileSingleton::singletontype_provider); | ||
qmlRegisterSingletonType<qf::core::qml::QmlSqlSingleton>(uri, 1, 0, "Sql", &qf::core::qml::QmlSqlSingleton::singletontype_provider); | ||
|
||
qmlRegisterType<qf::core::qml::SqlConnection>(uri, 1, 0, "SqlConnection"); | ||
qmlRegisterType<qf::core::qml::SqlQuery>(uri, 1, 0, "SqlQuery"); | ||
qmlRegisterType<qf::core::qml::SqlRecord>(uri, 1, 0, "SqlRecord"); | ||
qmlRegisterType<qf::core::qml::SqlQueryBuilder>(uri, 1, 0, "SqlQueryBuilder"); | ||
qmlRegisterType<qf::core::qml::SqlTableModel>(uri, 1, 0, "SqlTableModel"); | ||
qmlRegisterType<qf::core::model::TableModel>(uri, 1, 0, "TableModel"); | ||
qmlRegisterType<qf::core::qml::TableModelColumn>(uri, 1, 0, "ModelColumn"); | ||
|
||
qmlRegisterType<qf::core::model::DataDocument>(uri, 1, 0, "DataDocument"); | ||
qmlRegisterType<qf::core::qml::SqlDataDocument>(uri, 1, 0, "SqlDataDocument"); | ||
|
||
qmlRegisterType<qf::core::qml::Settings>(uri, 1, 0, "Settings"); | ||
qmlRegisterType<qf::core::qml::Crypt>(uri, 1, 0, "Crypt"); | ||
|
||
//qmlRegisterType<qf::core::network::NetworkAccessManager>(uri, 1, 0, "NetworkAccessManager"); | ||
//qmlRegisterType<qf::core::network::NetworkReply>(uri, 1, 0, "NetworkReply"); | ||
|
||
// Auto-increment the import to stay in sync with ALL future QtQuick minor versions | ||
qmlRegisterModule(uri, 1, 0); | ||
} | ||
|
||
QT_END_NAMESPACE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include <QQmlExtensionPlugin> | ||
|
||
QT_BEGIN_NAMESPACE | ||
|
||
class QFCorePlugin : public QQmlExtensionPlugin | ||
{ | ||
Q_OBJECT | ||
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) | ||
|
||
public: | ||
QFCorePlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { } | ||
void registerTypes(const char *uri) override; | ||
}; | ||
|
||
QT_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
// Copyright (C) 2016 Kurt Pattyn <[email protected]>. | ||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only | ||
|
||
#include "qfqmlreports_plugin.h" | ||
|
||
#include <qf/qmlwidgets/reports/processor/reportitempara.h> | ||
|
@@ -19,7 +16,7 @@ | |
|
||
QT_BEGIN_NAMESPACE | ||
|
||
void QFQmlRepoertPlugin::registerTypes(const char *uri) | ||
void QFQmlReportPlugin::registerTypes(const char *uri) | ||
{ | ||
Q_ASSERT(uri == QLatin1String("qf.qmlreports")); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters