Skip to content

Commit

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

0 comments on commit b6d32ef

Please sign in to comment.