Commit ba9c3682 authored by Jan Möbius's avatar Jan Möbius

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 8386a2b7
......@@ -118,8 +118,6 @@ void CoreWidget::setStatus( ApplicationStatus::applicationStatus _status)
statusIcon_->setPixmap(pix.scaled(12,12,Qt::KeepAspectRatio,Qt::SmoothTransformation));
// QApplication::processEvents();
}
void CoreWidget::addWidgetToStatusbar(QWidget* _widget){
......
......@@ -462,10 +462,6 @@ void CoreWidget::applicationSnapshot() {
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() );
pic.save(suggest);
......
......@@ -531,7 +531,6 @@ glViewer::copyToImage( QImage& _image,
GLenum /* _buffer */ )
{
// qApp->processEvents();
// makeCurrent();
_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
if ( fb.isValid() ){
fb.bind();
qApp->processEvents();
makeCurrent();
// Turn alpha on if demanded
......
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