11 #ifndef smtk_extension_paraview_widgets_pqSMTKInteractivePropertyWidget_h
12 #define smtk_extension_paraview_widgets_pqSMTKInteractivePropertyWidget_h
14 #include "smtk/extension/paraview/widgets/smtkPQWidgetsExtModule.h"
16 #include "pqInteractivePropertyWidget.h"
19 #if defined(__VTK_WRAP__) && !defined(Q_SLOTS)
20 #define Q_DISABLE_COPY(x)
22 #define Q_SIGNALS protected
34 using Superclass = pqInteractivePropertyWidget;
38 const char* widget_smgroup,
39 const char* widget_smname,
41 vtkSMPropertyGroup* smgroup,
42 QWidget* parent =
nullptr)
43 : Superclass(widget_smgroup, widget_smname, proxy, smgroup, parent){};
48 if (this->hideWhenInactive())
50 Superclass::deselect();
58 Superclass::hideEvent(e);
60 if (!this->hideWhenInactive() && this->VisibleState)
62 this->setWidgetVisible(
true);
66 void setHideWhenInactive(
bool val) { m_hideWhenInactive = val; };
67 bool hideWhenInactive()
const {
return m_hideWhenInactive; };
70 bool m_hideWhenInactive =
true;
76 #endif //smtk_extension_paraview_widgets_pqSMTKInteractivePropertyWidget_h