mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6743 Dock Widgets : Workaround for high CPU usage
This commit is contained in:
@@ -154,6 +154,11 @@ RiuMainWindow::RiuMainWindow()
|
||||
m_memoryRefreshTimer = new QTimer( this );
|
||||
connect( m_memoryRefreshTimer, SIGNAL( timeout() ), this, SLOT( updateMemoryUsage() ) );
|
||||
m_memoryRefreshTimer->start( 1000 );
|
||||
|
||||
auto dockTimer = new QTimer( this );
|
||||
dockTimer->setSingleShot( true );
|
||||
connect( dockTimer, SIGNAL( timeout() ), this, SLOT( slotWorkaroundForQwtDockWidgets() ) );
|
||||
dockTimer->start( 1000 );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1968,6 +1973,14 @@ void RiuMainWindow::customMenuRequested( const QPoint& pos )
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::slotWorkaroundForQwtDockWidgets()
|
||||
{
|
||||
RiuDockWidgetTools::workaroundForQwtDockWidgets();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user