blob: 8ecd00975ff417b22c1cfa41243b5daaf3aa88f1 (
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
32
33
34
35
36
37
38
39
|
/***************************************************************************************************
Copyright (C) 2023 The Qt Company Ltd.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
***************************************************************************************************/
#pragma once
#include "qdotnetobject.h"
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wconversion"
#endif
#include <QList>
#include <QString>
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
class QDotNetEventArgs : public QDotNetObject
{
public:
Q_DOTNET_OBJECT_INLINE(QDotNetEventArgs, "System.EventArgs");
};
class QDotNetPropertyEvent : public QDotNetObject
{
public:
Q_DOTNET_OBJECT_INLINE(QDotNetPropertyEvent,
"System.ComponentModel.PropertyChangedEventArgs, System.ObjectModel");
QString propertyName() const
{
return method("get_PropertyName", fnPropertyName).invoke(*this);
}
private:
mutable QDotNetSafeMethod<QString> fnPropertyName;
};
|