Issue #116: Improve search bar (rembember searched text, allow scroll and zoom)

This commit is contained in:
Jakub Melka
2023-12-02 12:10:50 +01:00
parent 1c5c7da5ba
commit a892c192fc
3 changed files with 80 additions and 4 deletions

View File

@@ -46,6 +46,9 @@ public:
/// Returns page indices, which are currently displayed in the widget
virtual std::vector<PDFInteger> getCurrentPages() const = 0;
/// Runs event on this widget
virtual bool doEvent(QEvent* event) = 0;
};
class PDF4QTLIBSHARED_EXPORT PDFWidget : public QWidget
@@ -138,6 +141,7 @@ public:
virtual QSize minimumSizeHint() const override;
virtual QWidget* getWidget() override { return this; }
virtual bool doEvent(QEvent* event) override { return this->event(event); }
protected:
virtual bool event(QEvent* event) override;