[plasma/ksshaskpass] src: Drop window title

Kai Uwe Broulik <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ed17c4406d890828503ec629f8aeeecc5aa5207b by Kai Uwe Broulik.
Committed on 17/08/2026 at 14:09.
Pushed by broulik into branch 'master'.

Drop window title

Qt by default adds the application name ("SSH Credentials") already.
The window is relatively narrow so this typically results in an
elided title.

Remove the title which will then use a default title for the dialog
alongside the application name, e.g.

* Question - SSH Credentials
* Password - SSH Credentials

M  +1    -3    src/main.cpp

https://invent.kde.org/plasma/ksshaskpass/-/commit/ed17c4406d890828503ec629f8aeeecc5aa5207b

diff --git a/src/main.cpp b/src/main.cpp
index 3b139f6..119a82d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -43,7 +43,6 @@ static void execQKeychainJobBlocking(QKeychain::Job &job)
 void cancelDialog(QWidget *parent, const QString &text)
 {
     QDialog *d = new QDialog(parent);
-    d->setWindowTitle(i18nc("@title:window", "Enter SSH Credentials"));
     d->setObjectName(QStringLiteral("information"));
 
     QDialogButtonBox *buttonBox = new QDialogButtonBox(d);
@@ -153,7 +152,7 @@ int main(int argc, char **argv)
     case DisplayType::Confirm: {
         if (KMessageBox::questionTwoActions(nullptr,
                                             dialog,
-                                            i18nc("@title:window", "Enter SSH Credentials"),
+                                            QString(),
                                             KGuiItem(i18nc("@action:button", "Accept"), QStringLiteral("dialog-ok")),
                                             KStandardGuiItem::cancel())
             != KMessageBox::PrimaryAction) {
@@ -197,7 +196,6 @@ int main(int argc, char **argv)
         QPointer<KPasswordDialog> kpd = new KPasswordDialog(nullptr, flag);
 
         kpd->setPrompt(dialog);
-        kpd->setWindowTitle(i18nc("@title:window", "Enter SSH Credentials"));
         // We don't want to dump core when the password dialog is shown, because it could contain the entered password.
         // KPasswordDialog::disableCoreDumps() seems to be gone in KDE 4 -- do it manually
         struct rlimit rlim;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.