]> git.sur5r.net Git - bacula/bacula/commitdiff
Reverse the order of the terminated table to be like the job list class. Most
authorDirk H Bartley <dbartley@schupan.com>
Tue, 11 Mar 2008 13:05:43 +0000 (13:05 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Tue, 11 Mar 2008 13:05:43 +0000 (13:05 +0000)
recent at the top.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6584 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/status/clientstat.cpp
bacula/src/qt-console/status/dirstat.cpp

index 5f616c0d1e383ef90b06f87513e032ff174b6b3c..99ba982f09d610579899154baf7b4ad4cfa7dfc1 100644 (file)
 #include "bat.h"
 #include "clientstat.h"
 
-/*
- *       .status client=XXX header
- *       .status client=XXX running
- *       .status client=XXX terminated
- */
-
 /*
  * Constructor for the class
  */
@@ -173,7 +167,7 @@ void ClientStat::populateTerminated()
                   p_tableitem->setBackground(Qt::green);
                else
                   p_tableitem->setBackground(Qt::red);
-            terminatedTable->setItem(row, column, p_tableitem);
+            terminatedTable->setItem(results.size() - row - 1, column, p_tableitem);
             column += 1;
          }
          row += 1;
index b749fd7b858c2f040f91c0df2efce3af523f2b0c..c1e3a027a67e99ff5e7c18f20d67abaf40bd9e08 100644 (file)
@@ -166,7 +166,7 @@ void DirStat::populateTerminated()
                   p_tableitem->setBackground(Qt::green);
                else
                   p_tableitem->setBackground(Qt::red);
-            terminatedTable->setItem(row, column, p_tableitem);
+            terminatedTable->setItem(results.size() - row - 1, column, p_tableitem);
             column += 1;
          }
          row += 1;