mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Added possibility to setCurrentFrame without emitting a signal
This commit is contained in:
1 parent
c86dc45fd6
commit
89fa5ecef7
2 files changed
+14
No files matched your search
@@ -157,6 +157,19 @@ int FrameAnimationControl::currentFrame() const
|
||||
return m_currentFrame;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Set current frame without emitting signal
|
||||
/// Used when views are linked and need to update current frame without emitting a signal
|
||||
/// Emitting a signal will cause infinite recursion
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void FrameAnimationControl::setCurrentFrameOnly(int frameIndex)
|
||||
{
|
||||
if (frameIndex >= 0)
|
||||
{
|
||||
m_currentFrame = frameIndex;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -58,6 +58,7 @@ public:
|
||||
void setNumFrames(int numFrames);
|
||||
int numFrames() const;
|
||||
int currentFrame() const;
|
||||
void setCurrentFrameOnly(int frameIndex);
|
||||
|
||||
bool isActive() const;
|
||||
|
||||
|
||||
Reference in new issue
Block a user