Commit f6c25281 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Don't use OpenGL for the QML profiler trace window

Using an OpenGL widget causes Qt to revert back to native widgets for
everything, which causes flicker.

Software rendering should be fast enough anyway and work more reliable
in general.

Reviewed-by: Kai Koehne
parent 717d8ae1
......@@ -8,7 +8,7 @@ include(../../plugins/coreplugin/coreplugin.pri)
include(../../plugins/analyzerbase/analyzerbase.pri)
QT += network script opengl declarative
QT += network script declarative
include(canvas/canvas.pri)
#include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
......
......@@ -44,7 +44,6 @@
#include <QtGui/qevent.h>
#include <QtCore/qstack.h>
#include <QtOpenGL/QGLWidget>
#include <QGraphicsObject>
#include <QtDeclarative/qdeclarativeview.h>
......@@ -270,7 +269,6 @@ TraceWindow::TraceWindow(QWidget *parent)
//new QmlJSDebugger::QDeclarativeViewObserver(m_view, m_view);
}
m_view->setViewport(new QGLWidget());
m_view->setResizeMode(QDeclarativeView::SizeRootObjectToView);
m_view->setFocus();
groupLayout->addWidget(m_view);
......@@ -278,8 +276,7 @@ TraceWindow::TraceWindow(QWidget *parent)
setLayout(groupLayout);
// Maximum height: 5 rows of 50 pixels + scrollbar of 50 pixels
setMinimumHeight(300);
setMaximumHeight(300);
setFixedHeight(300);
}
TraceWindow::~TraceWindow()
......
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