Reduced number of characters in Qt piano roll frame cell.
This commit is contained in:
parent
6d81529b4c
commit
f1eb0a94fe
|
@ -3949,7 +3949,7 @@ void QPianoRoll::calcFontData(void)
|
|||
viewLines = (viewHeight / pxLineSpacing) + 1;
|
||||
|
||||
pxWidthCol1 = 3 * pxCharWidth;
|
||||
pxWidthFrameCol = 12 * pxCharWidth;
|
||||
pxWidthFrameCol = 9 * pxCharWidth;
|
||||
pxWidthBtnCol = 3 * pxCharWidth;
|
||||
pxWidthCtlCol = 8 * pxWidthBtnCol;
|
||||
|
||||
|
@ -5909,9 +5909,9 @@ void QPianoRoll::paintEvent(QPaintEvent *event)
|
|||
// bg
|
||||
painter.setPen( rowTextColor );
|
||||
|
||||
x = -pxLineXScroll + pxFrameColX + (pxWidthFrameCol - 10*pxCharWidth) / 2;
|
||||
x = -pxLineXScroll + pxFrameColX + (pxWidthFrameCol - 7*pxCharWidth) / 2;
|
||||
|
||||
sprintf( stmp, "%010i", lineNum );
|
||||
sprintf( stmp, "%07i", lineNum );
|
||||
|
||||
if (markersManager->getMarkerAtFrame(lineNum))
|
||||
{
|
||||
|
|
|
@ -144,8 +144,8 @@ void BOOKMARKS::calcFontData(void)
|
|||
viewLines = (viewHeight / pxLineSpacing) + 1;
|
||||
|
||||
pxWidthCol1 = 3 * pxCharWidth;
|
||||
pxWidthFrameCol = 12 * pxCharWidth;
|
||||
pxWidthTimeCol = 12 * pxCharWidth;
|
||||
pxWidthFrameCol = 9 * pxCharWidth;
|
||||
pxWidthTimeCol = 10 * pxCharWidth;
|
||||
|
||||
pxLineWidth = pxWidthCol1 + pxWidthFrameCol + pxWidthTimeCol;
|
||||
|
||||
|
@ -638,7 +638,7 @@ void BOOKMARKS::paintEvent(QPaintEvent *event)
|
|||
{
|
||||
x = pxStartCol2 + pxCharWidth;
|
||||
|
||||
U32ToDecStr( txt, bookmarksArray[item].snapshot.keyFrame, 10);
|
||||
U32ToDecStr( txt, bookmarksArray[item].snapshot.keyFrame, 7);
|
||||
|
||||
painter.drawText( x, y+pxLineTextOfs, tr(txt) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue