[PATCH] KMid: draw note events

View: New views
1 Messages — Rating Filter:   Alert me  

[PATCH] KMid: draw note events

by Bugzilla from pedro.lopez.cabanillas@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hola,

Desde la migración a KDE4, KMid ya no pinta los eventos de notas en los
teclados de la vista de canales. En cambio, se pueden ver una serie de
mensajes en el terminal:

QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::setPen: Painter not active

El parche adjunto lo soluciona.

Saludos,
Pedro

- -

Hi,

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.

Regards,
Pedro

[kmid-svn-channel.patch]

Index: channel.cpp
===================================================================
--- channel.cpp (revisión: 1028792)
+++ channel.cpp (copia de trabajo)
@@ -50,6 +50,7 @@
     replay=TRUE;
     int i;
     for (i=0;i<128;i++) pressed[i]=0;
+    setAttribute(Qt::WA_PaintOutsidePaintEvent, true);
     keyboard = QPixmap(KStandardDirs::locate("appdata","icons/keyboard.xpm"));
     penB = new QPen (Qt::black);
     penW = new QPen (Qt::white);


_______________________________________________
Kde-devel-es mailing list
Kde-devel-es@...
https://mail.kde.org/mailman/listinfo/kde-devel-es