ProcessInspectorWidgetDelegate.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 
4 #include <QWidget>
5 
6 #include <score_lib_process_export.h>
7 namespace Process
8 {
9 class ProcessModel;
10 
11 template <typename Process_T>
12 class InspectorWidgetDelegate_T : public QWidget
13 {
14 public:
15  OSSIA_INLINE
16  InspectorWidgetDelegate_T(const Process_T& process, QWidget* parent) noexcept
17  : QWidget{parent}
18  , m_process{process}
19  {
20  }
21 
22  OSSIA_INLINE ~InspectorWidgetDelegate_T() noexcept = default;
23 
24  OSSIA_INLINE const Process_T& process() const noexcept { return m_process; }
25 
26 private:
27  const Process_T& m_process;
28 };
29 
30 }
Definition: ProcessInspectorWidgetDelegate.hpp:13
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324