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

Remove process events from internal snapshot function

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12225 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a498d41b
...@@ -118,8 +118,6 @@ void CoreWidget::setStatus( ApplicationStatus::applicationStatus _status) ...@@ -118,8 +118,6 @@ void CoreWidget::setStatus( ApplicationStatus::applicationStatus _status)
statusIcon_->setPixmap(pix.scaled(12,12,Qt::KeepAspectRatio,Qt::SmoothTransformation)); statusIcon_->setPixmap(pix.scaled(12,12,Qt::KeepAspectRatio,Qt::SmoothTransformation));
// QApplication::processEvents();
} }
void CoreWidget::addWidgetToStatusbar(QWidget* _widget){ void CoreWidget::addWidgetToStatusbar(QWidget* _widget){
......
...@@ -462,10 +462,6 @@ void CoreWidget::applicationSnapshot() { ...@@ -462,10 +462,6 @@ void CoreWidget::applicationSnapshot() {
suggest += format; suggest += format;
// Disabled, as it caused strange behaviour in the app ... early frames
// of the capture contained images from frames at the end of the capture process
// QApplication::processEvents();
QPixmap pic = QPixmap::grabWindow( winId() ); QPixmap pic = QPixmap::grabWindow( winId() );
pic.save(suggest); pic.save(suggest);
......
...@@ -531,7 +531,6 @@ glViewer::copyToImage( QImage& _image, ...@@ -531,7 +531,6 @@ glViewer::copyToImage( QImage& _image,
GLenum /* _buffer */ ) GLenum /* _buffer */ )
{ {
// qApp->processEvents();
// makeCurrent(); // makeCurrent();
_image = glWidget_->grabFrameBuffer(true).copy (_l, _t, _w, _h).convertToFormat (QImage::Format_RGB32); _image = glWidget_->grabFrameBuffer(true).copy (_l, _t, _w, _h).convertToFormat (QImage::Format_RGB32);
...@@ -2059,7 +2058,6 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo ...@@ -2059,7 +2058,6 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo
if ( fb.isValid() ){ if ( fb.isValid() ){
fb.bind(); fb.bind();
qApp->processEvents();
makeCurrent(); makeCurrent();
// Turn alpha on if demanded // Turn alpha on if demanded
......
Supports Markdown
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