From: Dirk H Bartley Date: Fri, 5 Mar 2010 04:26:41 +0000 (-0500) Subject: This is a 1/2 fix of the issue. It allows for the sorting of the two non graphic... X-Git-Tag: Release-7.0.0~2113 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72b9b4a6138b359ea2e3b09e34798072b81b28e2;p=bacula%2Fbacula This is a 1/2 fix of the issue. It allows for the sorting of the two non graphic columns, but still does not allow for sorting the graphic columns. The issue is with last. By setting the sort value, you are setting the value on the last. To experiment with what I mean, use the set background that I have commented out in this commit. --- diff --git a/bacula/src/qt-console/util/fmtwidgetitem.cpp b/bacula/src/qt-console/util/fmtwidgetitem.cpp index 9f7bf412af..5856f058a4 100644 --- a/bacula/src/qt-console/util/fmtwidgetitem.cpp +++ b/bacula/src/qt-console/util/fmtwidgetitem.cpp @@ -213,7 +213,8 @@ void ItemFormatterBase::setPercent(int index, float value) pix = ":images/96p.png"; } setPixmap(index, QPixmap(pix), val); - setSortValue(index, (int) value); + //setSortValue(index, (int) value); + //setBackground(index, Qt::green); } /* By default, the setPixmap implementation with tooltip don't implement @@ -227,9 +228,8 @@ void ItemFormatterBase::setPixmap(int index, const QPixmap &pix, void ItemFormatterBase::setInChanger(int index, const QString &InChanger) { - setPixmap(index, - QPixmap(":images/inflag"+InChanger+".png")); - setSortValue(index, InChanger.toInt() ); + setPixmap(index, QPixmap(":images/inflag"+InChanger+".png")); + //setSortValue(index, InChanger.toInt() ); } void ItemFormatterBase::setTextFld(int index, const QString &fld, bool center)