20 setWindowTitle(title);
22 QVBoxLayout* layout =
new QVBoxLayout(
this);
24 QTextEdit* view =
new QTextEdit(
this);
25 view->setReadOnly(
true);
26 view->setText(report);
27 layout->addWidget(view);
29 QHBoxLayout* buttons =
new QHBoxLayout();
30 layout->addLayout(buttons);
32 QPushButton* copy =
new QPushButton(tr(
"Copy (HTML)"),
this);
33 buttons->addWidget(copy);
34 connect(copy, SIGNAL(clicked(
bool)),
this, SLOT(
copyClicked(
bool)));
36 QPushButton* close =
new QPushButton(tr(
"Close"),
this);
37 buttons->addWidget(close);
38 connect(close, SIGNAL(clicked(
bool)),
this, SLOT(
closeClicked(
bool)));
40 setSizeGripEnabled(
true);
45 QApplication::clipboard()->setText(
myReport);