mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
(#411) Setting well log plot title in the viewer's window title bar
This commit is contained in:
1 parent
15d34498e3
commit
469bcb63d9
2 files changed
+17
No files matched your search
@@ -89,6 +89,7 @@ void RimWellLogPlot::updateViewerWidget()
|
||||
RiuMainWindow::instance()->addViewer(m_viewer, windowGeometry());
|
||||
RiuMainWindow::instance()->setActiveViewer(m_viewer);
|
||||
updateAxisRanges();
|
||||
updateViewerWidgetWindowTitle();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -118,6 +119,10 @@ void RimWellLogPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
{
|
||||
updateAxisRanges();
|
||||
}
|
||||
else if (changedField == &m_userName)
|
||||
{
|
||||
updateViewerWidgetWindowTitle();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -339,3 +344,14 @@ void RimWellLogPlot::setDescription(const QString& description)
|
||||
{
|
||||
m_userName = description;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlot::updateViewerWidgetWindowTitle()
|
||||
{
|
||||
if (m_viewer)
|
||||
{
|
||||
m_viewer->setWindowTitle(QString("Well Log Plot - %1").arg(m_userName));
|
||||
}
|
||||
}
|
||||
@@ -41,6 +41,7 @@ public:
|
||||
virtual ~RimWellLogPlot();
|
||||
|
||||
void setDescription(const QString& description);
|
||||
void updateViewerWidgetWindowTitle();
|
||||
|
||||
void addTrace(RimWellLogPlotTrace* trace);
|
||||
size_t traceCount() { return traces.size();}
|
||||
|
||||
Reference in new issue
Block a user