49 lines
1.5 KiB
Diff
49 lines
1.5 KiB
Diff
From 2b6ad995607e60a9674f31fbec3f317f2eecb9c7 Mon Sep 17 00:00:00 2001
|
|
From: tanyulong2021 <tanyulong@kylinos.cn>
|
|
Date: Mon, 19 Dec 2022 13:27:29 +0800
|
|
Subject: [PATCH] Username to long and ends the display
|
|
|
|
---
|
|
polkit-agent/i18n_ts/zh_CN.ts | 2 +-
|
|
polkit-agent/src/mainwindow.cpp | 4 ++--
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/polkit-agent/i18n_ts/zh_CN.ts b/polkit-agent/i18n_ts/zh_CN.ts
|
|
index 337765d..0ebbaed 100755
|
|
--- a/polkit-agent/i18n_ts/zh_CN.ts
|
|
+++ b/polkit-agent/i18n_ts/zh_CN.ts
|
|
@@ -23,7 +23,7 @@
|
|
</message>
|
|
<message>
|
|
<source>Password</source>
|
|
- <translation type="obsolete">密码</translation>
|
|
+ <translation>密码</translation>
|
|
</message>
|
|
<message>
|
|
<location filename="../src/mainwindow.ui" line="156"/>
|
|
diff --git a/polkit-agent/src/mainwindow.cpp b/polkit-agent/src/mainwindow.cpp
|
|
index 7a74bb1..a88431a 100755
|
|
--- a/polkit-agent/src/mainwindow.cpp
|
|
+++ b/polkit-agent/src/mainwindow.cpp
|
|
@@ -24,7 +24,7 @@
|
|
#include <QPixmap>
|
|
#include <QFontMetrics>
|
|
#include <QtMath>
|
|
-
|
|
+#include <QAbstractItemView>
|
|
#include <sys/types.h>
|
|
#include <pwd.h>
|
|
#include <libintl.h>
|
|
@@ -234,7 +234,7 @@ void MainWindow::setPrompt(const QString &text, bool echo)
|
|
QString prompt = text;
|
|
|
|
if(text == "Password: ")
|
|
- prompt = tr("Password: ");
|
|
+ prompt = tr("Password");
|
|
|
|
ui->lblPrompt->setText(prompt);
|
|
ui->lePassword->setEchoMode(echo ? QLineEdit::Normal : QLineEdit::Password);
|
|
--
|
|
2.33.0
|
|
|