Commit d6256a4b authored by LE BRETON Come's avatar LE BRETON Come

Adds bool parameter check box test.

parent 67ade42a
......@@ -63,6 +63,15 @@ void dtkWidgetsParametersTestCase::init(void)
void dtkWidgetsParametersTestCase::testBasic(void)
{
{
//////////////////// dtkWidgetsParameterBoolCheckBox ////////////////////
dtk::d_bool bool_parameter = 0.;
dtkWidgetsAbstractParameter *bool_check_box = dtk::widgets::parameters::pluginFactory().create(&bool_parameter, "dtkWidgetsParameterBoolCheckBox");
QVERIFY(bool_check_box);
QVERIFY(bool_check_box->parameter() == &bool_parameter);
//////////////////// dtkWidgetsParameterDoubleSpinBox ////////////////////
dtk::d_real real_parameter = 0.;
......@@ -105,6 +114,16 @@ void dtkWidgetsParametersTestCase::testBasic(void)
}
{
//////////////////// dtkWidgetsParameterBoolCheckBox ////////////////////
dtk::d_bool bool_parameter = 0.;
dtkWidgetsAbstractParameter *bool_check_box = dtk::widgets::parameters::pluginFactory().create("dtkWidgetsParameterBoolCheckBox");
QVERIFY(bool_check_box);
QVERIFY(bool_check_box->connect(&bool_parameter));
QVERIFY(bool_check_box->parameter() == &bool_parameter);
//////////////////// dtkWidgetsParameterDoubleSpinBox ////////////////////
dtk::d_real real_parameter = 0.;
......
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