mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
plasma: disable focus and text interaction for user information widgets of launcher applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
4428efe5f0
commit
1b74718163
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue