Move the profile name column to the left

This commit is contained in:
Gingeh 2022-06-29 18:43:29 +10:00
parent 68d6ce60a9
commit f685139d89
2 changed files with 10 additions and 10 deletions

View File

@ -282,6 +282,10 @@ QVariant AccountList::data(const QModelIndex &index, int role) const
case Qt::DisplayRole: case Qt::DisplayRole:
switch (index.column()) switch (index.column())
{ {
case ProfileNameColumn: {
return account->profileName();
}
case NameColumn: case NameColumn:
return account->accountDisplayString(); return account->accountDisplayString();
@ -320,10 +324,6 @@ QVariant AccountList::data(const QModelIndex &index, int role) const
} }
} }
case ProfileNameColumn: {
return account->profileName();
}
case MigrationColumn: { case MigrationColumn: {
if(account->isMSA() || account->isOffline()) { if(account->isMSA() || account->isOffline()) {
return tr("N/A", "Can Migrate?"); return tr("N/A", "Can Migrate?");
@ -365,6 +365,8 @@ QVariant AccountList::headerData(int section, Qt::Orientation orientation, int r
case Qt::DisplayRole: case Qt::DisplayRole:
switch (section) switch (section)
{ {
case ProfileNameColumn:
return tr("Profile");
case NameColumn: case NameColumn:
return tr("Account"); return tr("Account");
case TypeColumn: case TypeColumn:
@ -373,8 +375,6 @@ QVariant AccountList::headerData(int section, Qt::Orientation orientation, int r
return tr("Status"); return tr("Status");
case MigrationColumn: case MigrationColumn:
return tr("Can Migrate?"); return tr("Can Migrate?");
case ProfileNameColumn:
return tr("Profile");
default: default:
return QVariant(); return QVariant();
} }
@ -382,6 +382,8 @@ QVariant AccountList::headerData(int section, Qt::Orientation orientation, int r
case Qt::ToolTipRole: case Qt::ToolTipRole:
switch (section) switch (section)
{ {
case ProfileNameColumn:
return tr("Name of the Minecraft profile associated with the account.");
case NameColumn: case NameColumn:
return tr("User name of the account."); return tr("User name of the account.");
case TypeColumn: case TypeColumn:
@ -390,8 +392,6 @@ QVariant AccountList::headerData(int section, Qt::Orientation orientation, int r
return tr("Current status of the account."); return tr("Current status of the account.");
case MigrationColumn: case MigrationColumn:
return tr("Can this account migrate to Microsoft account?"); return tr("Can this account migrate to Microsoft account?");
case ProfileNameColumn:
return tr("Name of the Minecraft profile associated with the account.");
default: default:
return QVariant(); return QVariant();
} }

View File

@ -58,8 +58,8 @@ public:
enum VListColumns enum VListColumns
{ {
// TODO: Add icon column. // TODO: Add icon column.
NameColumn = 0, ProfileNameColumn = 0,
ProfileNameColumn, NameColumn,
MigrationColumn, MigrationColumn,
TypeColumn, TypeColumn,
StatusColumn, StatusColumn,