yeshanshan
32d0f1ee53
fix: resolve Qt6 compatibility issues
...
1. Replace deprecated qAsConst with std::as_const for Qt6 compatibility
2. Update key sequence handling to use | operator instead of + for Qt6
3. Fix touch event handling for Qt6 API changes
4. Replace stateChanged with checkStateChanged for Qt6 checkbox signals
5. Add version checks for Qt6-specific API changes
6. Fix various other Qt6 deprecation warnings
These changes ensure the codebase works correctly with both Qt5 and
Qt6, addressing API changes and deprecations in Qt6 while maintaining
backward compatibility. Key technical changes include:
- Using Qt version checks for API differences
- Standardizing on newer APIs where possible
- Maintaining compatibility with both major Qt versions
fix: 解决Qt6兼容性问题
1. 使用std::as_const替代已弃用的qAsConst以兼容Qt6
2. 更新键序列处理,在Qt6中使用|运算符而非+
3. 修复Qt6中触摸事件处理的API变更
4. 将stateChanged替换为checkStateChanged以适配Qt6复选框信号
5. 添加Qt6特定API变更的版本检查
6. 修复其他Qt6弃用警告
这些修改确保代码库能正确工作在Qt5和Qt6环境下,解决了Qt6中的API变更和弃用
问题,同时保持向后兼容性。关键技术变更包括:
- 针对API差异使用Qt版本检查
- 尽可能标准化使用新API
- 保持对两个主要Qt版本的兼容性
2025-07-28 16:05:40 +08:00
Whale107
8ec72aeef9
chore: 新增进度条动效和一个新进度条类 ( #589 )
...
新增进度条动效和一个新进度条类
Log:
2024-09-23 06:50:04 +00:00
ck
2571caf0bc
feat: sidebar widget with blur widget behind
...
add a blur widget(behindwindowblend) behind sidebar widget
add a vline right of sidebar
2024-02-22 17:10:28 +08:00
heyuming
940ea4ef40
feat(others): support Qt6
...
Log: 适配Qt6
2023-06-19 13:18:51 +08:00
heyuming
637e3eb52a
feat(lib): support Qt6
...
Log:适配Qt6
2023-06-19 13:15:20 +08:00
heyuming
060450076f
feat(build): support Qt6
...
Log: 支持Qt6
2023-06-16 17:32:43 +08:00
wangfei
bb7bb1db80
chore: Add properties about license in dapplication interface
...
add properties about license feature in dapplication interface.
Log: Add properties about license
2023-05-17 16:42:01 +08:00
wangfei
cf93158b9e
chore: change the licenses of example
...
change the licenses of the example
Log: change the licences of the example
2023-05-12 17:36:45 +08:00
wangfei
f585d1f9df
feat: add license dialog widget
...
add dlicensedialog interface and function.
Log: add license dialog widget
2023-05-10 09:07:01 +08:00
YeShanShan
7692c1572e
feat: Deprecate DApplicationSettings
...
The feature has been moved to DGuiApplicationHelper in the
commit 19492cbfb71954a4939028b37ce66981d34e324e
2023-04-24 13:58:34 +08:00
wangyixue
89a20b8120
feat: add DMPRISControl example
...
Add example in collections for DMPRISControl widget.
2023-04-18 10:10:56 +08:00
wang fei
d0222e84fc
fix: modify listview for compact mode
...
In compact mode:
modify margins to margin(10, 6, 10, 6)
modify icon size to QSize(24, 24)
Log: modify listview in compact mode
Issue: https://github.com/linuxdeepin/dtkwidget/issues/324
Influence: compact mode
2023-03-24 11:14:54 +08:00
Ye ShanShan
3887d00daf
fix: Modify size style for toolbar
...
Adjust toolbar iconsize from 24 to 16.
Add example for toolbutton.
Log: 依赖qt5integration升级
Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-16 16:37:01 +08:00
YeShanShan
7a8cf71ff7
fix: Restore window's size for example
...
Restore window size
2023-03-16 10:38:51 +08:00
YeShanShan
6afbc61abe
fix: Modify style for example's titlebar
...
Clipping TitleBar control and modifing radius from 16 to DMainWindow's radius.
Issue: https://github.com/linuxdeepin/dtkwidget/issues/323
2023-03-16 10:38:29 +08:00
ck
5434c8ddc3
chore: hide custom toolbar in the example
...
Hide the custom toolbar section in the example
Log: none
2023-02-17 13:18:50 +08:00
ice
7dae3b34b3
fix: correct file name
...
examples/collections/org.deepin.dtkwiget.feature-display.json 文件名拼写错误
Log:
2023-02-07 12:24:00 +00:00
wangyixue
d6b55d4121
refactor(cmake): improve cmake and add new feature
...
* remove redundant "dtkwidget" in include directory;
* improve cmake, modify some variable names, use file() to collect
source files for scalability;
* add full target_link_libraries support.
Log: add full target_link_libraries support
Influence: all projects who include headers directly by path
2023-01-18 11:22:46 +08:00
ck
0386852043
feat: 自定义工具栏
...
1. 显示自定义工具栏;
2. 工具栏上调整控件位置;
3. 工具栏上添加和移除控件;
4. 恢复默认工具栏控件;
5. 工具栏生效。
Log: 添加自定义工具栏功能
Influence: none
Change-Id: Icb1d12d4c8881ace309e9b5cd5508bbca965c5fc
2023-01-17 16:47:22 +08:00
wang fei
217cfc5514
feat: 增加特性展示功能
...
1. 增加特性对话框类接口;
2. dapplication增加特性对话框相关接口;
3. 重新布局关于对话框;
Log: 新增特性介绍功能
Task: https://pms.uniontech.com/task-view-227391.html
Influence: 特性介绍,关于介绍
Change-Id: Ie6244bd313bb385846f4c5c066108b65f5afcb4f
2023-01-13 02:01:37 +00:00
Ye ShanShan
fe89639b37
feat: Add compact support for some widgets
...
Modify dstyle's value when switch SizeMode;
Add compact support for dialog, listview and other base widget.
Log: 支持基本控件的紧凑模式切换
Task: https://pms.uniontech.com/task-view-227385.html
Influence: none
Change-Id: I8f83d1fddd723a51bd01561c3723a9c352e9d852
2023-01-11 12:19:42 +08:00
renbin
e850bebb4a
feat: Add DImageViewer example.
...
Add DimageViewer example, improve crop image function.
Update dox file comment, hide internal implementation.
Log: Add DImageViewer example.
2022-12-12 06:49:59 +00:00
wang fei
e60b44d898
feat: 侧边栏功能
...
按钮控制侧边栏展开和收缩
Log: 添加侧边栏功能
Influence: 侧边栏和标题栏
Change-Id: I39790200db1606a6513a99a47ecaab17c2f171ee
2022-12-07 09:59:56 +08:00
chenhongtao
f80f48076e
feat(cmake): to cmake
...
from qmake to cmake
Log: tocmake
2022-08-19 17:18:33 +08:00
Chen Bin
5b8db6b928
feat: 添加水印的行距和间距的控制
...
1. 在插件属性类中增加相关变量控制行距和间距。
2. 打印预览内部目前不提供相关接口,仅提供属性支持。
3. 行距和间距都针对水印的当前大小进行比例计算。
4. 默认情况下,水印间距是一个固定值。
Log:
Influence: None
Task: https://pms.uniontech.com/story-view-22993.html
Change-Id: I14cb4ffd635e33e441d38a46bf324177af22d42a
2022-08-11 15:52:22 +08:00
Chen Bin
7f2ce6c8af
fix: 未提供当前水印类型的接口
...
重新调整设置信息类,能够在外部控制水印类型。
并修复水印页面设置状态无法更新的问题
Log:
Influence: 打印预览功能和兼容性
Change-Id: Id0ff9317e70ba0b2781642e96821894c6bbd9ef4
2022-08-11 15:52:22 +08:00
Chen Bin
d0064bd09b
feat(打印预览): 增加插件控制打印属性
...
1. 新增插件类控制打印属性的状态(显示、禁用和隐藏)以及默认属性
2. 修改打印对话框的源代码适配插件模式
3. 新增测试用例,测试上述场景。
Log:
Change-Id: I7af2de238070263be92d1b84f0f4ac136c1b1625
2022-08-11 15:52:22 +08:00
xzl
8d8912b04f
chore: adapt REUSE license header
...
修改为开源合规
Log: 修改项目合规
2022-08-11 05:02:57 +00:00
Ye ShanShan
431f6730b8
fix: crashed when DListView drag item with Action
...
DStandardItem's `setActionList` can't be used with drag because of
Type doesn't support metatype's save and load.
and DStandardItem doesn't release it's Action when destruction,
we use sharedpointer to manager action's life.
Add clone override function to support that action can be access
after draged, and it need to setItemPrototype by model.
Log: 含有Action项的DListView拖动时程序崩溃
Influence: none
Change-Id: Idc489b94f4cf95850fe00a9ac8231fed80913a79
2022-07-29 00:34:15 +00:00
ck
95ef4732aa
chore: 示例代码微调
...
示例代码微调,去掉无效日志,头文件等
Log:
Influence: none
Change-Id: I2a0f0721246264d88d3e98f212722c4e1540b6fb
2022-07-22 16:04:07 +08:00
WangFei
30e1bee964
chore: DSearchCombobox控件popup后高度调整 ( #92 )
...
DSearchCombobox控件popup后高度调整为:
增加DSearchEdit高度和布局里的spacing及margin
Log: 调整DSearchCombobox控件popup后的高度
Influence: DSearchCombobox功能
2022-03-31 09:45:53 +08:00
ck
0440f31848
chore: example running warnning fixed
...
QObject::moveToThread: Cannot move backend objects with a parent
Log:
Influence: none
Change-Id: Ib8b97d32e80bd5cffa517712f02d16155aaa186f
2021-12-10 17:54:57 +08:00
Wang Fei
dfa5316857
fix: 设置快捷键Ctrl+shift+tab失效
...
Ctrl+shift+tab变成Ctrl+shift+BackTab,
Ctrl+shift+BackTab设置shortcut不支持,
将BackTab替换成Tab。
Log: 修复设置快捷键Ctrl+shift+tab键失效问题
Bug: https://pms.uniontech.com/zentao/bug-view-104762.html
Influence: 快捷键设置
Change-Id: Ic2be26a46df9b9f877a435d3c88992ffbbef625f
2021-12-08 12:07:24 +08:00
Ye ShanShan
fbabc16a7c
feat: 导出DSpinbox的showAlertMessage接口
...
导出DSpinBox内部使用的DLineEdit的showAlertMessage。
Log: 导出弹出警告框接口
Bug: https://pms.uniontech.com/zentao/bug-view-89273.html
Influence: 应用可以替换掉临时方案
(通过findChild获得的DLineEdit对象来showAlertMessage)
Change-Id: I06f5c19f9ef4b168fe0d96abfe8ad99db53486d5
2021-10-28 09:53:15 +08:00
yeshanshan
1a1befd421
feat: 添加DComboBox,DFontComboBox,根据可视项数限制高度(会改变向下兼容性)
...
1.添加DComboBox,重写QComboBox的showPopup方法,
重新设置最大显示高度,避免项数过多铺满屏幕;
2.添加DFontComboBox,用装饰者模式通过QFontComboBox来实现DFontComboBox;
3.添加测试代码;
4.修改DSearchComboBox继承类(会改变兼容性).
Log: 重写Qt的QComboBox和QFontComboBox控件,根据可视项数来限制高度,默认最大显示16项.
Task: https://pms.uniontech.com/zentao/task-view-77474.html
Influence: 所有使用了DComboBox,DFontComboBox,DSearchComboBox的应用,
DComboBox,DFontComboBox显示的最大项数不超过16项,
会导致DSearchComboBox不兼容之前版本。
Change-Id: Icb3e9e0a27ce100f15ab06c2ec9697b2131e3037
2021-10-22 14:10:44 +08:00
Chen Bin
9ddd5dd7d4
chore: 清除 QDoc 运行时的警告信息
...
1. 修改注释中错误的用法,以减少 QDoc 运行
时的报错。
2. 对部分缺失注释的类添加注释。
Log:
Change-Id: I4a6910429c56e9d79729f835805ce7603735046c
2021-10-06 13:32:31 +08:00
wangfei
8950856bb8
fix: 将头文件包含的双引号修改为尖括号
...
修改头文件包含双引号为尖括号,默认从标准路径查找该头文件,增加查找效率
Log: 将头文件包含的双引号修改为尖括号
Change-Id: Idef8426a93b34a6a7415fe63a25084160ece9eb6
(cherry picked from commit 112f218ab7 )
2021-09-08 13:27:48 +08:00
ut003691
a6c08332ce
fix: slider例子左按钮和右按钮点击都是增加slider的值
...
修改slider左按钮功能为减少slider的值
Log: 修改slider例子中slider左按钮功能为减少slider的值
Change-Id: I7f936d12464aeb78c26a14f711571ee9bd90e907
2021-08-24 16:58:09 +08:00
yeshanshan
cc5a6ee3e5
fix: 设置DTabBar::shape无法正常显示竖直方向及调整ui显示效果
...
1.添加布局的选择,按照shape来选择对应的布局,
2.添加shape和direction的转换,除去无效的设置策略.
3.根据Qt源码,添加上对应shape的判断及选择.
4.调整DTabBar边距为与设计相同的大小.
5.添加DTabBar箭头按钮的上下延长线.
6.添加测试代码.
Log: 修复DTabBar无法正常显示竖直方向及调整相关ui显示效果.
Change-Id: I1e975356c15958d7f4367576261eea4d658a88ae
(cherry picked from commit 66a7d818c0 )
2021-08-19 09:17:02 +08:00
ck
39879d3d6a
fix: 修复快捷键设置问题
...
参数错误导致显示异常。
Log:
Change-Id: Ia0c84e3c94adee0a2d6fa1416b81586aa112c95f
2021-08-13 13:52:20 +08:00
ut003691
9d6eaa408d
fix: DFontComboBoxExample说明信息有错字
...
DFontComboBoxExample中DFontComboBox说明文字中的“自体“修改为“字体”
Log: 修改DFontComboBox说明文字中的“自体“修改为“字体”
Change-Id: I2fc9e02b1091c5a3c5a67ea708a690c4b7e5d127
2021-08-11 17:08:48 +08:00
ck
604c361b40
chore: master分支debug 模式下还是使用5.5的依赖
...
上游包整合之后dtkwidget的master分支编译无法通过。
改成debug模式时使用5.5的依赖
Log:
Change-Id: I6eee0fb93481be6b8db6175416ec42e69ce13dad
2021-07-08 15:28:56 +08:00
Chen Bin
10c78c5761
feat: dtkwidget支持一包多依赖
...
1.使用dtkcommon的qmake配置函数,使dtkwidget能够同时支持
5和5.5等多个版本。
2. 修改control中的依赖文件,master上只依赖5的版本。
Log:
Change-Id: I63b3d3dbc4373c87af495b49696b96a297424ddc
2021-06-29 18:41:04 +08:00
Chen Bin
a352e90e5e
chore: 将master生成的库名修改为dtkwidget
...
从maintain/5.5中cp时由于dtkwidget依赖5.5的接口,因此名称改为5.5。
现将dtkwidget修改为原始名称,以适配master上游多依赖问题。
Log:
Change-Id: I0495cf47a882022c228ddbb90f6d608571794d33
2021-06-29 16:36:00 +08:00
Chen Bin
65484b7b20
feat: Merge branch 'maintain/5.5' into master
...
合并maintain/5.5分支到master分支
Log:
Change-Id: Id143dce697599e5581c9c74e561776c1705d1ead
2021-06-28 17:29:35 +08:00
yeshanshan
f8bd6a755b
fix: DSettingsDialog的setGroupVisible方法对树形结构的导航栏失效
...
1.修改Content控件,树形结构的遍历及设置visible方法,
对QFormLayout布局时,即使控件隐藏也会占部分空间,后改成QVBoxLayout,
在滚动条滚动时,只有显示的title才参与计算.
2.修改Navigation控件,设置setGroupVisible时对所有子树项进行设置.
3.添加测试代码.
Log:
Change-Id: I68f03260b9bd62b14cb6cd0de3a6d382a74dbdcd
(cherry picked from commit 475d96c31c )
2021-06-28 14:01:19 +08:00
yeshanshan
475d96c31c
fix: DSettingsDialog的setGroupVisible方法对树形结构的导航栏失效
...
1.修改Content控件,树形结构的遍历及设置visible方法,
对QFormLayout布局时,即使控件隐藏也会占部分空间,后改成QVBoxLayout,
在滚动条滚动时,只有显示的title才参与计算.
2.修改Navigation控件,设置setGroupVisible时对所有子树项进行设置.
3.添加测试代码.
Log:
Change-Id: I68f03260b9bd62b14cb6cd0de3a6d382a74dbdcd
2021-06-25 13:32:40 +08:00
wangpenga
5ed88eabc1
chore: After call setSingleInstance should return.
...
使用完 setSingleInstance 接口后应该返回。
消除collections示例中重复添加布局的警告错。
Log:
Change-Id: I9620d2ebf46ee6703a03a5a2118f201d651f6844
2021-06-24 11:43:26 +08:00
wangpenga
fff1817d77
feat: install dtkwidget example application.
...
把 dtkwidget 的示例程序打包安装到指定路径。
Log:
Change-Id: I20061429633f61ae7c363b5b7407f812778d8a12
(cherry picked from commit 4ebefc9151 )
2021-06-21 17:49:43 +08:00
wangpenga
4ebefc9151
feat: install dtkwidget example application.
...
把 dtkwidget 的示例程序打包安装到指定路径。
Log:
Change-Id: I20061429633f61ae7c363b5b7407f812778d8a12
2021-06-21 14:25:14 +08:00