Example #1
0
    void assertThatRangeEquals(double leftValue, double rightValue, int left, int right) {
        deleteConstraints();
        constraints.push_back(TypedConstraint<double>::greaterOrEqual(0, leftValue));
        constraints.push_back(TypedConstraint<double>::lessOrEqual(0, rightValue));

        checkForConstraints(left, right);
    }
Example #2
0
    void assertThatRangeIsEmpty(double leftValue, double rightValue) {
        deleteConstraints();
        constraints.push_back(TypedConstraint<double>::greaterOrEqual(0, leftValue));
        constraints.push_back(TypedConstraint<double>::lessOrEqual(0, rightValue));

        checkForConstraints(std::vector<IndexRange>());
    }
void SelectionDialog:: initConnections()
{
	// Connect the signals and slots
	connect( resetPushButton, SIGNAL( clicked() ), this,
			SLOT( resetLists() ) );

	connect( clearSelectionPushButton, SIGNAL( clicked() ),
			this, SLOT( deleteConstraints() ) );

	connect( constraintListView,
			SIGNAL( itemRenamed( Q3ListViewItem *, int ) ),
			this, SLOT( setRelatives( Q3ListViewItem *, int ) ) );

	// The "Get Data" pushbutton is connected to "accept()"
	// and "Cancel" is connected to "reject()" in the base
	// class, so there's no need to connect those buttons here.
}
Example #4
0
 virtual void TearDown() {
     deleteConstraints();
 }