forked from qt-creator/qt-creator
Git: Replace "SHA1" with "hash" in translatable strings
Change-Id: I4af9f995ea53236ab0108ce45d3fc26a59d8ef43 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
0fd06d0805
commit
2b02b518b5
@@ -67,7 +67,7 @@ GerritDialog::GerritDialog(const std::shared_ptr<GerritServer> &s,
|
||||
|
||||
m_queryLineEdit = new FancyLineEdit(changesGroup);
|
||||
m_queryLineEdit->setMinimumSize(QSize(400, 0));
|
||||
m_queryLineEdit->setPlaceholderText(Git::Tr::tr("Change #, SHA-1, tr:id, owner:email or reviewer:email"));
|
||||
m_queryLineEdit->setPlaceholderText(Git::Tr::tr("Change #, hash, tr:id, owner:email or reviewer:email"));
|
||||
m_queryLineEdit->setSpecialCompleter(new QCompleter(m_queryModel, this));
|
||||
m_queryLineEdit->setValidationFunction(
|
||||
[this](FancyLineEdit *, QString *) { return m_model->state() != GerritModel::Error; });
|
||||
|
@@ -56,7 +56,7 @@ BlameMark::BlameMark(const FilePath &fileName, int lineNumber, const CommitInfo
|
||||
setActionsProvider([info] {
|
||||
QAction *copyToClipboardAction = new QAction;
|
||||
copyToClipboardAction->setIcon(QIcon::fromTheme("edit-copy", Utils::Icons::COPY.icon()));
|
||||
copyToClipboardAction->setToolTip(TextEditor::Tr::tr("Copy SHA1 to Clipboard"));
|
||||
copyToClipboardAction->setToolTip(TextEditor::Tr::tr("Copy Hash to Clipboard"));
|
||||
QObject::connect(copyToClipboardAction, &QAction::triggered, [info] {
|
||||
Utils::setClipboardAndSelection(info.hash);
|
||||
});
|
||||
|
@@ -66,8 +66,7 @@ LogChangeWidget::LogChangeWidget(QWidget *parent)
|
||||
, m_model(new LogChangeModel(this))
|
||||
, m_hasCustomDelegate(false)
|
||||
{
|
||||
QStringList headers;
|
||||
headers << Tr::tr("Sha1")<< Tr::tr("Subject");
|
||||
const QStringList headers = {Tr::tr("Hash"), Tr::tr("Subject")};
|
||||
m_model->setHorizontalHeaderLabels(headers);
|
||||
setModel(m_model);
|
||||
setMinimumWidth(300);
|
||||
|
Reference in New Issue
Block a user