panel: unify alignment of header texts

User feedback said it's awkward and I quite agree. :)
This commit is contained in:
v4hn 2020-04-15 22:14:08 +02:00
parent 75bc6566f6
commit a380fea938
2 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ QVariant RemoteSolutionModel::headerData(int section, Qt::Orientation orientatio
return tr("comment"); return tr("comment");
} }
case Qt::TextAlignmentRole: case Qt::TextAlignmentRole:
return section == 2 ? Qt::AlignLeft : Qt::AlignRight; return Qt::AlignLeft;
} }
} }
return QAbstractItemModel::headerData(section, orientation, role); return QAbstractItemModel::headerData(section, orientation, role);

View File

@ -81,7 +81,7 @@ QVariant TaskListModel::horizontalHeader(int column, int role) {
break; break;
case Qt::TextAlignmentRole: case Qt::TextAlignmentRole:
return column == 0 ? Qt::AlignLeft : Qt::AlignRight; return Qt::AlignLeft;
case Qt::ToolTipRole: case Qt::ToolTipRole:
switch (column) { switch (column) {