aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/connection.h
blob: 5217e1ad341c12dddb9c892cb2d34ab899a5c97f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef CONNECTION_H
#define CONNECTION_H

#include "pysidetest_macros.h"

// PYSIDE-2792, testing converter name clashes with QMetaObject::Connection.
class Connection
{
public:
    Connection(int handle = 0) noexcept : m_handle(handle) {}

    int handle() const { return m_handle; }

private:
    int m_handle;
};

#endif // CONNECTION_H