pdf previews: set tooltip showing documents path
This commit is contained in:
parent
897b6d03a5
commit
f975a40ddd
@ -116,6 +116,7 @@ void MainWindow::pdfPreviewReceived(PdfPreview preview)
|
|||||||
{
|
{
|
||||||
ClickLabel *label = new ClickLabel();
|
ClickLabel *label = new ClickLabel();
|
||||||
label->setPixmap(QPixmap::fromImage(preview.previewImage));
|
label->setPixmap(QPixmap::fromImage(preview.previewImage));
|
||||||
|
label->setToolTip(preview.documentPath);
|
||||||
ui->scrollAreaWidgetContents->layout()->addWidget(label);
|
ui->scrollAreaWidgetContents->layout()->addWidget(label);
|
||||||
connect(label, &ClickLabel::clicked, [=]() {
|
connect(label, &ClickLabel::clicked, [=]() {
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
|
Loading…
Reference in New Issue
Block a user