r13965 by fschmid - Gradient Editor: draw background with a checkerboard pattern to visualize transparency.

scribus-commit scribus-commit at lists.scribus.net
Sun Sep 6 10:35:18 CEST 2009


Revision: 13965
Author: fschmid
Date: 2009-09-06T08:35:22.344540Z
Commit message: Gradient Editor: draw background with a checkerboard pattern to visualize transparency.

Changeset: 
M  /trunk/Scribus/scribus/ui/gradienteditor.cpp

Diffs:
Index: scribus/ui/gradienteditor.cpp
===================================================================
--- scribus/ui/gradienteditor.cpp	(revision 13964)
+++ scribus/ui/gradienteditor.cpp	(revision 13965)
@@ -78,8 +78,13 @@
 		StopM.append(center);
 	}
 	QImage pixm(width()-20, 37, QImage::Format_ARGB32);
+	QPainter pb;
+	QBrush b(QColor(205,205,205), loadIcon("testfill.png"));
+	pb.begin(&pixm);
+	pb.fillRect(0, 0, pixm.width(), pixm.height(), b);
+	pb.end();
 	ScPainter *p = new ScPainter(&pixm, width()-20, 37);
-	p->clear(Qt::white);
+//	p->clear(Qt::white);
 	p->setPen(Qt::black);
 	p->setLineWidth(1);
 	p->setFillMode(2);




More information about the scribus-commit mailing list