Commit 83699fdb authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

remove useless code

parent b057ff92
......@@ -81,19 +81,6 @@ void dtkVisualizationViewVideoPrivate::paintGL(void)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
this->renderImage();
QFontMetrics metrics(qApp->font());
const int offset = 50;
const int margin = 20;
// QPainter painter(this);
// painter.setRenderHint(QPainter::Antialiasing, true);
// painter.setPen(Qt::NoPen);
// painter.setBrush(QColor(0, 0, 0, 128));
// painter.drawRect(0, this->size().height() - offset - margin, this->size().width(), margin * 7/4);
// painter.setPen(Qt::white);
// painter.drawText(this->size().width()/2 - metrics.width(this->title)/2, this->size().height() - offset, this->title);
}
void dtkVisualizationViewVideoPrivate::resizeGL(int width, int height)
......@@ -141,10 +128,6 @@ void dtkVisualizationViewVideoPrivate::recalculatePosition(void)
void dtkVisualizationViewVideoPrivate::renderImage(void)
{
this->makeCurrent();
glClear(GL_COLOR_BUFFER_BIT);
if(!this->render_image.isNull())
{
glLoadIdentity();
......
......@@ -35,26 +35,6 @@ public:
void resizeGL(int w, int h);
void paintGL(void);
protected:
void paintEvent(QPaintEvent *event) {
QOpenGLWidget::paintEvent(event);
QPainter painter(this);
QFontMetrics metrics(qApp->font());
const int offset = 50;
const int margin = 20;
// painter.setRenderHint(QPainter::Antialiasing, true);
// painter.setPen(Qt::NoPen);
// painter.setBrush(QColor(0, 0, 0, 128));
// painter.drawRect(0, this->size().height() - offset - margin, this->size().width(), margin * 7/4);
// painter.setPen(Qt::white);
// painter.drawText(this->size().width()/2 - metrics.width(this->title)/2, this->size().height() - offset, this->title);
}
public:
QMatrix4x4 projection_matrix, view_matrix;
QOpenGLShaderProgram pgm;
......
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