mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add ResInsight version to status bar
This commit is contained in:
parent
a71d6fc67d
commit
2d0a6a9aa7
@ -156,12 +156,16 @@ RiuMainWindow::RiuMainWindow()
|
||||
|
||||
initializeGuiNewProjectLoaded();
|
||||
|
||||
QString versionText = RiaApplication::getVersionStringApp( false );
|
||||
|
||||
m_versionInfo = new QLabel( versionText );
|
||||
m_memoryCriticalWarning = new QLabel( "" );
|
||||
m_memoryUsedButton = new QToolButton( nullptr );
|
||||
m_memoryTotalStatus = new QLabel( "" );
|
||||
|
||||
m_memoryUsedButton->setDefaultAction( caf::CmdFeatureManager::instance()->action( "RicShowMemoryCleanupDialogFeature" ) );
|
||||
|
||||
statusBar()->addPermanentWidget( m_versionInfo );
|
||||
statusBar()->addPermanentWidget( m_memoryCriticalWarning );
|
||||
statusBar()->addPermanentWidget( m_memoryUsedButton );
|
||||
statusBar()->addPermanentWidget( m_memoryTotalStatus );
|
||||
|
@ -200,6 +200,7 @@ private:
|
||||
QToolButton* m_memoryUsedButton;
|
||||
QLabel* m_memoryTotalStatus;
|
||||
QTimer* m_memoryRefreshTimer;
|
||||
QLabel* m_versionInfo;
|
||||
|
||||
// Menu and action slots
|
||||
private slots:
|
||||
|
Loading…
Reference in New Issue
Block a user