Skip to content

Commit

Permalink
We be bold.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Nov 29, 2024
1 parent d841b47 commit 4461823
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/glitch-view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1446,10 +1446,13 @@ void glitch_view::prepareTabCornerMenu(QToolButton *toolButton)
for(int i = 0; i < m_ui.tab->count(); i++)
{
auto action = new QAction(m_ui.tab->tabText(i));
auto font(action->font());

font.setBold(i == m_ui.tab->currentIndex());
action->setCheckable(true);
action->setChecked(i == m_ui.tab->currentIndex());
action->setData(i);
action->setFont(font);
connect(action,
SIGNAL(triggered(void)),
this,
Expand Down

0 comments on commit 4461823

Please sign in to comment.