Skip to content

Commit

Permalink
Fixes #4984 - Remove maximize from Meter (Metro) menu
Browse files Browse the repository at this point in the history
  • Loading branch information
malcops committed Aug 27, 2019
1 parent d766b87 commit 2df0553
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/widgets/TempoSyncKnob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ void TempoSyncKnob::showCustom()
if( m_custom == NULL )
{
m_custom = new MeterDialog( gui->mainWindow()->workspace() );
gui->mainWindow()->addWindowedWidget( m_custom );
QMdiSubWindow * subWindow = gui->mainWindow()->addWindowedWidget( m_custom );
Qt::WindowFlags flags = subWindow->windowFlags();
flags &= ~Qt::WindowMaximizeButtonHint;
subWindow->setWindowFlags( flags );
subWindow->setFixedSize( subWindow->size() );
m_custom->setWindowTitle( "Meter" );
m_custom->setModel( &model()->m_custom );
}
Expand Down

0 comments on commit 2df0553

Please sign in to comment.