File: pdfannotationdlg.cpp

package info (click to toggle)
texstudio 2.11.2%2Bdebian-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 41,292 kB
  • ctags: 12,405
  • sloc: cpp: 93,072; xml: 10,217; ansic: 4,153; sh: 145; makefile: 56
file content (22 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef NO_POPPLER_PREVIEW
#include "pdfannotationdlg.h"
#include "ui_pdfannotationdlg.h"
#include "poppler-annotation.h"
#include "pdfannotation.h"

PDFAnnotationDlg::PDFAnnotationDlg(QSharedPointer<Poppler::Annotation> annot, QWidget *parent) :
	QDialog(parent),
	ui(new Ui::PDFAnnotationDlg)
{
	ui->setupUi(this);
	ui->lbUser->setText(annot->author());
	ui->lbModDate->setText(annot->modificationDate().toString());
	ui->lbType->setText(PDFAnnotation::subTypeText(annot->subType()));
	ui->textEdit->setText(annot->contents());
}

PDFAnnotationDlg::~PDFAnnotationDlg()
{
	delete ui;
}
#endif