Selectable.hpp
1 #pragma once
2 #include <QObject>
3 
4 #include <score_lib_base_export.h>
5 
6 #include <verdigris>
7 
13 class SCORE_LIB_BASE_EXPORT Selectable final : public QObject
14 {
15  W_OBJECT(Selectable)
16 public:
17  explicit Selectable(QObject* parent);
18  virtual ~Selectable();
19 
20  bool get() const noexcept;
21  void set(bool b);
22 
23  void changed(bool b) E_SIGNAL(SCORE_LIB_BASE_EXPORT, changed, b)
24 
25 private:
26  bool m_val{};
27 };
The Selectable class.
Definition: Selectable.hpp:14