Lines Matching defs:compare
71 template <typename T> int compare( const T a, const T b )
89 if( !val ) val = -compare( a->queuePosition(), b->queuePosition() );
92 if( !val ) val = compare( a->sizeWhenDone(), b->sizeWhenDone() );
95 val = compare( a->dateAdded().toTime_t(), b->dateAdded().toTime_t() );
98 if( !val ) val = compare( a->id(), b->id() );
101 if( !val ) val = compare( a->downloadSpeed() + a->uploadSpeed(), b->downloadSpeed() + b->uploadSpeed() );
102 if( !val ) val = compare( a->uploadedEver(), b->uploadedEver() );
105 if( !val ) val = compare( a->hasError(), b->hasError() );
106 if( !val ) val = compare( a->getActivity(), b->getActivity() );
107 if( !val ) val = -compare( a->queuePosition(), b->queuePosition() );
110 if( !val ) val = compare( a->percentComplete(), b->percentComplete() );
112 if( !val ) val = -compare( a->queuePosition(), b->queuePosition() );
123 val = -a->name().compare( b->name(), Qt::CaseInsensitive );
125 val = compare( a->hashString(), b->hashString() );