mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
ResInsight: Integrated from Caf trunc. Multi variable fields (multiselect) with option values now handled. Improved PdmUi layout. Improved Viewer widget size behaviour, Xml keyword check.
p4#: 18777
This commit is contained in:
@@ -69,7 +69,7 @@ caf::Viewer::Viewer(const QGLFormat& format, QWidget* parent)
|
||||
QHBoxLayout* layout = new QHBoxLayout(m_layoutWidget);
|
||||
|
||||
layout->addWidget(this);
|
||||
layout->setMargin(0);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
setAutoFillBackground(false);
|
||||
setMouseTracking(true);
|
||||
@@ -378,6 +378,7 @@ void caf::Viewer::paintEvent(QPaintEvent* event)
|
||||
|
||||
cvf::ref<cvf::OpenGLContext> myOglContext = cvfOpenGLContext();
|
||||
CVF_CHECK_OGL(myOglContext.p());
|
||||
CVF_ASSERT(myOglContext->isContextValid());
|
||||
|
||||
QPainter painter(this);
|
||||
|
||||
@@ -662,6 +663,23 @@ void caf::Viewer::debugShowRenderingSequencePartNames()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void caf::Viewer::enableNavigationPolicy(bool enable)
|
||||
{
|
||||
m_navigationPolicyEnabled = enable;
|
||||
if (enable && m_navigationPolicy.notNull()) m_navigationPolicy->init();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QSize caf::Viewer::sizeHint() const
|
||||
{
|
||||
return QSize(500, 400);
|
||||
}
|
||||
|
||||
void caf::Viewer::enableForcedImmediateMode(bool enable)
|
||||
{
|
||||
m_mainRendering->renderEngine()->enableForcedImmediateMode(enable);
|
||||
|
||||
Reference in New Issue
Block a user