2012-09-17 18:08:23 -04:00
|
|
|
#include "PhotoCommentItem.h"
|
|
|
|
#include "ui_PhotoCommentItem.h"
|
|
|
|
|
2012-09-25 17:04:04 -04:00
|
|
|
PhotoCommentItem::PhotoCommentItem(const RsPhotoComment& comment, QWidget *parent):
|
2012-09-17 18:08:23 -04:00
|
|
|
QWidget(parent),
|
2012-09-25 17:04:04 -04:00
|
|
|
ui(new Ui::PhotoCommentItem), mComment(comment)
|
2012-09-17 18:08:23 -04:00
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2012-09-25 17:04:04 -04:00
|
|
|
setUp();
|
2012-09-17 18:08:23 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
PhotoCommentItem::~PhotoCommentItem()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
2012-09-25 17:04:04 -04:00
|
|
|
|
|
|
|
const RsPhotoComment& PhotoCommentItem::getComment()
|
|
|
|
{
|
|
|
|
return mComment;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PhotoCommentItem::setUp()
|
|
|
|
{
|
|
|
|
ui->labelComment->setText(QString::fromStdString(mComment.mComment));
|
|
|
|
}
|