Commit graph

88 commits

Author SHA1 Message Date
xiaoyifang 426950fc10
opt: optimize the audio auto pronounciation logic (#1846)
* opt: optimize the audio play logic
2024-10-23 20:14:11 +08:00
autofix-ci[bot] 7bcb2372b9 [autofix.ci] apply automated fixes 2024-10-23 11:07:31 +08:00
Xiao Yi Fang 36f181547f fix: even loadfinised=false, the cursor will also have to be unset 2024-10-23 11:07:31 +08:00
xiaoyifang 245cb10880
opt: when the marked word is CJK / Han, mark it partially (#1852)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
* opt: when the marked word is Chinese,mark it partially

* [autofix.ci] apply automated fixes

* Update src/ui/articleview.cc

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
2024-10-23 00:33:44 +00:00
Xiao Yi Fang 389471f5fa opt: remove unused parameter 2024-10-22 18:06:43 +08:00
xiaoyifang 60adc6ef75
opt: remove audio search logic in the current group (#1851)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
* opt: remove audio search logic in the current group
2024-10-22 14:15:17 +08:00
shenleban tongying a11c9e3aec clean: mass apply clang-tidy's readability-braces-around-statements 2024-10-10 03:21:27 -04:00
shenleban tongying 90d55d7392 clean: deprecated QVariant::type 2024-10-06 17:24:36 -04:00
Xiao Yi Fang 51701ce4aa opt: double click in welcome page 2024-08-20 10:48:31 +08:00
Xiao Yi Fang dc4647069d opt: webview history navigation 2024-08-12 16:53:47 +08:00
xiaoyifang 3279fe8b07
opt: fulltext next navigation optimization (#1718)
* opt: fulltext dialog navigation optimization.

The fulltext dialog navigation (next,previous) use webview's findText,try to find the longest word for navigation
2024-08-09 11:47:46 +08:00
Xiao Yi Fang b8f49ec3dc opt:mark.js only highlight exact words 2024-08-06 10:34:02 +08:00
xiaoyifang cd58059695
fix:QCheckBox signal (#1705)
* fix:QCheckBox signal

* fix:QCheckBox signal
2024-07-23 17:57:57 +08:00
xiaoyifang 06d4b62b67
opt: findtext casesensitivity (#1698)
* opt: reset the selection results

* opt: remove the existed highlight when no match

* [autofix.ci] apply automated fixes

* opt: remove the existed highlight when no match

* opt: remove the existed highlight when no match

* opt: code minor optimization

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-18 13:33:49 +08:00
xiaoyifang 7669316bcd
opt: do not show dictionary menu when set the dictionary count=0 (#1652)
* opt: do not show dictionary menu when set the dictionary count=0

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-08 17:51:51 +08:00
xiaoyifang 297795a654
fix: refresh webview when changed darkreader mode (#1641)
* fix: refresh webview when changed darkreader mode

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-05 10:55:08 +08:00
xiaoyifang 932b88f743
opt: dictionarygroup refactor in articleview (#1625)
* opt: refactor dictionary logic to seperate class


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-03 15:16:53 +08:00
xiaoyifang ddb9203e34
fix: full text search navigation panel (#1623)
* fix: full text search navigation panel

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-01 22:51:57 +08:00
xiaoyifang d30de48fa8
opt: suppress url title (#1619)
* opt: suppress url title

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-27 18:01:15 +08:00
xiaoyifang 585866f92a
fix: fts search ,highlight mark (#1621)
* fix:mark the searched terms

* fix:mark the searched terms

* fix:mark the searched terms
2024-06-27 18:00:06 +08:00
YiFang Xiao 2b9d17251b fix: articleview mainwindow ,fulltextsearch remove QRegExp 2024-06-23 12:47:41 +08:00
Xiao Yi Fang a33dbc422e opt: remove webkit specific code 2024-06-21 10:00:52 +08:00
YiFang Xiao 0a8ff8b27b fix: Ctrl+F does not work in scanpopup dialog 2024-06-20 21:27:03 +08:00
xiaoyifang 296251afad
fix: links in webview got focused on default. (#1589)
* fix: links in webview got focused on default.

fix #1581

* fix: links in webview got focused on default.

fix #1581
2024-06-15 21:20:23 +08:00
YiFang Xiao 1374905b30 opt: searchPanel hide at start 2024-06-14 20:20:02 +08:00
Xiao Yi Fang 3478c2fe1f opt: fts search dialog does not use caseSensitive option currently 2024-06-14 17:38:46 +08:00
Xiao Yi Fang 585d547d28 opt: erase the need to use extra variable to hold the ftsSearchPanel state 2024-06-14 17:36:05 +08:00
Xiao Yi Fang 39b207fa78 opt: erase the need to use extra variable to hold the searchPanel state 2024-06-14 17:32:16 +08:00
Xiao Yi Fang 3b2de95ff7 opt: remove Control property [noResult] 2024-06-14 17:12:43 +08:00
Xiao Yi Fang 642f3c6ac8 opt: string empty check 2024-06-14 17:03:24 +08:00
Xiao Yi Fang d9b9493b2f opt: remove useless paramater [restart] 2024-06-14 16:52:13 +08:00
Xiao Yi Fang 0f3ce0ec4d opt: remove fts search related selected text 2024-06-14 16:44:51 +08:00
Xiao Yi Fang 4bb4ff38c9 opt: Ctrl+F page search remove highlight checkbox 2024-06-14 16:33:39 +08:00
YiFang Xiao 70d31a8f4b opt: tab icon change logic rewrite
fix #1554
2024-06-13 16:51:03 +08:00
YiFang Xiao 14e2f8661d fix: Scrollbar does not remember position
fix #1555
2024-06-12 22:20:41 +08:00
xiaoyifang 7bbab2a759
Merge pull request #1559 from xiaoyifang/opt/articleview-group
opt: remove the argument which pass the GroupComboBox to the ArticleV…
2024-06-12 20:11:45 +08:00
xiaoyifang 26bdf52c5e
Update src/ui/articleview.cc
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
2024-06-12 13:35:19 +08:00
xiaoyifang 998a97a031
Update src/ui/articleview.cc
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
2024-06-12 13:35:02 +08:00
Xiao Yi Fang 0b5e2f140d code smell: remove warning 2024-06-12 10:13:29 +08:00
Xiao Yi Fang 93b0da83fc opt: remove the argument which pass the GroupComboBox to the ArticleView class 2024-06-12 09:32:04 +08:00
shenleban tongying 57a5c52620 clean: remove unnecessary passing of openSearchAction to ArticleView's ctor 2024-03-21 19:09:05 -04:00
xiaoyifang 728fa4850c
Merge pull request #1425 from shenlebantongying/fix/mac-open-in-systemviewer
fix: "Open Image in System Viewer" doesn't work on macOS
2024-03-20 13:19:03 +08:00
shenleban tongying 0b61888bc7 fix: Open Image in System Viewer doesn't work on macOS 2024-03-20 00:46:40 -04:00
shenleban tongying 483381414f
clean: remove macOS unused code related to gestures (#1421)
* clean: remove macOS unused code related to gestures

We prefer native gestures and disabled gesture.cc long time ago, those are unused

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-20 11:11:35 +08:00
shenleban tongying b9e14f806c
fix: CMake problems found by the openBSD package (#1422)
* fix: CMake problems found by openBSD package

* remove unused WITH_XAPIAN option
* don't link Qt TTS if not requested

* fix: address CMake problems found by openBSD package

* remove unused WITH_XAPIAN option
* don't link Qt TTS if not requested
* Disable some code when TTS is not requested

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-20 11:08:17 +08:00
shenleban tongying 32391bda43
fix: reduce darkreader mode white flash further by using QWebEnginePage::setBackgroundColor() (for Qt6.6.3+) (#1406)
* fix: reduce darkreader mode white flash further by using
QWebEnginePage::setBackgroundColor() (for Qt6.6.3+)

In previous Qt6.x versions, this function only set background once and
become invalidated if reload a page.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-27 18:07:00 +08:00
YiFang Xiao 54808cd03f fix: ctrl+v in Welcome page will result a wrong search 2024-01-26 16:52:27 +08:00
YiFang Xiao 11af19de3b fix: critial error throw. 2024-01-10 09:57:31 +08:00
xiaoyifang fc62d115f3
Merge pull request #1311 from xiaoyifang/opt/highlight-term
opt: mark exact word
2023-12-06 15:23:30 +08:00
YiFang Xiao 923a46217b opt: mark exact word 2023-12-06 14:29:59 +08:00