blob: 5dc52a291907cc223f1963c4be9d4c810db00c93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2015 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef WORKER_H
#define WORKER_H
#include <QObject>
// native Qt/C++ class
//! [0]
class Worker : public QObject
{
Q_OBJECT
Q_PROPERTY(QString statusString READ statusString WRITE setStatusString)
public:
Worker();
QString statusString() const;
public slots:
void setStatusString(const QString &string);
signals:
void statusStringChanged(const QString &string);
private:
QString status;
};
//! [0]
#endif // WORKER_H
|