diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-21 20:13:42 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-23 11:31:33 +0100 |
| commit | 731dead13fbb19a5b283d981e0661f505289bb7e (patch) | |
| tree | 1c5a9995fcd3c94bdb5891dd8b330fa3bba58f4f /src/widgets/kristalltextbrowser.cpp | |
| parent | 195b5560ab1b39eb9d99815814e49f376bb4c571 (diff) | |
| download | kristall-731dead13fbb19a5b283d981e0661f505289bb7e.tar.gz | |
MainWindow: set tab tooltips
Diffstat (limited to 'src/widgets/kristalltextbrowser.cpp')
| -rw-r--r-- | src/widgets/kristalltextbrowser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/kristalltextbrowser.cpp b/src/widgets/kristalltextbrowser.cpp index 91b5846..e2c017b 100644 --- a/src/widgets/kristalltextbrowser.cpp +++ b/src/widgets/kristalltextbrowser.cpp @@ -111,7 +111,7 @@ void KristallTextBrowser::betterCopy() // as these quotes are usually an annoyance when copying text. // // There is a little trick here though: if a user selects a piece of text - // which consists only of whitespace and fancy quotes (or some punctuation: ,.), + // which consists only of whitespace and fancy quotes // the fancy quotes will be included in the copy. // // In all other cases the quotes will be replaced. This can be said to be @@ -124,7 +124,7 @@ void KristallTextBrowser::betterCopy() if (text.isEmpty()) return; // Check if text only consists of fancy quotes: - static const QRegularExpression REGEX_ONLY_QUOTES(R"(^[\s“”‘’,.]+$)", + static const QRegularExpression REGEX_ONLY_QUOTES(R"(^[\s“”‘’]+$)", QRegularExpression::CaseInsensitiveOption); if (text.contains(REGEX_ONLY_QUOTES)) { |
