initial commit

This commit is contained in:
2023-05-27 21:59:30 +02:00
parent 98c4d362ba
commit dd538dfb4e
4 changed files with 47 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#include "importDigiKey.h"
//! [0]
QString cImportDigiKey::echo(const QString &message)
{
return message;
}
//! [0]
+20
View File
@@ -0,0 +1,20 @@
#ifndef IMPORTDIGIKEY_H
#define IMPORTDIGIKEY_H
#include <QObject>
#include <QtPlugin>
#include "inventryPartsInterface.h"
//! [0]
class importDigikey : public QObject, inventryPartsInterface
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "at.windesign.inventryPartsInterface" FILE "importDigiKey.json")
Q_INTERFACES(inventryPartsInterface)
public:
QString echo(const QString &message) override;
};
//! [0]
#endif
+1
View File
@@ -0,0 +1 @@
{}
+18
View File
@@ -0,0 +1,18 @@
#! [0]
TEMPLATE = lib
CONFIG += plugin
QT += widgets
INCLUDEPATH += ../inventryParts
HEADERS = importDigiKey.h
SOURCES = importDigiKey.cpp
TARGET = $$qtLibraryTarget(importDigiKey)
DESTDIR = ../plugins
#! [0]
EXAMPLE_FILES = importDigiKey.json
# install
#target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/importDigiKey/plugins
#INSTALLS += target
CONFIG += install_ok # Do not cargo-cult this!