initial commit

This commit is contained in:
2024-10-27 19:16:23 +01:00
parent e4bad5550f
commit 63c00f646e
6 changed files with 196 additions and 12 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
qt_add_plugin(googlefonts
CLASS_NAME GoogleFonts
googlefonts.cpp googlefonts.h
cgooglefonts.cpp cgooglefonts.h
)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets
@@ -1,24 +1,24 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "googlefonts.h"
#include "cgooglefonts.h"
#include <QString>
GoogleFonts::GoogleFonts()
cGoogleFonts::cGoogleFonts()
{
}
GoogleFonts::~GoogleFonts()
cGoogleFonts::~cGoogleFonts()
{
}
QString GoogleFonts::name()
QString cGoogleFonts::name()
{
return tr("Google Fonts");
}
QString GoogleFonts::version()
QString cGoogleFonts::version()
{
return tr("0.1");
}
@@ -1,24 +1,24 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef GOOGLEFONTS_H
#define GOOGLEFONTS_H
#ifndef CGOOGLEFONTS_H
#define CGOOGLEFONTS_H
#include "ifontprovider.h"
class GoogleFonts : public QObject, public IFontProvider
class cGoogleFonts : public QObject, public IFontProvider
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "at.windesign.fontManager.IFontProvider/1.0" FILE "googlefonts.json")
Q_INTERFACES(IFontProvider)
public:
GoogleFonts();
~GoogleFonts() override;
cGoogleFonts();
~cGoogleFonts() override;
QString name() override;
QString version() override;
};
#endif //GOOGLEFONTS_H
#endif //CGOOGLEFONTS_H