mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 10:52:51 +00:00
libs: set tooltips for the interactive icons of Plasma::AppletFrame
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
09afd4b317
commit
9bda73e39a
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||||
|
|
Loading…
Add table
Reference in a new issue