manualviewerdlg.cpp
795 Bytes
#include <QImageReader>
#include <QDebug>
#include "manualviewerdlg.h"
#include "ui_manualviewerdlg.h"
ManualViewerDlg::ManualViewerDlg(QWidget *parent) :
QDialog(parent),
ui(new Ui::ManualViewerDlg)
{
ui->setupUi(this);
ui->clockContainer->setParent(ui->upperStack);
setAttribute(Qt::WA_DeleteOnClose);
ui->ctrLbManual->setScaledContents(true);
//ui->ctrLbManual->setSizePolicy(QSizePolicy::);
QPixmap image("/prime/manual/manual-15.png");
int w = ui->ctrLbManual->width();
int h = ui->ctrLbManual->height();
ui->ctrLbManual->setPixmap(image);
//ui->ctrLbManual->setPixmap(image.scaled(w,h,Qt::IgnoreAspectRatio));
}
ManualViewerDlg::~ManualViewerDlg()
{
delete ui;
}
void ManualViewerDlg::on_backButton_clicked()
{
deleteLater();
}