Fix vertical alignment of Device Config row contents
This commit is contained in:
parent
7b8c5a878a
commit
1d6db2a86f
@ -118,7 +118,7 @@ QVariant DeviceGroupModel::data(const QModelIndex &index, int role) const
|
|||||||
return v;
|
return v;
|
||||||
return QString("None");
|
return QString("None");
|
||||||
case Qt::TextAlignmentRole:
|
case Qt::TextAlignmentRole:
|
||||||
return Qt::AlignRight;
|
return static_cast<int>(Qt::AlignRight|Qt::AlignVCenter);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ QVariant DeviceGroupModel::data(const QModelIndex &index, int role) const
|
|||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
return qMax(vlanCount(devGrp), 1)*devGrp->device_count();
|
return qMax(vlanCount(devGrp), 1)*devGrp->device_count();
|
||||||
case Qt::TextAlignmentRole:
|
case Qt::TextAlignmentRole:
|
||||||
return Qt::AlignRight;
|
return static_cast<int>(Qt::AlignRight|Qt::AlignVCenter);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user