25 #include <QApplication>
27 #include "core/common/WPropertyVariable.h"
29 #include "../events/WEventTypes.h"
30 #include "../events/WPropertyChangedEvent.h"
32 #include "WQtPropertyBoolAction.h"
36 m_boolProperty( property )
40 setToolTip( QString::fromStdString( property->getDescription() ) );
41 setText( QString::fromStdString( property->getName() ) );
49 connect(
this, SIGNAL( toggled(
bool ) ),
this, SLOT(
changed() ) );
77 if(
event->type() == WQT_PROPERTY_CHANGED_EVENT )
83 return QAction::event(
event );
Event signalling a new module has been associated with the root container in the kernel.
WPropBool m_boolProperty
The boolean property represented by this widget.
virtual bool event(QEvent *event)
Custom event dispatcher.
virtual ~WQtPropertyBoolAction()
Destructor.
WQtPropertyBoolAction(WPropBool property, QWidget *parent=0)
Constructor.
void changed()
called whenever the user modifies the action
virtual void propertyChangeNotifier()
Callback for WPropertyBase::getChangeCondition.
boost::signals2::connection m_connection
The connection for propertyChangeNotifier().
virtual void update()
Called whenever the widget should update.