Commit Graph

110 Commits

Author SHA1 Message Date
wangyan 8b4eaac0a8 Feat:插件支持维吾尔语 2024-01-23 15:27:46 +08:00
wangyan 12233ca9e5 Feat: 插件支持哈萨克语 2024-01-23 15:27:46 +08:00
Wei Wei 7a1db09557 fix: if XInputExtension isn't present, hasTouchpadOnX11() should return false
hasTouchpadOnX11() return false when cann't find TouchPad from XInput
so if XInputExtension isn't present, hasTouchpadOnX11() should return false
not true
2024-01-23 14:53:21 +08:00
wangyan e6590a0499 Fix:bug#205080 解决插拔触摸屏控制面板触摸屏插件显示不正常问题 2024-01-23 14:52:47 +08:00
wangyan f5cfa1be65 Fix:bug#205017 修改英文模式下触控板文字首字母为大写 2024-01-23 14:51:56 +08:00
wangyan 9c7b6f1e79 Feat: 新增触控板开关选项 2024-01-23 14:51:37 +08:00
wangyan b1f1aa88e7 Feat:增加界面支持繁体字功能 2023-10-31 15:09:11 +08:00
wangyan 021d387a05 Fix:bug#191687,#191688 解决界面图标显示异常的问题 2023-10-31 15:08:56 +08:00
wangyan 4a9e3fe689 Fix:去掉无用函数,优化代码逻辑 2023-10-31 15:08:36 +08:00
yan wang 66fe1b2b23 Fix:删掉.qm文件,解决仓库传包失败问题 2023-09-07 09:49:40 +08:00
wangyan ee689eeb67 Fix:bug#190156,#190160 修复英文模式下,标题首字母非大写问题 2023-09-07 09:49:30 +08:00
Wei Wei 44d0dc9dd8 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-07 09:49:19 +08:00
Wei Wei adaf62f296 chore: encapsulates the initialization of the UI 2023-09-07 09:49:09 +08:00
Wei Wei 0f651bae45 chore: rename ICONNAME to VIDEO_ICON_NAME 2023-09-07 09:49:01 +08:00
Wei Wei 1643c262ff chore: add unnamed namespace for limit the scope of the function 2023-09-07 09:48:50 +08:00
Wei Wei 769d651679 chore: remove useless connect of style gsetting 2023-09-07 09:48:41 +08:00
wangyan 5ae52737c1 Feat:新增蒙古文翻译文件 2023-09-07 09:48:30 +08:00
Wei Wei 3d88a54943 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-07 09:48:20 +08:00
Wei Wei f9540a89ef chore: use initialize the list replace keyword new 2023-09-07 09:48:11 +08:00
Wei Wei 0e3fac490c 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-07 09:48:02 +08:00
Wei Wei 8501fb59db chore: remove useless member var
The layout member of GestureWidget is needn't, we can remove them
by change init
2023-09-07 09:47:50 +08:00
Wei Wei 8f2e9233a2 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-07 09:47:41 +08:00
Wei Wei 128e933c6d chore: remove warning about initialization order 2023-09-07 09:47:31 +08:00
Wei Wei 574236863b chore: rename some member and remove useless member of Touchpad 2023-09-07 09:47:22 +08:00
Wei Wei b47ebef387 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-07 09:47:11 +08:00
Wei Wei d6427a8274 chore: change mVlayout from member to local var 2023-09-07 09:47:00 +08:00
Wei Wei 60417ad4c9 refactor: modularize the construction of the more gesture button 2023-09-07 09:46:50 +08:00
Wei Wei 830eaf9251 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-07 09:46:39 +08:00
Wei Wei a44d7a48b2 chore: rename some variable of TouchScreen 2023-09-07 09:46:27 +08:00
Wei Wei d8dcb2bce8 chore: pass-by-reference-to-const instead of pass-by-value 2023-09-07 09:46:05 +08:00
Wei Wei 0f9a70f61e refactor: remove m_gestureArray of TouchScreen 2023-09-07 09:45:44 +08:00
Wei Wei be6d61dc1c refactor: put TouchScreen-related classes together 2023-09-07 09:45:34 +08:00
Wei Wei ff5159734b refactor: optimize the code for the create title section 2023-09-07 09:45:24 +08:00
Wei Wei fc68df28bd refactor: optimize the code for the createTouchPadSettingWidget section 2023-09-07 09:45:15 +08:00
Wei Wei 8cb73c26d0 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-07 09:44:52 +08:00
Wei Wei 2f93bd9bb6 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-07 09:44:26 +08:00
Wei Wei cca13049f4 chore: move function about os version information to the common
the ui module should not care how to get current os version info,
so we move the function about os info to settings-common.
2023-09-07 09:44:10 +08:00
Wei Wei c64a17daec feat(touchscreen): add bury data logging points on AutoSwitchTabletModeButton 2023-09-07 09:43:41 +08:00
Wei Wei d2ca087949 fix: scroll bar appears when zoomed at 125%
bug: 176175
we should not add spacing between label and combobox
but add stretch
2023-09-07 09:43:21 +08:00
Wei Wei d9a9b10c67 chore: remove macro WAYLAND_ENV 2023-09-07 09:43:06 +08:00
Wei Wei 83daa76499 fix: text of tooltip difficult to see in light theme
setStyleSheet also set style of widget's children by default,
so the class must be specified at setup time

(cherry picked from commit 1a6a0857cf0f64854d10bd692e3f9bb616a8f5b4)
2023-06-14 11:31:19 +08:00
Wei Wei cdebea82a1 fix: don't support dynamic display in xwayland
In xwayland, if exits touch device, xwayland will create a virtual touch device of xinput,
if we unplug the touch screen, the virtual touch device will not be removed but disable,
so we need monitor device enable/disable event.

(cherry picked from commit 980cc1378de2482cd87725fc3c8c20f28fa93527)
2023-06-14 11:30:54 +08:00
wangyan 20167573e6 Feat:控制面板触摸屏界面支持区分大屏和平板
(cherry picked from commit 340977a5da78dfe38bf197d68b2564b6d6df0489)
2023-06-14 11:30:23 +08:00
yan wang 9f38a24d00 Fix: 源码文件添加版权声明 2023-04-19 10:47:52 +08:00
wangyan828 944861e655 add LICENSE.
Signed-off-by: wangyan828 <wangyan@kylinos.cn>
2023-04-19 10:47:36 +08:00
yan wang 702a8e47c1 Fix:bug#164917 触控板在藏文模式下出现左右滑动条问题 2023-04-03 16:35:12 +08:00
Wei Wei e7d66e28fd fix: tooltip is highlight because qss of parent
bug: 162709 【触摸屏】最大号字体下鼠标点击选中任一手势后,移入省略文字后tips提示文字看不清
detail: tooltip highlight because don't designated type when tooltip's parent widget
setStyleSheet.
2023-04-03 16:34:55 +08:00
Wei Wei e71db29a12 fix: can not show touchpad page in huawei environment
bug: 158853
detail: The QPA used on the huawei environment is xcb instead of wayland,
so environmental information cannot be obtained correctly.
2023-04-03 16:34:33 +08:00
wangyan 7ce62545ad Fix: Removes single-finger slide function guidance #158364 2023-04-03 16:34:16 +08:00
yan wang 19a8ee7699 Fix:bug#155336 【控制面板】触控板界面鼠标滚轮控制滑动条界面不生效 2023-04-03 16:33:43 +08:00