<br><br><div class="gmail_quote">On Fri, Jan 9, 2009 at 6:28 AM, 0xDeadC0de <span dir="ltr"><<a href="mailto:roguestar191@comcast.net">roguestar191@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think there's a coincidence between the animator and the<br>
tooltipmanager singletons not working. If I uncomment everything in the<br>
snippet below it crashes on me. at<br>
ToolTipManager::self().setContent(icon, data).<br>
(I am using older bindings from 4.2b2 still..)<br>
<br>
Someone in irc suggested it could be the "self" keyword conflicting with<br>
the c++ function call, could this be it? (Sorry if I remembered who I'd<br>
give them credit)</blockquote><div>No that works fine - I think this is the same problem with Singletons that has just been fixed.<br><br>-- Richard<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
def addToolNoLayout(iconString)<br>
icon = Plasma::IconWidget.new(@top.mytop)<br>
action = Qt::Action.new(KDE::Icon.new(iconString), "",<br>
@top.mytop)<br>
action.setToolTip("test")<br>
icon.setAction(action)<br>
icon.setMinimumSize(32,32)<br>
icon.setMaximumSize(32,32)<br>
#<br>
icon.setPreferredSize(icon.sizeFromIconSize(KDE::IconLoader::Toolbar))<br>
# puts 'create data'<br>
# data = Plasma::ToolTipContent.new()<br>
# data.mainText = ("My Title")<br>
# data.subText = ("This is a little tooltip")<br>
# puts 'add to manager'<br>
# Plasma::ToolTipManager::self().setContent(icon, data)<br>
# puts 'end'<br>
<br>
return icon<br>
end<br>
<br>
<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</blockquote></div><br>