Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-14 Thread Abdelrazak Younes
Abdelrazak Younes wrote: 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

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-14 Thread Abdelrazak Younes
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 ad

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-14 Thread Pavel Sanda
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 go

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-14 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Abdelrazak Younes wrote: > Abdelrazak Younes wrote: >> Pavel Sanda wrote: >> Author: younes Date: Thu May 8 11:31:00 2008 New >> Revision: 24681 >> >> URL: http://www.lyx.org/trac/changeset/24681 Log: sort >> the languages. >> > > >>

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-09 Thread Abdelrazak Younes
Pavel Sanda wrote: Is it really broken or is it something you can live with? AFAIU to put it simply, i'm not in a mood of fixing it again. I didn't ask you to :-) so i can live with it. I usually restore things when I break them, don't worry. Abdel.

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Pavel Sanda
> Can you test this? yes, it works. p

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Stefan Schimanski
Am 09.05.2008 um 01:14 schrieb Pavel Sanda: AFAIU the method used in r21598 won't work for all platforms. It seems that Qt provides some facility for this with QString::localeAwareCompare(); but i already used this function for sorting environment feature. now i looked again in code and it

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Pavel Sanda
> AFAIU the method used in r21598 won't work for all platforms. It seems that > Qt provides some facility for this with QString::localeAwareCompare(); but i already used this function for sorting environment feature. now i looked again in code and its no more there and sorting does not work corr

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Pavel Sanda
> Is it really broken or is it something you can live with? AFAIU to put it simply, i'm not in a mood of fixing it again. so i can live with it. > QStandardItemModel::sort() will sort the strings alphabetically and the > strings are already translated when this is called so it cannot be that >

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Abdelrazak Younes wrote: > Pavel Sanda wrote: > Author: younes Date: Thu May 8 11:31:00 2008 New Revision: > 24681 > > URL: http://www.lyx.org/trac/changeset/24681 Log: sort the > languages. > > +language_model_->sort(0); >

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Pavel Sanda wrote: Author: younes Date: Thu May 8 11:31:00 2008 New Revision: 24681 URL: http://www.lyx.org/trac/changeset/24681 Log: sort the languages. >>> >>> +language_model_->sort(0); >>> i didnt followed exactly these pa

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Abdelrazak Younes
Pavel Sanda wrote: >>> Author: younes Date: Thu May 8 11:31:00 2008 New Revision: >>> 24681 >>> >>> URL: http://www.lyx.org/trac/changeset/24681 Log: sort the >>> languages. >>> >> >> >>> +language_model_->sort(0); >>> >> i didnt followed exactly these patches about languages; where in >> gu

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Pavel Sanda
>>> Author: younes >>> Date: Thu May 8 11:31:00 2008 >>> New Revision: 24681 >>> >>> URL: http://www.lyx.org/trac/changeset/24681 >>> Log: >>> sort the languages. >>> >> >> >> >>> + language_model_->sort(0); >>> >> >> i didnt followed exactly these patches about languages; where in

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Abdelrazak Younes
Pavel Sanda wrote: Author: younes Date: Thu May 8 11:31:00 2008 New Revision: 24681 URL: http://www.lyx.org/trac/changeset/24681 Log: sort the languages. + language_model_->sort(0); i didnt followed exactly these patches about languages; where in gui can i find the resu

Re: [Cvslog] r24681 - /lyx-devel/trunk/src/frontends/qt4/GuiApplicatio...

2008-05-08 Thread Pavel Sanda
> Author: younes > Date: Thu May 8 11:31:00 2008 > New Revision: 24681 > > URL: http://www.lyx.org/trac/changeset/24681 > Log: > sort the languages. > + language_model_->sort(0); i didnt followed exactly these patches about languages; where in gui can i find the result? we should keep loca