diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-14 16:43:04 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-14 14:18:12 +0100 |
| commit | fd190163feaf80537c6d5ab38f69b19dd41ff899 (patch) | |
| tree | 22edae7d8caa5b1c0f845aef7b863099b958671c /src/browsertab.hpp | |
| parent | 49e78d5338e274a28b51b60776c903234d7046cc (diff) | |
| download | kristall-fd190163feaf80537c6d5ab38f69b19dd41ff899.tar.gz | |
BrowserTab: finding quotations now works for all characters
Since #150, when typographer quotes were enabled, searching for text with quotation marks using the searchbox was made slightly more difficult as the search pattern would not match each of the different quotation mark types. This patch addresses this by using a regex which contains the search query, and creates a pattern that matches the various quote types.
Diffstat (limited to 'src/browsertab.hpp')
| -rw-r--r-- | src/browsertab.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/browsertab.hpp b/src/browsertab.hpp index 4b5958a..bce1f76 100644 --- a/src/browsertab.hpp +++ b/src/browsertab.hpp @@ -189,6 +189,8 @@ private: bool enableClientCertificate(CryptoIdentity const & ident); void disableClientCertificate(); + bool searchBoxFind(QString text, bool backward=false); + protected: void resizeEvent(QResizeEvent * event); |
