[Digikam-devel] [Bug 179548] additional guide for aspect ratio crop

simon at margo.student.utwente.nl simon at margo.student.utwente.nl
Sun Jan 11 12:48:49 GMT 2009


http://bugs.kde.org/show_bug.cgi?id=179548





--- Comment #24 from simon margo student utwente nl  2009-01-11 13:48:48 ---
Created an attachment (id=30127)
 --> (http://bugs.kde.org/attachment.cgi?id=30127)
this one will also add the dotted coloured line (the ugly way)

In this patch, I've added the code to draw the dotted line in the way that all
the other methods do it (just copy the code after a change of pen style)

The good way to solve this and all the other methods would be to write a
function/method that will draw two lines (e.g. drawGuideLine() ) and use that
instead of drawLine() and setPen().

void drawGuideLine( QPainter* p, int x1, y1, x2, y2) {
 p->setPen(QPen(Qt::white, d->guideSize, Qt::SolidLine));
 p->drawLine(x1, y1, x2, y2);
 p->setPen(QPen(d->guideColor, d->guideSize, Qt::DotLine));
 p->drawLine(x1, y1, x2, y2);
}

Or something like that (my c++ isn't fresh ;-)

/Simon


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list