mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Style object must follow lifespan of RIViewer
p4#: 19288
This commit is contained in:
@@ -97,8 +97,8 @@ RIViewer::RIViewer(const QGLFormat& format, QWidget* parent)
|
||||
m_animationProgress->setFormat("Time Step: %v/%m");
|
||||
m_animationProgress->setTextVisible(true);
|
||||
|
||||
QCDEStyle myStyle;
|
||||
m_animationProgress->setStyle(&myStyle);
|
||||
m_progressBarStyle = new QCDEStyle();
|
||||
m_animationProgress->setStyle(m_progressBarStyle);
|
||||
m_showAnimProgress = false;
|
||||
|
||||
// Histogram
|
||||
@@ -120,6 +120,7 @@ RIViewer::~RIViewer()
|
||||
delete m_InfoLabel;
|
||||
delete m_animationProgress;
|
||||
delete m_histogramWidget;
|
||||
delete m_progressBarStyle;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ class RimReservoirView;
|
||||
class QLabel;
|
||||
class QProgressBar;
|
||||
class RiuSimpleHistogramWidget;
|
||||
class QCDEStyle;
|
||||
|
||||
namespace cvf
|
||||
{
|
||||
@@ -88,6 +89,7 @@ private:
|
||||
RiuSimpleHistogramWidget* m_histogramWidget;
|
||||
bool m_showHistogram;
|
||||
|
||||
QCDEStyle* m_progressBarStyle;
|
||||
|
||||
|
||||
cvf::ref<cvf::OverlayScalarMapperLegend> m_legend1;
|
||||
|
||||
Reference in New Issue
Block a user