22 : QSortFilterProxyModel( parent )
26 setSourceModel( mModel );
27 setDynamicSortFilter(
true );
28 setSortLocaleAware(
true );
29 setFilterCaseSensitivity( Qt::CaseInsensitive );
42 if ( mFilters.testFlag(
All ) )
45 QModelIndex
index = sourceModel()->index( source_row, 0, source_parent );
57 bool detectGeometry = mFilters.testFlag(
NoGeometry ) ||
86 QString leftStr = sourceModel()->data( left ).toString();
87 QString rightStr = sourceModel()->data( right ).toString();
88 return QString::localeAwareCompare( leftStr, rightStr ) < 0;