From: Dirk H Bartley Date: Tue, 24 Apr 2007 20:50:13 +0000 (+0000) Subject: A nicer way to resize the columns and rows in joblist. Edit a few comments X-Git-Tag: Release-7.0.0~6503 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9265613f356b8e12059d762bc733176170a81ff1;p=bacula%2Fbacula A nicer way to resize the columns and rows in joblist. Edit a few comments in pages.h git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4625 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/joblist/joblist.cpp b/bacula/src/qt-console/joblist/joblist.cpp index fe0b54e8c1..2298d0e562 100644 --- a/bacula/src/qt-console/joblist/joblist.cpp +++ b/bacula/src/qt-console/joblist/joblist.cpp @@ -125,9 +125,9 @@ void JobList::populateTable() } } /* Resize the columns */ - for(int cnter=0; cnterresizeColumnToContents(cnter); - } + mp_tableWidget->resizeColumnsToContents(); + mp_tableWidget->resizeRowsToContents(); + mp_tableWidget->verticalHeader()->hide(); if ((m_mediaName != "") && (m_resultCount == 0)){ /* for context sensitive searches, let the user know if there were no * results */ diff --git a/bacula/src/qt-console/pages.h b/bacula/src/qt-console/pages.h index 24e7d8e509..17718f7ea1 100644 --- a/bacula/src/qt-console/pages.h +++ b/bacula/src/qt-console/pages.h @@ -42,11 +42,11 @@ * This class is inherited by all widget windows which are on the stack * It is for the purpos of having a conistant set of functions and properties * in all of the subclasses to accomplish tasks such as pulling a window out - * of or into the stack. It also provides virtual functions placed called + * of or into the stack. It also provides virtual functions called * from in mainwin so that subclasses can contain functions to allow them - * to populate thier screens at the time of first viewing, (when clicked) as - * opposed to the first creation of the console connection. After all the - * console is not actually connected until after the page selector tree has been + * to populate the screens at the time of first viewing, (when selected) as + * opposed to the first creation of the console connection. The + * console is not connected until after the page selector tree has been * populated. */