Mailinglist Archive: yast-devel (71 mails)

< Previous Next >
Re: [yast-devel] Table sorting and locales in YaST UI
On Fri May 4 2012 15:49:28 Ladislav Slezak wrote:
Dne 4.5.2012 15:41, Thomas Goettlicher napsal(a):
On Fri May 4 2012 13:25:24 Ladislav Slezak wrote:
[...]

I fine-tuned the sort function now:
* Leading blanks for numbers are ignored
* '+' and '-' in front of numbers are respected
* text separated by a blank right of a number is being ignored

Great! Thanks!

I think that's a sufficient solution for >95% of scenarios.

Yes, I agree.


Could someone enhance also Gtk and ncurses UI so they behave the same way?
Thanks in advance!

If you implement it in gtk or ncurses and want to spy at my code, it's:
QY2ListViewItem::operator<()
See: http://svn.opensuse.org/svn/yast/trunk/qt/src/QY2ListView.cc

Cheers,
Thomas




--

Ladislav Slezák
Appliance department / YaST Developer
Lihovarská 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak@xxxxxxxx
SUSE

--
Thomas Goettlicher
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer,
HRB 16746 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany
< Previous Next >
Follow Ups