add some function of reconstruciton
This commit is contained in:
38
Classes/DisplayPic.cpp
Normal file
38
Classes/DisplayPic.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#include "DisplayPic.h"
|
||||
|
||||
DisplayPic::DisplayPic(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
|
||||
}
|
||||
|
||||
DisplayPic::~DisplayPic()
|
||||
{
|
||||
}
|
||||
|
||||
void DisplayPic::setPicUrl(QString pic)
|
||||
{
|
||||
picUrl = pic;
|
||||
if(picUrl.isEmpty())
|
||||
{
|
||||
ui.label->setText("No Photo Taken");
|
||||
}else
|
||||
{
|
||||
ui.label->setPixmap(QPixmap(picUrl));
|
||||
}
|
||||
}
|
||||
|
||||
// È·¶¨
|
||||
void DisplayPic::on_pushButton_clicked()
|
||||
{
|
||||
emit getPicAction("confirmed");
|
||||
this->close();
|
||||
}
|
||||
|
||||
// È¡Ïû
|
||||
void DisplayPic::on_pushButton_2_clicked()
|
||||
{
|
||||
emit getPicAction("canceled");
|
||||
this->close();
|
||||
}
|
||||
Reference in New Issue
Block a user