On 02/17/12 01:07 PM, Silver Salonen wrote:

On Friday 17 February 2012 13:01:36 Marco van Wieringen wrote:

> On 02/17/12 11:59 AM, Silver Salonen wrote:

> > On Friday 17 February 2012 11:34:16 Marco van Wieringen wrote:

> >> On 02/17/12 11:08 AM, Silver Salonen wrote:

> >>> Actually I was talking about pools' view and in there I have felt the need to sort volumes by their sizes, by their last written date etc. Currently I have to sort them by going to the server and look at the files in command line.

> >> Ok both can be done in the media view but if you think you can get it

> >> working by extending the tree view I would

> >> say give it a try. I think it will be quite some work though but indeed

> >> you can borrow some of the stuff from the

> >> other widget class for sorting.

> >

> > OK, so back to my original request :)

> >

> > Is there anyone who could assist me with the Qt issue?

> >

> What is your "QT issue", you link to a thread about sorting which is solved

> in the current version of BAT. If you have an issue with sorting the

> tree items I guess you should just clone the approach used for

> the tablewidget class. As far as I can see the QTreeWidget is

> a standard qt class so you either need to overload it with an

> own class or look in the default class on how to sort things

> there.

The issue is not solved - it's written in there: "I suppose there is a way to have QT sort properly, but at this time I haven't found one, so perhaps the best solution is to disable column sorting."

And when I look at the code then the overloading code is implemented for QTableWidget, but not for QTreeWidget and this is what I would need help with. I tried to do it, but I didn't manage.

So what I'd like to ask someone is that why isn't the custom sorting code implemented for QTreeWidget as well.

As far as I can see the sorting is implemented using exactly that patch for the TableItem just not for the TreeItem. There are examples of overloading the < operator on the
QTreeWidget class of which the TreeItem is a subclass.

http://developer.qt.nokia.com/faq/answer/a_qtreewidget_is_sorted_alphabetically_by_default_how_can_i_change_this_beh

I think people came to the conclusion that sorting the tree was not worth the trouble.

> I think there are next to no developers doing things on BAT other

> then people working for Bacula Systems. So unless they want to help

> out I think you have guessed by the enormous response up until now

> it is not a very active area of expertise found in the community.

So I should write directly to Bacula Systems then?


If you want to do funded development you could. You can always ask maybe
things get noted then and you get a response but I know the Bacula Systems
developers are busy at the moment on the next Enterprise version so I would
not expect a response to soon.

Marco
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to