<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I am forces to render the dive profile on a QImage so that I can convert it to grayscale image and then render it on top of the QWebview, Do you think there is a way to convert the vector graphics to grayscale?</div></div></div></div></blockquote><div><br><br></div></div></div><div>






<div>
<span style="font-family:monospace"><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">graphicsview-common.h</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">QColor </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">getColor</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(const color_indice_t i, bool isGrayscale = false);</span><br>
<br></span></div><div><span style="font-family:monospace">so, 90% of the time we are using getColor without the isGrayscale boolean, triggering the false state.<br></span></div><div><span style="font-family:monospace">this is where you should do your stuff :)<br><br></span></div><div><span style="font-family:monospace">grep getColor inside qt-ui/profile and see where you should change.<br><br></span></div><div><span style="font-family:monospace"><br></span></div></div></div></div></div></blockquote><div><br></div></div></div><div>I already tried to do this, I also added isGrayscale members in DiveProfileItem, but there are some remaining elements that I couldn't change into grayscale (eg. cylinder pressure curve and numbers on horizontal/vertical axis) please check the screenshot attached, Am I missing something?</div></div></div></div></blockquote><div><br><br></div><div>yes, in a few places we are not using the get color correctly and this needs to be fixed:<br><br></div><div>tankitem.cpp ( see the setColorAt calls )<br></div><div>rulerItem.cpp ( check for QColor usage )<br></div><div>profileWidget.cpp ( check for QColor )<br></div><div>diveprofileItem.cpp ( check for "     // This paints the colors of the velocities. " )<br><br>getSacColor also doesn't takes into consideration printMode<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><span style="font-family:monospace"></span></div> 


<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span><font color="#888888"><div><br></div><span><font color="#888888">-- <br><div><div dir="ltr"><div><div dir="ltr">regards,</div></div><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"><div><div dir="ltr"><div>Gehad</div></div></div></blockquote></div></div>
</font></span></font></span></div></div><span><font color="#888888">
<br>_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org" target="_blank">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
<br></font></span></blockquote></div><br></div></div>
</blockquote></span></div><span class=""><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">regards,</div></div><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"><div><div dir="ltr"><div>Gehad</div></div></div></blockquote></div></div>
</font></span></div></div>
</blockquote></div><br></div></div>