void QtxPopupMgr::createOperations()
{
myOperations = new QtxListOfOperations;
- myOperations->append( "logic", new QtxLogic(), 0 );
- myOperations->append( "arithm", new QtxArithmetics(), 50 );
- myOperations->append( "strings", new QtxStrings(), 100 );
- myOperations->append( "sets", new QtxSets(), 150 );
- myOperations->append( "custom", new Operations( this ), 200 );
+ myOperations->prepend( "logic", new QtxLogic(), 0 );
+ myOperations->prepend( "arithm", new QtxArithmetics(), 50 );
+ myOperations->prepend( "strings", new QtxStrings(), 100 );
+ myOperations->prepend( "sets", new QtxSets(), 150 );
+ myOperations->prepend( "custom", new Operations( this ), 200 );
}
//================================================================
remove( aNewList, v2.toList() );
if( op=="=" )
- set( v1, aNewList.isEmpty() );
+ set( v1, aNewList.isEmpty() && v1.toList().count()==v2.toList().count() );
else if( op=="<>" || op=="!=" )
- set( v1, !aNewList.isEmpty() );
+ set( v1, !aNewList.isEmpty() || v1.toList().count()!=v2.toList().count() );
else
v1 = aNewList;
}