Group full path is now shown in the GUI

This commit is contained in:
xavives 2024-01-22 14:18:56 +01:00
parent 1391e347bb
commit e6f1b891f5

View File

@ -136,6 +136,11 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const
return entry->group()->name();
}
break;
case ParentGroupPath:
if (entry->group()) {
return entry->group()->fullPath();
}
break;
case Title:
result = entry->resolveMultiplePlaceholders(entry->title());
if (attr->isReference(EntryAttributes::TitleKey)) {
@ -367,6 +372,8 @@ QVariant EntryModel::headerData(int section, Qt::Orientation orientation, int ro
switch (section) {
case ParentGroup:
return tr("Group");
case ParentGroupPath:
return tr("Group full path");
case Title:
return tr("Title");
case Username:
@ -404,6 +411,8 @@ QVariant EntryModel::headerData(int section, Qt::Orientation orientation, int ro
switch (section) {
case ParentGroup:
return tr("Group name");
case ParentGroupPath:
return tr("Group full path");
case Title:
return tr("Entry title");
case Username:
@ -434,8 +443,6 @@ QVariant EntryModel::headerData(int section, Qt::Orientation orientation, int ro
return tr("Has TOTP");
case Color:
return tr("Background Color");
case ParentGroupPath:
return tr("Group full path");
}
}