Commit 9089456f authored by Robert Maynard's avatar Robert Maynard
Browse files

ENH: Updated UndoRedo1 to test the custom bounds control

ENH: Added support for the command "set_boolean" on QGroupBoxes
parent 05e196b8
......@@ -33,6 +33,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "pqAbstractBooleanEventPlayer.h"
#include <QAbstractButton>
#include <QGroupBox>
#include <QtDebug>
#include <QAction>
......@@ -64,6 +65,14 @@ bool pqAbstractBooleanEventPlayer::playEvent(QObject* Object, const QString& Com
return true;
}
if ( QGroupBox* const object = qobject_cast<QGroupBox*>(Object))
{
if ( value != object->isChecked() )
{
object->setChecked( value );
}
return true;
}
qCritical() << "calling set_boolean on unhandled type " << Object;
Error = true;
return true;
......
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