[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/digikam/utilities/imageeditor/widgets
From: Andi Clemens <andi.clemens () gmx ! net>
Date: 2010-11-12 20:12:55
Message-ID: 20101112201255.DB2C6AC89E () svn ! kde ! org
[Download RAW message or body]
SVN commit 1196215 by aclemens:
Use antialiasing for the mask cursor
M +5 -1 imageguidewidget.cpp
--- trunk/extragear/graphics/digikam/utilities/imageeditor/widgets/imageguidewidget.cpp #1196214:1196215
@@ -794,13 +794,17 @@
int size = d->penWidth;
if (size > 64)
size = 64;
+ if (size < 3)
+ size = 3;
QPixmap pix(size, size);
pix.fill(Qt::transparent);
QPainter p(&pix);
- p.drawEllipse( 0, 0, size-1, size-1);
+ p.setRenderHint(QPainter::Antialiasing, true);
+ p.drawEllipse(1, 1, size-2, size-2);
+
d->maskCursor = QCursor(pix);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic