"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/pfsview/luminancerange_widget.cpp" between
pfstools-2.1.0.tgz and pfstools-2.2.0.tgz

About: pfstools are a set of command line programs (and one GUI program) for reading, writing, manipulating, and viewing high-dynamic range (HDR) images and video frames (similar as the netpbm package does for low-dynamic range images).

luminancerange_widget.cpp  (pfstools-2.1.0.tgz):luminancerange_widget.cpp  (pfstools-2.2.0.tgz)
skipping to change at line 135 skipping to change at line 135
} }
// Paint scale // Paint scale
QFont labelFont( "SansSerif", 8 ); QFont labelFont( "SansSerif", 8 );
p.setFont( labelFont ); p.setFont( labelFont );
p.setPen( Qt::black ); p.setPen( Qt::black );
QRect textBounding = p.boundingRect( fRect, Qt::AlignHCenter|Qt::AlignBottom, "-8" ); QRect textBounding = p.boundingRect( fRect, Qt::AlignHCenter|Qt::AlignBottom, "-8" );
for( float x = ceil( minValue ); x <= floor( maxValue ); x++ ) { for( float x = ceil( minValue ); x <= floor( maxValue ); x++ ) {
int rx = getWindowX(x); int rx = getWindowX(x);
p.drawLine( rx, fRect.top(), rx, textBounding.top() ); p.drawLine( rx, fRect.top(), rx, textBounding.top() );
char str[10]; char str[14];
sprintf( str, "%g", x ); sprintf( str, "%g", x );
p.drawText( rx-20, textBounding.top(), 40, textBounding.height(), p.drawText( rx-20, textBounding.top(), 40, textBounding.height(),
Qt::AlignHCenter|Qt::AlignBottom, str ); Qt::AlignHCenter|Qt::AlignBottom, str );
} }
// Paint value pointer // Paint value pointer
if( showVP ) if( showVP )
{ {
int x = getWindowX( valuePointer ); int x = getWindowX( valuePointer );
if( fRect.contains( x, fRect.y() ) ) { if( fRect.contains( x, fRect.y() ) ) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)