From f975a40ddd58252d4e018c0587e26196ae45b1b0 Mon Sep 17 00:00:00 2001 From: Albert S Date: Tue, 30 Apr 2019 12:30:29 +0200 Subject: [PATCH] pdf previews: set tooltip showing documents path --- gui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 09f02a2..1f7c67c 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -116,6 +116,7 @@ void MainWindow::pdfPreviewReceived(PdfPreview preview) { ClickLabel *label = new ClickLabel(); label->setPixmap(QPixmap::fromImage(preview.previewImage)); + label->setToolTip(preview.documentPath); ui->scrollAreaWidgetContents->layout()->addWidget(label); connect(label, &ClickLabel::clicked, [=]() { QSettings settings;