Ocular Engine
CheckBox.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_CHECK_BOX__H__
19 #define __H__OCULAR_EDITOR_CHECK_BOX__H__
20 
21 #include <QtWidgets/qcheckbox.h>
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Editor
36  {
42  class CheckBox : public QCheckBox
43  {
44  Q_OBJECT
45 
46  public:
47 
48  CheckBox(QWidget* parent = nullptr);
49  virtual ~CheckBox();
50 
55  bool wasEdited(bool reset = true);
56 
57  protected:
58 
59  private slots:
60 
61  void stateChanged(int state);
62 
63  private:
64 
65  bool m_WasEdited;
66  };
67  }
71 }
76 //------------------------------------------------------------------------------------------
77 
78 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: CheckBox.hpp:42
bool wasEdited(bool reset=true)
Definition: CheckBox.cpp:46