From 72b9b4a6138b359ea2e3b09e34798072b81b28e2 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Thu, 4 Mar 2010 23:26:41 -0500 Subject: [PATCH] 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. --- bacula/src/qt-console/util/fmtwidgetitem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.39.5