Skip to content

Commit c79770e

Browse files
authored
make grayscale options available for embedded viewer users (#3355)
1 parent 2bc30d6 commit c79770e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pdfviewer/PDFDocument.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -3382,6 +3382,7 @@ void PDFDocument::init(bool embedded)
33823382
//connect(actionInvertColors, SIGNAL(triggered()), pdfWidget, SLOT(update()));
33833383
conf->registerOption("Preview/Grayscale", &globalConfig->grayscale, false);
33843384
conf->linkOptionToObject(&globalConfig->grayscale, actionGrayscale);
3385+
pdfWidget->addAction(actionGrayscale); // add grayscale to widget context menu
33853386
//connect(actionGrayscale, SIGNAL(triggered()), pdfWidget, SLOT(update()));
33863387

33873388
if(!embedded){

0 commit comments

Comments
 (0)