1 // Copyright (c) 2011 Hewlett-Packard Development Company, L.P. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <QImage>
6 #include <QPixmap>
7 #include <QLabel>
8 #include "render_dialog.h"
9 
RenderDialog(QWidget * parent)10 RenderDialog::RenderDialog(QWidget* parent)
11     : QDialog(parent)
12 {
13     setupUi(this);
14     setAttribute(Qt::WA_DeleteOnClose);
15 }
16 
setImage(const QImage & image)17 void RenderDialog::setImage(const QImage& image)
18 {
19     imageLabel->setPixmap(QPixmap::fromImage(image));
20 }
21