Minor draw fix for branches text.

This commit is contained in:
mjbudd77 2021-12-23 14:32:29 -05:00
parent 0c1c338ce7
commit ceaa04b0f4
2 changed files with 4 additions and 3 deletions

View File

@ -3710,7 +3710,7 @@ QPianoRoll::QPianoRoll(QWidget *parent)
useDarkTheme = false;
viewWidth = 512;
viewWidth = 256;
viewHeight = 512;
setMinimumWidth( viewWidth );
setMinimumHeight( viewHeight );

View File

@ -645,12 +645,13 @@ void BRANCHES::paintEvent(QPaintEvent *event)
{
int x,y;
char txt[4];
int visHeight;
QPixmap spriteSheet(":/icons/branch_spritesheet.png");
QPainter painter(this);
//viewWidth = event->rect().width();
//viewHeight = event->rect().height();
visHeight = event->rect().height();
// // draw background
QLinearGradient linearGrad(QPointF(0, 0), QPointF(viewWidth, viewHeight));
@ -893,7 +894,7 @@ void BRANCHES::paintEvent(QPaintEvent *event)
{
int x,y;
x = 2 * pxBoxWidth;
y = viewHeight - (pxLineSpacing / 2);
y = visHeight - (pxLineSpacing / 2);
if (bookmarks->itemUnderMouse == ITEM_UNDER_MOUSE_CLOUD)
{