Force Qt TAS bookmarks/branches font to bold.

This commit is contained in:
mjbudd77 2021-12-23 13:44:42 -05:00
parent 86e7f7a889
commit bdd0bda016
3 changed files with 9 additions and 5 deletions

View File

@ -4921,9 +4921,9 @@ void QPianoRoll::dragEnterEvent(QDragEnterEvent *event)
event->acceptProposedAction();
}
}
else if (event->mimeData()->hasText() )
else
{
if ( event->mimeData()->text().compare("MARKER") == 0 )
if ( event->source() == this )
{
event->acceptProposedAction();
}
@ -5649,7 +5649,7 @@ void QPianoRoll::startDraggingMarker(int mouseX, int mouseY, int rowIndex, int c
painter.end();
QMimeData *mime = new QMimeData;
mime->setText( QString("MARKER") );
//mime->setText( QString("MARKER") );
QDrag *drag = new QDrag(this);
drag->setMimeData(mime);

View File

@ -67,6 +67,7 @@ BOOKMARKS::BOOKMARKS(QWidget *parent)
font.setStyle( QFont::StyleNormal );
font.setStyleHint( QFont::Monospace );
}
font.setBold(true);
this->setFocusPolicy(Qt::StrongFocus);
this->setMouseTracking(true);
@ -119,7 +120,8 @@ void BOOKMARKS::reset_vars()
void BOOKMARKS::setFont( QFont &newFont )
{
font = newFont;
QWidget::setFont( newFont );
font.setBold(true);
QWidget::setFont( font );
calcFontData();
}

View File

@ -70,6 +70,7 @@ BRANCHES::BRANCHES(QWidget *parent)
font.setStyle( QFont::StyleNormal );
font.setStyleHint( QFont::Monospace );
}
font.setBold(true);
calcFontData();
}
@ -82,7 +83,8 @@ BRANCHES::~BRANCHES(void)
void BRANCHES::setFont( QFont &newFont )
{
font = newFont;
QWidget::setFont( newFont );
font.setBold(true);
QWidget::setFont( font );
calcFontData();
reset();
recalculateParents();