Commit graph

366 commits

Author SHA1 Message Date
shenleban tongying a16e560c8f
opt: replace some inefficient uses of QUrlQuery
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
2024-11-28 15:50:35 -05:00
shenleban tongying a1b3d76f9c
refactor: remove DataCommitter interface from QHotkeyApplication
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-26 07:41:46 +00:00
shenleban tongying 7eb06480e4
refactor: default to Qt Multimedia and delete default player shenanigans
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-25 19:54:31 -05:00
shenleban tongying 76b81e29a2
refactor: consistently rename all Edit->Dictionaries -> ui files 2024-11-25 22:39:02 +00:00
shenleban tongying 81e5103db4 clean: delete a non-existential "welcome tab" widget
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
2024-11-24 06:13:32 -05:00
shenleban tongying f1e158578f refactor: use standard string types and merge string namespaces to Text 2024-11-23 08:15:43 -05:00
shenleban tongying abeacef13d
clean: delete unused and empty builtin qt-style.css for macOS/Linux
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-23 08:41:00 +00:00
shenleban tongying 5406b3022a
dev: generally improve cmake build script
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-22 16:50:55 -05:00
shenleban tongying 76aaed116b
clean: delete gddebug 2024-11-21 12:17:03 -05:00
atauzki 2d6e2a85ee
feat: Windows, use Fusion only when dark mode applied
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-19 12:41:13 +00:00
shenleban tongying bd13598cc2
refactor: move internalpayerbackend out of config.cc to src/audio
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-15 20:31:36 -05:00
shenleban tongying c5d682c993
clean: fix some issues found by the code analysis of Visual Studio
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
2024-11-14 12:24:46 +00:00
shenleban tongying beef6dd138 clean: delete most Qt5 & <=6.3 conditional compiled code (QT_VERSION)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-14 00:07:15 -05:00
shenleban tongying c8af0450f1 clean: remove redundant gd::toWString 2024-11-12 19:32:13 -05:00
shenleban tongying 608016208b
disable more staffs related to macOS trayicon -> dock icon
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-11 07:53:10 +00:00
shenleban tongying 1e3b22ebd0 fix: macOS -> replace the tray icon with a dock menu 2024-11-11 02:32:27 -05:00
shenleban tongying 720f66c781 clean: make toggleMainWindow reasonable
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-11 00:18:02 -05:00
shenleban tongying acbfef0870 opt: don't focus on the main window if word comes from headword dialog 2024-11-11 00:18:02 -05:00
shenleban tongying fb48f66370 move audio files to src/audio
a
2024-11-10 17:39:43 -05:00
xiaoyifang dcc4579544
Merge pull request #1927 from xiaoyifang/opt/group-empty-name
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
opt: Group struct default constructor only invoked with empty string
2024-11-08 20:59:40 +08:00
xiaoyifang 081cba6b23 opt: Group struct default constructor only invoked with empty string 2024-11-08 20:49:55 +08:00
xiaoyifang 59f9b3d04f opt: dictionary tab switch show blank widget when source changed 2024-11-08 20:48:31 +08:00
shenleban tongying 618310f772
clean: just use #pragma once
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-06 22:53:04 -05:00
shenleban tongying 70d21d7eca opt: revise QKeySequenceEdit usages
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
* set Maximum length of global shortcuts to 2
* set Default to something that can be set by user
2024-11-06 15:47:03 -05:00
xiaoyifang 8d0859b932
Merge pull request #1906 from xiaoyifang/opt/articleview-loadfinish
opt: rearrange some code execution order
2024-11-06 17:49:28 +08:00
shenleban tongying 349fcb6628
clean: fix all globalPosition deprecations to stop related warnings (#1911) 2024-11-06 09:11:07 +00:00
xiaoyifang 285a0d8882
fix: remove some tabText() in groupWidget when rename group (#1897)
* fix: remove some tabText() in groupWidget rename group

* Update src/ui/groups_widgets.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-11-06 14:10:25 +08:00
shenleban tongying 673911b1c5
feat: auto dark reader mode that sync with system theme 2024-11-05 23:39:08 -05:00
shenleban tongying b6fa66df92
refactor: prepare config code to implement auto dark (reader) mode
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-06 03:27:19 +00:00
xiaoyifang 2f48993594 opt: rearrange some code execution order 2024-11-06 10:11:21 +08:00
shenleban tongying 6efdb09b1a clean: add override to satisfy clang's Winconsistent-missing-override
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-05 17:27:15 -05:00
xiaoyifang d4cc838652
opt: move special GroupIDs to a seperate enum (#1900)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
* opt: move groupid to a seperate namespace

* opt: move groupid to a seperate namespace

* Update src/config.hh

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

---------

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
2024-11-05 13:51:53 +08:00
xiaoyifang 1a25090bba opt: remove dictionary website extra word placeholders 2024-11-02 14:14:39 +08:00
xiaoyifang 3909b59d9f
opt: refactor code in articleview (#1888)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
refactor code 

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-01 18:02:06 +08:00
xiaoyifang 6b33178829
opt: extract GroupBackup structure to store the old group info (#1883)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
* opt: backup group info

* opt: remove updateNames condtion

* opt: rename variable origCfg to a more friendly name

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-01 10:52:45 +08:00
xiaoyifang 89ba441b35
opt: unify the small large icon actions (#1879)
* opt: unify the small large icon actions
2024-10-28 22:02:18 +08:00
xiaoyifang 132552b0a2
Merge pull request #1863 from xiaoyifang/fix/full-search-match-count
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
deploy_website / deploy (push) Has been cancelled
fix: full text search panel status label
2024-10-24 21:34:20 +08:00
xiaoyifang 01b9814760
opt: rewrite the logic of determine the existence of audio link (#1860)
* opt: rewrite the logic of determine the existence of audio link



---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-24 13:32:21 +00:00
Xiao Yi Fang cf057eae66 fix: full text search panel status label 2024-10-24 18:04:36 +08:00
xiaoyifang 66a45f975e
opt:optimize the openLink method (#1853)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
* opt: optimize the resourcedownload logic


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-23 21:29:28 +08:00
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 0146c72d99 Revert "clean: open and resave all .ui files to adapt Qt6 Designer's enum c…"
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
This reverts commit a5ce8dbcfd.
2024-10-21 20:14:36 -04:00
shenleban tongying a5ce8dbcfd
clean: open and resave all .ui files to adapt Qt6 Designer's enum changes
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-10-18 03:29:06 +00:00
shenleban tongying 9f13188973
clean: simplify loadDictionaries & Initializing dialog's showInitialy parameter (#1833) 2024-10-17 23:08:20 -04:00
shenleban tongying ef57526762
fix: wrong lifetime of the connection between searchInPageAction <> openSearch
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-10-12 13:41:03 +00:00