1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add upstream patch to fix Kalarm segfault.

PR:		ports/176046
Submitted by:	Anish Mistry <amistry@unitedware.com>
This commit is contained in:
Max Brazhnikov 2013-02-27 12:47:21 +00:00
parent 5914c7c1b4
commit ecb1c451d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313049
2 changed files with 24 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= kdepim
PORTVERSION= 4.4.11.1
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= deskutils kde ipv6
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/kdepim-${PORTVERSION}/src

View File

@ -0,0 +1,23 @@
--- kalarm/lib/spinbox2.cpp
+++ kalarm/lib/spinbox2.cpp
@@ -28,7 +28,7 @@
#include <QMouseEvent>
#include <QStyleOptionSpinBox>
#include <QGraphicsPixmapItem>
-#include <QPaintEngine>
+#include <QPainter>
#include <QTimer>
#include <QFrame>
#include <QBrush>
@@ -588,8 +588,9 @@ void SpinMirror::setFrame()
p = grabWidget(mMainSpinbox, QRect(x, 0, 1, height()));
// Blot out edit field stuff from the middle of the slice
QPixmap dot = grabWidget(mMainSpinbox, QRect(x, editOffsetY, 1, 1));
- QPaintEngine* pe = p.paintEngine();
- pe->drawTiledPixmap(QRectF(0, editOffsetY, 1, height() - 2*editOffsetY), dot, QPointF(0, 0));
+ QPainter painter(&p);
+ painter.drawTiledPixmap(0, editOffsetY, 1, height() - 2*editOffsetY, dot, 0, 0);
+ painter.end();
// Horizontally fill the mirror widget with the vertical slice
p = p.scaled(size());
// Grab the left hand border of the main spinbox, and draw it into the mirror widget.