Ovveride update() and find all linked views to be updated

This commit is contained in:
Magne Sjaastad
2015-08-28 21:32:51 +02:00
parent 905f4df2bf
commit e5d5543cd9
6 changed files with 98 additions and 64 deletions

View File

@@ -792,3 +792,12 @@ void caf::Viewer::updateOverlayImagePresence()
}
}
//--------------------------------------------------------------------------------------------------
/// Create a virtual method so it is possible to override this function in derived classes
/// Default implementation calls the base class update()
//--------------------------------------------------------------------------------------------------
void caf::Viewer::update()
{
caf::OpenGLWidget::update();
}

View File

@@ -131,6 +131,8 @@ public:
// Find out whether the system supports shaders
static bool isShadersSupported();
virtual void update();
public slots:
virtual void slotSetCurrentFrame(int frameIndex);
virtual void slotEndAnimation();