VireX
9th April 2007, 00:42
IS there any way for me to sort buttons?
Say I have a button called EditBox, DeleteBox, I want to put all rows with EditBox cellWidgets on the top, and all DeleteBox should be below, and it also should sort by number as well.
so an example would be:
45 Edit
46 Edit
47 Edit
48 Edit
1 Delete
2 Delete
3 Delete
4 Delete
5 Delete
How would I code a sorting scheme for that? I believe I would connect headerView() to sectionClicked, and maybe write a function for it, but I have no idea how I would write the function.
Say I have a button called EditBox, DeleteBox, I want to put all rows with EditBox cellWidgets on the top, and all DeleteBox should be below, and it also should sort by number as well.
so an example would be:
45 Edit
46 Edit
47 Edit
48 Edit
1 Delete
2 Delete
3 Delete
4 Delete
5 Delete
How would I code a sorting scheme for that? I believe I would connect headerView() to sectionClicked, and maybe write a function for it, but I have no idea how I would write the function.