Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit d29bc444 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

SetEnabled/Disabled and IsEnabled/Disabled functions added to UIParam.

parent 7ef44054
......@@ -74,6 +74,21 @@ public:
inline bool IsVisible() const { return m_Widget->isVisible(); }
inline bool IsHidden () const { return m_Widget->isHidden (); }
inline void SetEnabled ( bool enabled = true )
{
if( m_Label )
m_Label->setEnabled( enabled );
m_Widget->setEnabled( enabled );
}
inline void SetDisabled( bool disabled = true )
{
if( m_Label )
m_Label->setDisabled( disabled );
m_Widget->setDisabled( disabled );
}
inline bool IsEnabled () const { return m_Widget->isEnabled(); }
inline bool IsDisabled() const { return !m_Widget->isEnabled(); }
signals:
void parameterUpdated( UIParam *p );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment