Commit Graph

127 Commits

Author SHA1 Message Date
wangyan 7be36d3305 Feat:实现平板模式禁用时,插拔键盘自动切换平板模式功能隐藏 2024-01-22 16:57:37 +08:00
wangyan 3d69eef18a Chore: update changelog to 4.0.1.0-ok2.3 2024-01-12 11:17:34 +08:00
wangyan bac6c9f850 Fix:修改平板模式禁用按钮文案“隐藏“为“显示” 2024-01-12 11:14:35 +08:00
wangyan c9b2ca5623 Chore: update changelog to 4.0.1.0-ok2.2 2024-01-10 10:14:29 +08:00
wangyan a719186008 Fix: 修改启用/禁用平板模式按钮文案 2024-01-10 10:09:44 +08:00
yan wang ba39fdebef Chore: update changelog to 4.0.1.0-ok2.1 2024-01-05 09:55:48 +08:00
yan wang cc07c75928 Fix:(Chore) tabletmodewidget.cpp/.h文件中添加版权信息 2024-01-05 09:27:36 +08:00
wangyan fe37bd3981 Chore: update changelog to 4.0.1.0-ok2.0 2024-01-04 17:12:25 +08:00
wangyan 9ef59a7291 Feat: 触摸屏插件增加平板模式启用/禁用开关功能 2024-01-04 16:31:35 +08:00
yan wang 7911fd5656 Chore: update changelog to 4.0.1.0-ok1.1 2023-11-23 11:13:33 +08:00
yan wang cbc9204ba4 Chore: add libkysdk-sysinfo-dev to control 2023-11-23 11:10:58 +08:00
yan wang 97ff819f18 Chore: update changelog to 4.0.1.0-ok1.0 2023-11-03 17:30:10 +08:00
wangyan 93b80ca483 Feat: 插件支持法语 2023-11-01 15:04:42 +08:00
wangyan 9919b16b60 Feat:插件支持西班牙语 2023-11-01 14:51:12 +08:00
wangyan ccf5c703dc Feat: 插件支持德语 2023-11-01 14:30:20 +08:00
wangyan e66a5c75ed Feat:插件支持柯尔克孜语 2023-11-01 14:07:23 +08:00
wangyan f21ab45b8c Feat:插件支持维吾尔语 2023-11-01 11:11:46 +08:00
wangyan c6b7f20fa1 Feat: 插件支持哈萨克语 2023-11-01 09:55:50 +08:00
yan wang 738a95dced change format to native 2023-10-31 16:44:20 +08:00
yan wang 1f4bd961fe chore: add debian 2023-10-31 16:34:47 +08:00
wangyan 6250065908 Feat:增加界面支持繁体字功能 2023-10-31 15:24:18 +08:00
wangyan e84a5aefed Fix:bug#191687,#191688 解决界面图标显示异常的问题 2023-10-31 15:24:09 +08:00
wangyan 8b2cda27e2 Fix:去掉无用函数,优化代码逻辑 2023-10-31 15:23:56 +08:00
yan wang 3ddcaf0678 Fix:删掉.qm文件,解决仓库传包失败问题 2023-10-31 15:23:39 +08:00
wangyan e1fb67da83 Fix:bug#190156,#190160 修复英文模式下,标题首字母非大写问题 2023-09-04 15:03:35 +08:00
Wei Wei ab9859944f fix: too much CPU usage at runtime
bug: 186930, 186938
In the past, in order for PlayIcon to be correctly highlighted with the theme,
the pixmap was reset according to the current state each time it was drawn.
However, this is a very wrong choice, it's causesed CPU usage to increase.

Pixmap should be updated when the checked state or theme changes.
The update rules for pixMap are:
    1. System style change
    2. Icon theme change
    3. The checked state changed
2023-09-04 15:03:14 +08:00
Wei Wei af14b51a62 chore: encapsulates the initialization of the UI 2023-09-04 15:03:04 +08:00
Wei Wei cd8b1b7e40 chore: rename ICONNAME to VIDEO_ICON_NAME 2023-09-04 15:02:56 +08:00
Wei Wei 49e46bb513 chore: add unnamed namespace for limit the scope of the function 2023-09-04 15:02:48 +08:00
Wei Wei 91fdd838d1 chore: remove useless connect of style gsetting 2023-09-04 15:02:39 +08:00
wangyan 79e4197c51 Feat:新增蒙古文翻译文件 2023-09-04 15:02:30 +08:00
Wei Wei a2c1c65982 chore: move monitor icon theme to separate func for reduce indentation
At the same time, rename global var IconName to ICONNAME, and clean func GestureWidget::minimumSizeHint()
2023-09-04 15:02:20 +08:00
Wei Wei 6d04ae617a chore: use initialize the list replace keyword new 2023-09-04 15:02:11 +08:00
Wei Wei d1f9f9f1e2 chore: move monitor icon theme change to GestureWidget
In the past, touchpad plugin and touchscreen plugin all monitor icon theme
change for update icon of GestureWidget, they shouldn't care it, GestureWidget
should monitor it by self.
2023-09-04 15:02:02 +08:00
Wei Wei a67e0a6695 chore: remove useless member var
The layout member of GestureWidget is needn't, we can remove them
by change init
2023-09-04 15:01:52 +08:00
Wei Wei abc9c26086 fix: word of GestureWidget can't full display when useing large font size
bug: 168990 168946 155293 155228
The GestureWidget inherits QPushButton for style of three-state,
and we add a layout with two label in the native QPushButton.
When the font size bigger, GestureWidget‘s sizeHint will not bigger
with font size change, so we overwrite the sizeHint().
Then by design, our GestureWidget requires a height of 64 by default,
but if we use minimumHeight, the GestureWidget is set to the
minimum height by default when it is placed in the scrollarea, so
we set the default height of the GestureWidget by override
minimumSizeHint().
2023-09-04 15:01:43 +08:00
Wei Wei 403654e344 chore: remove warning about initialization order 2023-09-04 15:01:35 +08:00
Wei Wei c2ff0b55b8 chore: rename some member and remove useless member of Touchpad 2023-09-04 15:01:25 +08:00
Wei Wei 65783e7878 refactor: put the code that determines the existence of a Touchpad in a separate class
Touchpad is a QtPlugin class, it shouldn't care how to find touchpad device,
so move the code about device to a other class.
At the same time, optimize the file include of files about touchpad settings.
2023-09-04 15:01:16 +08:00
Wei Wei 7d101d01dc chore: change mVlayout from member to local var 2023-09-04 15:01:07 +08:00
Wei Wei e793edbfbd refactor: modularize the construction of the more gesture button 2023-09-04 15:00:58 +08:00
Wei Wei abe277e8e1 refactor: modularize the construction of the gesture preview
in the past, InitUI() took on too many responsibilities, that's why we've modularized each of these parts
to make it more consistent with the single responsibility principle and to increase readability.
the location of some strings was changed, so we updated the translation file.
2023-09-04 15:00:48 +08:00
Wei Wei 03fbb8f21f chore: rename some variable of TouchScreen 2023-09-04 15:00:40 +08:00
Wei Wei 34293f6edd chore: pass-by-reference-to-const instead of pass-by-value 2023-09-04 15:00:32 +08:00
Wei Wei 532c174200 refactor: remove m_gestureArray of TouchScreen 2023-09-04 15:00:23 +08:00
Wei Wei fcb2489e0f refactor: put TouchScreen-related classes together 2023-09-04 15:00:14 +08:00
Wei Wei 35d841b921 refactor: optimize the code for the create title section 2023-09-04 15:00:04 +08:00
Wei Wei c135c49115 refactor: optimize the code for the createTouchPadSettingWidget section 2023-09-04 14:59:55 +08:00
Wei Wei e01083469f feat(touchpad): add bury data logging points on all operates
the function ukcc::UkccCommon::buriedSettings will save data,
we need call it when all buttons, sliders and comboxes were
clicked or checked
2023-09-04 14:59:44 +08:00
Wei Wei 06e6b2e2ca chore: replace header files by forward declaration
some x11 libs provide anonymity struct which can't
forward declaration, so we use the TouchPadX11Helper
encapsulates the x11 interface for isolate the impact
of these APIs on other parts.
2023-09-04 14:59:35 +08:00