[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: [PATCH] KMid: draw note events
From: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas () gmail ! com>
Date: 2009-09-29 19:08:53
Message-ID: 200909292108.53323.pedro.lopez.cabanillas () gmail ! com
[Download RAW message or body]
On Tuesday, September 29, 2009, Albert Astals Cid wrote:
> A Dimarts, 29 de setembre de 2009, Pedro Lopez-Cabanillas va escriure:
> > Since the KDE4 migration, KMid doesn't draw the note events on the
> > keyboard widget of the channels view. Instead, you can see the following
> > messages in the terminal:
> >
> > QPainter::begin: Widget painting can only begin as a result of a
> > paintEvent QPainter::setPen: Painter not active
> >
> > The attached patch solves the issue.
>
> WA_PaintOutsidePaintEvent is only supported in Linux, does KMid work on
> other architecture than not Linux? If it does a better patch has to be
> researched, if it does not, the patch is ok.
My solution works only for X11, not for Mac and Windows, according to the
QPainter documentation [1]. X11 includes Linux and other Unices.
AFAIK, KMid was never supported in Mac or Windows systems. And currently KMid
is built only if the ALSA library is found at compile time, rendering
ineffective the other legacy MIDI device types existing in libkmid. This fact
constraints KMid to Linux only. The "Salsa" library is available for other
Unices as well, but can't be used as a replacement of ALSA for KMid, because
it lacks MIDI sequencer functionality.
So, in short, I would say yes: KMid is a Linux only application.
[1] http://doc.trolltech.com/4.5/qpainter.html
"Warning: When the paintdevice is a widget, QPainter can only be used inside a
paintEvent() function or in a function called by paintEvent(); that is unless
the Qt::WA_PaintOutsidePaintEvent widget attribute is set. On Mac OS X and
Windows, you can only paint in a paintEvent() function regardless of this
attribute's setting."
Regards,
Pedro
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic