From 9ac8b0d658f5200469181c3c543f5f5f390a1d93 Mon Sep 17 00:00:00 2001 From: tsujan Date: Wed, 17 Jul 2024 14:52:16 +0330 Subject: [PATCH] Added hint on dopdown shortcut under Wayland (#1151) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added hint on dopdown shortcut under Wayland … to Terminal settings → Dropdown → Shortcut. * Changed the label text --- src/forms/propertiesdialog.ui | 10 ++++++++++ src/propertiesdialog.cpp | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/forms/propertiesdialog.ui b/src/forms/propertiesdialog.ui index a5858eef..c747e049 100644 --- a/src/forms/propertiesdialog.ui +++ b/src/forms/propertiesdialog.ui @@ -982,6 +982,16 @@ To remove/disable a Shortcut, at point 2 press only a modifier (like Shift) + + + + Note: On Wayland, the shortcut has to be added in the compositor settings for 'qterminal -d'. + + + true + + + diff --git a/src/propertiesdialog.cpp b/src/propertiesdialog.cpp index 0e86c755..38fdaebf 100644 --- a/src/propertiesdialog.cpp +++ b/src/propertiesdialog.cpp @@ -290,6 +290,8 @@ PropertiesDialog::PropertiesDialog(QWidget *parent) Properties::Instance()->saveSettings(); }); + waylandLabel->setVisible(QGuiApplication::platformName() == QStringLiteral("wayland")); + // restore its size while fitting it into available desktop geometry QSize s; if (!Properties::Instance()->prefDialogSize.isEmpty())