sort the values in query builder

after filling the values into the model, they are sorted ascending.
This commit is contained in:
David 2017-12-14 13:00:33 +01:00 committed by Matthias Kuhn
parent 8ec16e2c20
commit ac6d251859

View File

@ -159,6 +159,7 @@ void QgsQueryBuilder::fillValues( int idx, int limit )
mModelValues->insertRow( mModelValues->rowCount(), myItem );
QgsDebugMsg( QString( "Value is null: %1\nvalue: %2" ).arg( var.isNull() ).arg( var.isNull() ? nullValue : var.toString() ) );
}
mModelValues->sort( 0 );
}
void QgsQueryBuilder::btnSampleValues_clicked()