[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Usability questions for Mandelbrot
From:       Benoit Jacob <jacob.benoit.1 () gmail ! com>
Date:       2009-04-10 14:21:53
Message-ID: d9f848520904100721u6e8d7bd5xb53249cec02da4fb () mail ! gmail ! com
[Download RAW message or body]

2009/4/10 Aaron J. Seigo <aseigo@kde.org>:
> On Thursday 09 April 2009, Benoit Jacob wrote:
>> 2009/4/9 Aaron J. Seigo <aseigo@kde.org>:
>> > QCursor::setCursor?
>>
>> ah, thanks!
>>
>> > i wonder if the hoverOut events are accurate enough for that though..
>> > hm..
>>
>> i can't seem to find any hoverEvents in the Wallpaper class. Anyway if
>> it's nontrivial then better just leave the default mouse pointer!
>
> try it; it _should_ just work. if it doesn't, let me know. ;)

OK, here's where I'm stuck:

1) There doesn't seem to be a QCursor::setCursor(). There is a
setCursor method in QWidget and in QApplication; how can i leverage
either?

2) There are no hoverEnterEvent and hoverLeaveEvent methods in
Wallpaper. So I tried reimplementing QObject::event() but it doesn't
seem to ever get called: the following gives nothing, not even the
mouse events that are well handled:

bool Mandelbrot::event(QEvent *e)
{
  kDebug() << "event" << e->type();
  return Plasma::Wallpaper::event(e);
}

Cheers,
Benoit
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic