int inchanger = fld.next().toInt();
if (inchanger) {
mediaitem.setNumericFld(index++, fld.next());
- }
- else {
+ } else {
/* volume not in changer, show blank slot */
mediaitem.setNumericFld(index++, "");
fld.next();
foreach (resultline, results) { // should have only one result
int index = 0;
- QString Slot, VolBytes, MediaType, LastWritten, VolStatus;
+ QString VolBytes, MediaType, LastWritten, VolStatus;
fieldlist = resultline.split("\t");
if (fieldlist.size() != 10) {
continue;
/* Online */
mediaitem.setInChanger(index++, fld.next());
- Slot = fld.next(); // Slot
- mediaitem.setNumericFld(index++, Slot);
+ /* Slot */
+ mediaitem.setNumericFld(index++, fld.next());
MediaType = fld.next();
VolStatus = fld.next();
//PathId, FilenameId, fileid, jobid, lstat, Md5, VolName, Inchanger
fieldlist = resultline.split("\t");
TableItemFormatter item(*FileRevisions, row++);
- item.setInChanger(col++, fieldlist.at(7)); // inchanger
+ item.setInChanger(col++, fieldlist.at(7)); // inchanger
item.setTextFld(col++, fieldlist.at(6)); // Volume
item.setNumericFld(col++, fieldlist.at(3)); // JobId
decode_stat(fieldlist.at(4).toLocal8Bit().data(),
QStringListIterator fld(fieldlist);
/* storage id */
- storageItem.setNumericFld(index++, fld.next() );
+ storageItem.setNumericFld(index++, fld.next());
/* changer */
QString changer = fld.next();
void ItemFormatterBase::setNumericFld(int index, const QString &fld)
{
setRightFld(index, fld.trimmed());
- setSortValue(index, fld.toDouble() );
+ setSortValue(index, fld.toDouble());
}
void ItemFormatterBase::setNumericFld(int index, const QString &fld, const QVariant &sortval)
{
setRightFld(index, fld.trimmed());
- setSortValue(index, sortval );
+ setSortValue(index, sortval);
}
void ItemFormatterBase::setBytesFld(int index, const QString &fld)