Commit Graph

110 Commits

Author SHA1 Message Date
guopengfei b975956ff0 build: update debian/control debian/changelog 2024-01-26 17:47:44 +08:00
wangyan 6af35411a5 Chore: control文件中去掉libkysdk-system-dev依赖项 2024-01-26 15:01:54 +08:00
wangyan 94e07af90f Fix: 移除依赖libkysdk-system的相关功能 2024-01-26 15:01:14 +08:00
yan wang b73dd6a8bf Chore: 修改control文件中sdk包的依赖 2024-01-19 15:02:05 +08:00
yan wang 539469695a Chore: update changelog to 4.0.0.0-2 2024-01-19 14:19:07 +08:00
yan wang 1cbc73f613 Fix: update copyright 2024-01-18 11:42:23 +08:00
yan wang 011edcd406 Chore: 修复intian检查的错误和警告 2024-01-18 11:42:07 +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
Wei Wei bf3300302b 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-04 14:59:25 +08:00
Wei Wei d2bf0dae93 feat(touchscreen): add bury data logging points on AutoSwitchTabletModeButton 2023-09-04 14:59:15 +08:00
Wei Wei 2cc30f38c7 fix: scroll bar appears when zoomed at 125%
bug: 176175
we should not add spacing between label and combobox
but add stretch
2023-09-04 14:59:03 +08:00
Wei Wei 8932c577c2 chore: remove macro WAYLAND_ENV 2023-09-04 14:58:52 +08:00
Wei Wei d5b7b2b7f6 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
2023-09-04 14:58:42 +08:00
Wei Wei 0737f8eb94 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.
2023-09-04 14:58:32 +08:00
wangyan a01ef96383 Feat:控制面板触摸屏界面支持区分大屏和平板 2023-09-04 14:57:56 +08:00
Wei Wei 0f8e7c2c97 chore: add License for manpage 2023-08-02 16:27:00 +08:00
amphetamineWei 287f5c7bab
!17 add manpages
Merge pull request !17 from amphetamineWei/upstream
2023-08-01 02:24:45 +00:00
Wei Wei fe262a2f88 chore: add manpages 2023-08-01 10:13:44 +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