GUI: shorten the search placeholders and column headers to one word

Requested in review: placeholders back to "Search", id column headers
back to "Id". The multi-field search behaviour is unchanged, and the
"Matched by search" tooltip still tells which field matched.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jolavillette 2026-08-01 20:54:20 +02:00
parent 6310d15a3a
commit b48f870b1f
4 changed files with 4 additions and 4 deletions

View File

@ -86,7 +86,7 @@ NetworkDialog::NetworkDialog(QWidget */*parent*/)
ui.onlyTrustedKeys->setMinimumWidth(20*f);
/* Global search: search by name, PGP ID, node ID, IP */
ui.filterLineEdit->setPlaceholderText(tr("Search name, PGP ID, node ID, IP..."));
ui.filterLineEdit->setPlaceholderText(tr("Search"));
connect(ui.filterLineEdit, SIGNAL(textChanged(QString)), PGPIdItemProxy, SLOT(setFilterText(QString)));
}

View File

@ -81,7 +81,7 @@ QVariant pgpid_item_model::headerData(int section, Qt::Orientation orientation,
return QString(tr("Has signed your key?"));
break;
case PGP_ITEM_MODEL_COLUMN_PEERID:
return QString(tr("PGP ID"));
return QString(tr("Id"));
break;
case PGP_ITEM_MODEL_COLUMN_LAST_USED:
return QString(tr("Last used"));

View File

@ -374,7 +374,7 @@ QVariant RsFriendListModel::headerData(int section, Qt::Orientation /*orientatio
switch(section)
{
case COLUMN_THREAD_NAME: return tr("Name");
case COLUMN_THREAD_ID: return tr("PGP / Node ID"); // PGP id on profile rows, node id on location rows
case COLUMN_THREAD_ID: return tr("Id"); // PGP id on profile rows, node id on location rows
case COLUMN_THREAD_LAST_CONTACT: return tr("Last contact");
case COLUMN_THREAD_IP: return tr("IP");
default:

View File

@ -219,7 +219,7 @@ NewFriendList::NewFriendList(QWidget */*parent*/) : /* RsAutoUpdatePage(5000,par
int W = QFontMetricsF(ui->peerTreeWidget->font()).horizontalAdvance("_");
#endif
ui->filterLineEdit->setPlaceholderText(tr("Search name, PGP ID, node ID, IP...")) ;
ui->filterLineEdit->setPlaceholderText(tr("Search")) ;
ui->filterLineEdit->showFilterIcon();
// mEventHandlerId_pssc=0; // forces initialization