[DO-981] qt package (!15)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/15
This commit is contained in:
26
recipes/qt/6.x.x/test_package/greeter.h
Normal file
26
recipes/qt/6.x.x/test_package/greeter.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#include <QDebug>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
class Greeter : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Greeter(const QString& name, QObject *parent = 0)
|
||||
: QObject(parent)
|
||||
, mName(name) {}
|
||||
|
||||
public slots:
|
||||
void run()
|
||||
{
|
||||
qDebug() << QString("Hello %1!").arg(mName);
|
||||
|
||||
emit finished();
|
||||
}
|
||||
|
||||
signals:
|
||||
void finished();
|
||||
|
||||
private:
|
||||
const QString& mName;
|
||||
};
|
||||
Reference in New Issue
Block a user