mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
Show recent images when it gains content
This commit is contained in:
parent
3c6ebac826
commit
91b03f860a
|
@ -274,6 +274,10 @@ std::optional<SigningInformation> getCertificateAndPasswordForSigning(PageView *
|
|||
if (!haveRecent) {
|
||||
dialog.ui->recentBackgrounds->hide();
|
||||
dialog.ui->recentLabel->hide();
|
||||
QObject::connect(&imagesModel, &QAbstractItemModel::rowsInserted, &dialog, [&dialog]() {
|
||||
dialog.ui->recentBackgrounds->show();
|
||||
dialog.ui->recentLabel->show();
|
||||
});
|
||||
}
|
||||
|
||||
QObject::connect(dialog.ui->backgroundInput, &QLineEdit::textChanged, &dialog, [recentModel = &imagesModel, selectionModel = dialog.ui->recentBackgrounds->selectionModel()](const QString &newText) {
|
||||
|
|
Loading…
Reference in a new issue