libs: set tooltips for the interactive icons of Plasma::AppletFrame

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-12 00:03:31 +03:00
parent 09afd4b317
commit 9bda73e39a

View file

@ -150,6 +150,7 @@ AppletFrame::AppletFrame(QGraphicsWidget *parent, const KPluginInfo &appletInfo)
appletIcon->setMinimumSize(s_appleticonsize); appletIcon->setMinimumSize(s_appleticonsize);
appletIcon->setMaximumSize(s_appleticonsize); appletIcon->setMaximumSize(s_appleticonsize);
appletIcon->setIcon(appletInfo.icon()); appletIcon->setIcon(appletInfo.icon());
appletIcon->setToolTip(i18n("Double-click or drag to add this applet."));
connect( connect(
appletIcon, SIGNAL(doubleClicked()), appletIcon, SIGNAL(doubleClicked()),
this, SLOT(slotAddApplet()) this, SLOT(slotAddApplet())
@ -168,6 +169,7 @@ AppletFrame::AppletFrame(QGraphicsWidget *parent, const KPluginInfo &appletInfo)
m_appletactive->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); m_appletactive->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
m_appletactive->setMaximumSize(s_appletactiveiconsize, s_appletactiveiconsize); m_appletactive->setMaximumSize(s_appletactiveiconsize, s_appletactiveiconsize);
m_appletactive->setIcon(KIcon()); m_appletactive->setIcon(KIcon());
m_appletactive->setToolTip(i18n("Click to remove this applet."));
connect( connect(
m_appletactive, SIGNAL(clicked()), m_appletactive, SIGNAL(clicked()),
this, SLOT(slotRemoveApplet()) this, SLOT(slotRemoveApplet())