aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGingeh <39150378+Gingeh@users.noreply.github.com>2022-06-29 18:43:29 +1000
committerGingeh <39150378+Gingeh@users.noreply.github.com>2022-06-29 18:43:29 +1000
commitf685139d89bb10fd8ec9872b710d118530b97976 (patch)
treeb2e4290f3e7330df106456a5282c73cd6d72032b
parent68d6ce60a9e74758743d2a43d9e4604fd06e6511 (diff)
downloadPrismLauncher-f685139d89bb10fd8ec9872b710d118530b97976.tar.gz
PrismLauncher-f685139d89bb10fd8ec9872b710d118530b97976.tar.bz2
PrismLauncher-f685139d89bb10fd8ec9872b710d118530b97976.zip
Move the profile name column to the left
-rw-r--r--launcher/minecraft/auth/AccountList.cpp16
-rw-r--r--launcher/minecraft/auth/AccountList.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/launcher/minecraft/auth/AccountList.cpp b/launcher/minecraft/auth/AccountList.cpp
index 3422df7c..394a94d7 100644
--- a/launcher/minecraft/auth/AccountList.cpp
+++ b/launcher/minecraft/auth/AccountList.cpp
@@ -282,6 +282,10 @@ QVariant AccountList::data(const QModelIndex &index, int role) const
case Qt::DisplayRole:
switch (index.column())
{
+ case ProfileNameColumn: {
+ return account->profileName();
+ }
+
case NameColumn:
return account->accountDisplayString();
@@ -320,10 +324,6 @@ QVariant AccountList::data(const QModelIndex &index, int role) const
}
}
- case ProfileNameColumn: {
- return account->profileName();
- }
-
case MigrationColumn: {
if(account->isMSA() || account->isOffline()) {
return tr("N/A", "Can Migrate?");
@@ -365,6 +365,8 @@ QVariant AccountList::headerData(int section, Qt::Orientation orientation, int r
case Qt::DisplayRole:
switch (section)
{
+ case ProfileNameColumn:
+ return tr("Profile");
case NameColumn:
return tr("Account");
case TypeColumn:
@@ -373,8 +375,6 @@ QVariant AccountList::headerData(int section, Qt::Orientation orientation, int r
return tr("Status");
case MigrationColumn:
return tr("Can Migrate?");
- case ProfileNameColumn:
- return tr("Profile");
default:
return QVariant();
}
@@ -382,6 +382,8 @@ QVariant AccountList::headerData(int section, Qt::Orientation orientation, int r
case Qt::ToolTipRole:
switch (section)
{
+ case ProfileNameColumn:
+ return tr("Name of the Minecraft profile associated with the account.");
case NameColumn:
return tr("User name of the account.");
case TypeColumn:
@@ -390,8 +392,6 @@ QVariant AccountList::headerData(int section, Qt::Orientation orientation, int r
return tr("Current status of the account.");
case MigrationColumn:
return tr("Can this account migrate to Microsoft account?");
- case ProfileNameColumn:
- return tr("Name of the Minecraft profile associated with the account.");
default:
return QVariant();
}
diff --git a/launcher/minecraft/auth/AccountList.h b/launcher/minecraft/auth/AccountList.h
index baaf7414..8136a92e 100644
--- a/launcher/minecraft/auth/AccountList.h
+++ b/launcher/minecraft/auth/AccountList.h
@@ -58,8 +58,8 @@ public:
enum VListColumns
{
// TODO: Add icon column.
- NameColumn = 0,
- ProfileNameColumn,
+ ProfileNameColumn = 0,
+ NameColumn,
MigrationColumn,
TypeColumn,
StatusColumn,