In KHangman, I use KPassivePopups to tell the user that the letter he/she entered has already been guessed. The popup is in Comic style
popup->setPopupStyle( KPassivePopup::Balloon );
and is prettier than a plain rectangle. It looks like that:

However on KDE4 there is something broken and it looks like that:

The code that breaks it is in KPassivePopup::updateMask() method and will probably be a one liner. However neither Pino nor me managd to find the solution so far.
We made 2 changes that improve things:
line 469 QBrush brush( Qt::color1, Qt::SolidPattern );
instead of
QBrush brush( Qt::white, Qt::SolidPattern );
and line 475:
path.arcTo(corners[i].x(),corners[i].y(),40,40, i * 90 , 90);
instead of
path.arcTo(corners[i].x(),corners[i].y(),40,40, i * 16 * 90 , 16 * 90);
(QPointArray to QPainterPath).
Will you be the one who will fix KPassivePopup in Balloon style?
No comments:
Post a Comment