Commit 7d36513a authored by Jan Möbius's avatar Jan Möbius
Browse files

Added a signal to check if the view has been updated

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5694 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0b63041f
...@@ -431,6 +431,8 @@ void glViewer::updateGL() ...@@ -431,6 +431,8 @@ void glViewer::updateGL()
if (!properties_.updateLocked() && isVisible() ) if (!properties_.updateLocked() && isVisible() )
{ {
update(); update();
emit viewUpdated();
} }
} }
......
...@@ -128,7 +128,7 @@ public: ...@@ -128,7 +128,7 @@ public:
*/ */
glViewer( QtGLGraphicsScene* _scene, glViewer( QtGLGraphicsScene* _scene,
QGLWidget* _glWidget, QGLWidget* _glWidget,
Viewer::ViewerProperties& _properties, Viewer::ViewerProperties& _properties,
QGraphicsWidget* _parent=0, QGraphicsWidget* _parent=0,
const char* _name=0, const char* _name=0,
QStatusBar *_statusBar=0); QStatusBar *_statusBar=0);
...@@ -544,6 +544,13 @@ private: ...@@ -544,6 +544,13 @@ private:
// Used to calculate the time passed between redraws // Used to calculate the time passed between redraws
QTime redrawTime_; QTime redrawTime_;
//===========================================================================
/** @name view handling
* @{ */
//===========================================================================
signals:
void viewUpdated();
//=========================================================================== //===========================================================================
/** @name Stereo /** @name Stereo
* @{ */ * @{ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment