Problems with the new tasks applet

Aaron J. Seigo aseigo at kde.org
Wed Oct 22 21:53:32 CEST 2008


On Wednesday 22 October 2008, Petri Damstén wrote:
> On Wednesday 22 October 2008 20:42:25 Petri Damstén wrote:
> > [ ] Show tooltips (One more thing. Tooltips popup even if this is
> > unchecked)
>
> And for that:
>
> Index: abstracttaskitem.cpp
> ===================================================================
> --- abstracttaskitem.cpp        (revision 874912)
> +++ abstracttaskitem.cpp        (working copy)
> @@ -66,7 +66,6 @@
>        m_showTooltip(showTooltip),
>        m_showingTooltip(false)
>  {
> -    m_showTooltip = showTooltip;
>     
> setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding));
> setAcceptsHoverEvents(true);
>      setAcceptDrops(true);
> @@ -87,7 +86,7 @@
>  void AbstractTaskItem::setShowTooltip(const bool showit)
>  {
>      m_showTooltip = showit;
> -    updateToolTip();
> +    // updateToolTip(); // Is this needed. It's called in
> toolTipAboutToShow }
>
>  void AbstractTaskItem::setText(const QString &text)
> @@ -136,9 +135,13 @@
>
>  void AbstractTaskItem::toolTipAboutToShow()
>  {
> +    if (m_showTooltip) {
>      m_showingTooltip = true;
>      updateToolTip();
> +    } else {
> +        Plasma::ToolTipManager::self()->setContent(this);
>  }
> +}
>
>  void AbstractTaskItem::toolTipHidden()
>  {
>
> ok to commit?

+1

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20081022/de42be5f/attachment.sig 


More information about the Plasma-devel mailing list