Always align mapping layers buttons on the right side

This commit is contained in:
baydam
2016-08-13 13:39:52 +00:00
parent ae1205206a
commit b0cb24fa87
3 changed files with 16 additions and 11 deletions
+4 -2
View File
@@ -46,9 +46,11 @@ QVariant MappingListModel::data(const QModelIndex &index, int role) const
break;
case Qt::SizeHintRole:
if (index.column() == MM::HideColumn)
return QSize(20, 40);
return QSize(24, 40);
if (index.column() == MM::IconAndNameColum)
return QSize(140, 40);
return QSize(135, 40);
if (index.column() == MM::GroupButtonColum)
return QSize(128, 40);
break;
case Qt::CheckStateRole + 1:
return mappingList.at(index.row()).isSolo ? Qt::Checked : Qt::Unchecked;