aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qtscript/registeringobjects/myobject.h
blob: e230dffa582dee76a21485dbe8c41bf885c927d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef MYOBJECT_H
#define MYOBJECT_H

#include <QObject>

class MyObject : public QObject
{
    Q_OBJECT

public:
    MyObject();

public slots:
    int calculate(int value) const;
};

#endif