From: Kern Sibbald Date: Sat, 25 Dec 2010 12:41:01 +0000 (+0100) Subject: Add Slot to Media View table X-Git-Tag: Release-5.2.1~775 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ff2c7efaab430b29ee2b56c1da0e2319235ff9ce;p=bacula%2Fbacula Add Slot to Media View table --- diff --git a/bacula/src/qt-console/medialist/mediaview.cpp b/bacula/src/qt-console/medialist/mediaview.cpp index 1c44df8f5f..3e3c7ffe6f 100644 --- a/bacula/src/qt-console/medialist/mediaview.cpp +++ b/bacula/src/qt-console/medialist/mediaview.cpp @@ -324,7 +324,7 @@ void MediaView::populateTable() foreach (resultline, results) { // should have only one result int index = 0; - QString VolBytes, MediaType, LastWritten, VolStatus; + QString Slot, VolBytes, MediaType, LastWritten, VolStatus; fieldlist = resultline.split("\t"); if (fieldlist.size() != 10) { continue; @@ -337,7 +337,9 @@ void MediaView::populateTable() /* Online */ mediaitem.setInChanger(index++, fld.next()); - fld.next(); // Slot + + Slot = fld.next(); // Slot + mediaitem.setTextFld(index++, Slot); MediaType = fld.next(); VolStatus = fld.next(); diff --git a/bacula/src/qt-console/medialist/mediaview.ui b/bacula/src/qt-console/medialist/mediaview.ui index a13e6f31f5..1fe5418088 100644 --- a/bacula/src/qt-console/medialist/mediaview.ui +++ b/bacula/src/qt-console/medialist/mediaview.ui @@ -1,7 +1,8 @@ - + + MediaViewForm - - + + 0 0 @@ -9,70 +10,74 @@ 638 - + Form - + - + - - + + Edit - - :/images/edit.png + + + :/images/edit.png:/images/edit.png - + true - - + + Purge - - :/images/purge.png + + + :/images/purge.png:/images/purge.png - + true - - + + Delete - - :/images/purge.png + + + :/images/purge.png:/images/purge.png - + true - - + + Prune - - :/images/edit-cut.png + + + :/images/edit-cut.png:/images/edit-cut.png - + true - + Qt::Horizontal - + 40 20 @@ -83,74 +88,74 @@ - - + + Filter - - - - + + + + Media Type: - - + + - - - + + + Status: - - + + - - - + + + Limit: - - - + + + 1 - + 1000 - + 100 - - - + + + Name: - - - - + + + + 0 0 - + - + Qt::Horizontal - + 40 20 @@ -158,39 +163,39 @@ - - - + + + Pool: - - + + - - - + + + Location: - - + + - - - + + + Expired - + - + Qt::Horizontal - + 40 20 @@ -198,13 +203,14 @@ - - - + + + Apply - - :/images/view-refresh.png + + + :/images/view-refresh.png:/images/view-refresh.png @@ -212,82 +218,63 @@ - - + + QAbstractItemView::ExtendedSelection - + QAbstractItemView::SelectRows - + true - + Volume Name - - true - - + Online - - true - - + + Slot + + + + Vol Bytes - - true - - + Vol Usage - - true - - + Vol Status - - true - - + Pool - - true - - + Media Type - - true - - + Last Written - - true - - + When expire? @@ -296,7 +283,7 @@ - +