pqSMSignalAdaptors.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef pqSMSignalAdaptors_h
6 #define pqSMSignalAdaptors_h
7 
8 #include "pqComponentsModule.h"
9 #include <QObject>
10 #include <QVariant>
11 class pqProxy;
12 
17 {
18  Q_OBJECT
19  Q_PROPERTY(QVariant proxy READ proxy WRITE setProxy)
20 public:
25  pqSignalAdaptorProxy(QObject* p, const char* Property, const char* signal);
29  QVariant proxy() const;
30 Q_SIGNALS:
34  void proxyChanged(const QVariant&);
35 public Q_SLOTS:
39  void setProxy(const QVariant&);
40 protected Q_SLOTS:
41  void handleProxyChanged();
42 
43 protected: // NOLINT(readability-redundant-access-specifiers)
44  QByteArray PropertyName;
45 };
46 
47 #endif
#define PQCOMPONENTS_EXPORT
signal adaptor to allow getting/setting/observing of a pseudo vtkSMProxy property ...
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:28