From 1b7471816340f1353decae1e57e994b9dc64999d Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 20 May 2024 00:44:46 +0300 Subject: [PATCH] plasma: disable focus and text interaction for user information widgets of launcher applet Signed-off-by: Ivailo Monev --- plasma/applets/launcher/launcher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plasma/applets/launcher/launcher.cpp b/plasma/applets/launcher/launcher.cpp index 4da63b8b..20e3a5c9 100644 --- a/plasma/applets/launcher/launcher.cpp +++ b/plasma/applets/launcher/launcher.cpp @@ -1661,11 +1661,14 @@ LauncherAppletWidget::LauncherAppletWidget(LauncherApplet* auncherapplet) m_iconwidget = new Plasma::IconWidget(this); m_iconwidget->setAcceptHoverEvents(false); m_iconwidget->setAcceptedMouseButtons(Qt::NoButton); + m_iconwidget->setFlag(QGraphicsItem::ItemIsFocusable, false); m_iconwidget->setIcon(s_usericon); m_toplayout->addItem(m_iconwidget); m_label = new Plasma::Label(this); m_label->setWordWrap(false); + m_label->nativeWidget()->setTextInteractionFlags(Qt::NoTextInteraction); + m_label->setFlag(QGraphicsItem::ItemIsFocusable, false); m_toplayout->addItem(m_label); m_toplayout->setAlignment(m_label, Qt::AlignCenter);