mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-03-13 01:26:37 -04:00
parent
e82e9dad3b
commit
6cc6e42542
@ -4068,6 +4068,10 @@ Would you like to overwrite the existing attachment?</source>
|
|||||||
<source>Background Color</source>
|
<source>Background Color</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Group Path</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>EntryPreviewWidget</name>
|
<name>EntryPreviewWidget</name>
|
||||||
|
@ -116,7 +116,7 @@ int EntryModel::columnCount(const QModelIndex& parent) const
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 16;
|
return 17;
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant EntryModel::data(const QModelIndex& index, int role) const
|
QVariant EntryModel::data(const QModelIndex& index, int role) const
|
||||||
@ -136,6 +136,11 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const
|
|||||||
return entry->group()->name();
|
return entry->group()->name();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case ParentGroupPath:
|
||||||
|
if (entry->group()) {
|
||||||
|
return entry->group()->fullPath();
|
||||||
|
}
|
||||||
|
break;
|
||||||
case Title:
|
case Title:
|
||||||
result = entry->resolveMultiplePlaceholders(entry->title());
|
result = entry->resolveMultiplePlaceholders(entry->title());
|
||||||
if (attr->isReference(EntryAttributes::TitleKey)) {
|
if (attr->isReference(EntryAttributes::TitleKey)) {
|
||||||
@ -373,6 +378,8 @@ QVariant EntryModel::headerData(int section, Qt::Orientation orientation, int ro
|
|||||||
switch (section) {
|
switch (section) {
|
||||||
case ParentGroup:
|
case ParentGroup:
|
||||||
return tr("Group");
|
return tr("Group");
|
||||||
|
case ParentGroupPath:
|
||||||
|
return tr("Group Path");
|
||||||
case Title:
|
case Title:
|
||||||
return tr("Title");
|
return tr("Title");
|
||||||
case Username:
|
case Username:
|
||||||
@ -410,6 +417,8 @@ QVariant EntryModel::headerData(int section, Qt::Orientation orientation, int ro
|
|||||||
switch (section) {
|
switch (section) {
|
||||||
case ParentGroup:
|
case ParentGroup:
|
||||||
return tr("Group name");
|
return tr("Group name");
|
||||||
|
case ParentGroupPath:
|
||||||
|
return tr("Group Path");
|
||||||
case Title:
|
case Title:
|
||||||
return tr("Entry title");
|
return tr("Entry title");
|
||||||
case Username:
|
case Username:
|
||||||
|
@ -49,7 +49,8 @@ public:
|
|||||||
Totp = 12,
|
Totp = 12,
|
||||||
Size = 13,
|
Size = 13,
|
||||||
PasswordStrength = 14,
|
PasswordStrength = 14,
|
||||||
Color = 15
|
Color = 15,
|
||||||
|
ParentGroupPath = 16
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit EntryModel(QObject* parent = nullptr);
|
explicit EntryModel(QObject* parent = nullptr);
|
||||||
|
@ -482,6 +482,7 @@ void EntryView::resetViewToDefaults()
|
|||||||
header()->hideSection(EntryModel::Size);
|
header()->hideSection(EntryModel::Size);
|
||||||
header()->hideSection(EntryModel::PasswordStrength);
|
header()->hideSection(EntryModel::PasswordStrength);
|
||||||
header()->hideSection(EntryModel::Color);
|
header()->hideSection(EntryModel::Color);
|
||||||
|
header()->hideSection(EntryModel::ParentGroupPath);
|
||||||
onHeaderChanged();
|
onHeaderChanged();
|
||||||
|
|
||||||
// Reset column order to logical indices
|
// Reset column order to logical indices
|
||||||
|
Loading…
x
Reference in New Issue
Block a user