Mailinglist Archive: yast-devel (35 mails)

< Previous Next >
Re: [yast-devel] Table sorting and locales in YaST UI
Dne 4.5.2012 11:48, Thomas Goettlicher napsal(a):
On Fri May 4 2012 11:19:24 Ladislav Slezak wrote:
[...]
Which regexp do you propose? Please keep in mind, that the regexp needs to be
executed each time the user wants to sort the columns for all rows of the
table.
We should keep the regexp simple as it's critical to performance.

According to http://qt-project.org/doc/qt-4.8/qregexp.html I'd propose

"^\\s*(\\d+)"

i.e. if it starts with a number (ignore the spaces at the beginning)
use the number for sorting and ignore the rest.


You can add the rows in the order you want the Table widget to show the items
and
switch on keepSorting. See:
http://doc.opensuse.org/projects/YaST/SLES11/onefile/yast-onefile.html#Table

Yes, but users then would not be able to change the sorting. Sometimes it is
useful
to sort by status to see enabled or disabled repos together or sort by name or
even by URL (to see e.g. all cd:// or dvd:// repos together)...



--

Ladislav Slez√°k
Appliance department / YaST Developer
Lihovarsk√° 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak@xxxxxxxx
SUSE
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups