It's about time I do something instead of blabla like I did until now:
in margeNumberation.cpp, paintEvent(), this line:
p.drawText( width() -fm.width( txt ) - 2, qRound( position.y() ) -contentsY +ascent, txt ); // -fm.width( "0" ) is an ampty place/indent
p.drawText( width() -fm.width( txt ) - 2, qRound( position.y() ) -contentsY +ascent, txt ); // -fm.width( "0" ) is an ampty place/indent
To copy to clipboard, switch view to plain text mode
and in setDigits:
setFixedWidth( fontMetrics().width( "0" ) * (i) + 32 ); // +2 = 1 empty place before and 1 empty place after
setFixedWidth( fontMetrics().width( "0" ) * (i) + 32 ); // +2 = 1 empty place before and 1 empty place after
To copy to clipboard, switch view to plain text mode
This makes the line number widget behave better, and leves 32 pixels for the icons (break). I tested it with a 20K file (4 digits) and the icons are drawn on the correct location. I number of 22 is also good, more tight.
There are some regressions on this version, I will test it trough today and tomorrow, and report about the ooopses I find.
BTW, the auto hide thingie...? IMHO sux
Bookmarks