Pavel Sanda wrote:
Abdelrazak Younes wrote:
 I read a bit docu nevertheless... it seems that using
 QSortFilterProxyModel instead of QStandardItemModel could do the job.
 QSortFilterProxyModel is local aware ( see setSortLocaleAware()). So,
 with a bit of work, we can make this happen. The advantage of going
 that way is that we could then reuse the method for other list in our
 dialogs.
FYI I did that:

thanks. it works in preferences dialog. text style dialog combo remains
completely unsorted, dunno if its intended.
Ah yes, I forgot that one, will do.

+ // FIXME: it would be nice if sorting was enabled/disabled via a checkbox.

i dont understand the purpose of this checkbox. whats the point of having it
disabled?
The original sorting has some region info. For example French Canadian is close to Canadian, not French. I don't know is this is very important.

Abdel.

Reply via email to