From ac4aaed4552c697e91e3fb799e9479b19b464272 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sun, 22 Apr 2007 21:41:37 +0000 Subject: [PATCH] After tables or trees are created, size the columns. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4603 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/TODO | 7 ++++--- bacula/src/qt-console/clients/clients.cpp | 4 ++++ bacula/src/qt-console/fileset/fileset.cpp | 5 +++++ bacula/src/qt-console/joblist/joblist.cpp | 4 ++++ bacula/src/qt-console/medialist/medialist.cpp | 4 ++++ bacula/src/qt-console/storage/storage.cpp | 4 ++++ 6 files changed, 25 insertions(+), 3 deletions(-) diff --git a/bacula/src/qt-console/TODO b/bacula/src/qt-console/TODO index 7939e91702..1c203662b7 100644 --- a/bacula/src/qt-console/TODO +++ b/bacula/src/qt-console/TODO @@ -1,8 +1,5 @@ dhb ==================================================== -Figure out how to get tables like Joblist to do the equivalent of double clicking -on the separating lines between each of the headings. - Add context sensitive options for most commands status dir on page select director item @@ -51,6 +48,10 @@ global one defined in the mainWin class (if I remember right). ============================================================ DONE: ============================================================ +Figure out how to get tables like Joblist to do the equivalent of double clicking +on the separating lines between each of the headings. +Tried the hard way first. Oops. + If the console command line entry docked widget gets the focus, make m_currentConsole the top widget by setting the treewidgetitem selected. Did this in MainWin::input_line almost better to let the person see diff --git a/bacula/src/qt-console/clients/clients.cpp b/bacula/src/qt-console/clients/clients.cpp index c78cd37635..0c646e9f06 100644 --- a/bacula/src/qt-console/clients/clients.cpp +++ b/bacula/src/qt-console/clients/clients.cpp @@ -122,6 +122,10 @@ void Clients::populateTree() } } } + /* Resize the columns */ + for(int cnter=0; cnterresizeColumnToContents(cnter); + } } /* diff --git a/bacula/src/qt-console/fileset/fileset.cpp b/bacula/src/qt-console/fileset/fileset.cpp index 395d0bd6fa..66d8cb2abb 100644 --- a/bacula/src/qt-console/fileset/fileset.cpp +++ b/bacula/src/qt-console/fileset/fileset.cpp @@ -122,6 +122,11 @@ void FileSet::populateTree() } } } + /* Resize the columns */ + for(int cnter=1; cnterresizeColumnToContents(cnter); + } + } /* diff --git a/bacula/src/qt-console/joblist/joblist.cpp b/bacula/src/qt-console/joblist/joblist.cpp index 0cbebb6544..1e62bf9f9b 100644 --- a/bacula/src/qt-console/joblist/joblist.cpp +++ b/bacula/src/qt-console/joblist/joblist.cpp @@ -121,6 +121,10 @@ void JobList::populateTable() row++; } } + /* Resize the columns */ + for(int cnter=0; cnterresizeColumnToContents(cnter); + } 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/medialist/medialist.cpp b/bacula/src/qt-console/medialist/medialist.cpp index df7a7fdeb2..701c8c2e86 100644 --- a/bacula/src/qt-console/medialist/medialist.cpp +++ b/bacula/src/qt-console/medialist/medialist.cpp @@ -127,6 +127,10 @@ void MediaList::populateTree() } } } + /* Resize the columns */ + for(int cnter=0; cnterresizeColumnToContents(cnter); + } } /* diff --git a/bacula/src/qt-console/storage/storage.cpp b/bacula/src/qt-console/storage/storage.cpp index 8a8f7f06c0..f3a46edf46 100644 --- a/bacula/src/qt-console/storage/storage.cpp +++ b/bacula/src/qt-console/storage/storage.cpp @@ -122,6 +122,10 @@ void Storage::populateTree() } } } + /* Resize the columns */ + for(int cnter=1; cnterresizeColumnToContents(cnter); + } } /* -- 2.39.5