Commit Graph

11 Commits

Author SHA1 Message Date
Ye ShanShan 20f5fc1d3b feat: support to get specified palette
get the specified type of palette.
2024-03-26 11:46:50 +08:00
houchengqiu c2b0782d00 refator: rewrite hasUserManual function
1.porting dbus interface(ManualExists) implementation to dtk

Log: rewrite hasUserManual function
2023-08-03 11:44:40 +08:00
ck afb7340011 feat: load app and qt Translation files
- interface: DGuiApplicationHelper::loadTranslator();
- auto load qt_xxx.qm && qtbase_xxx.qm && appName_xxx.qm
- add loadTranslator ut
2023-07-27 11:52:02 +08:00
YeShanShan 95f8b5ffd3 refactor: Move dotsPerInch from normal function to slots
It exports to qt meta system for qml.
  and it doesn't break ABI compatibility depend on
https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B#Using_signals_instead_of_virtual_functions
2023-07-12 08:51:48 +08:00
ck d867a02cda refactor!: deprecate some interfaces in dtk6
- DGuiApplicationHelper -7
- DPalette -1
- DPlatformTheme -27 properties
2023-07-06 11:24:23 +08:00
heyuming 58095a743f fix: fix build failure due to metasystem change
在构建dtkwidget中遇到

Log: 修复因为元系统改变导致的编译失败
2023-06-07 18:32:28 +08:00
ck 19492cbfb7 feat: add DontSaveApplciationTheme Attribute
保存主题功能让非 widget 应用也能用上, 默认行为记住主题
如果不需要记住请构造 app 前 setAttibute(DontSaveApplicationTheme)
注意:因为可能无法正确获取 appid ,通过 dde-dconfig-editor
设置的主题可能无效,但是应用自行设置的主题可以记住

Log:
2023-04-14 08:47:36 +08:00
ck f79aeb8aaa feat: add scrollBarPolicy interface
same as Qt::ScrollBarPolicy
0 show as needed auto hide, default
1 always off
2 always on

Task: https://pms.uniontech.com/task-view-240117.html
Log: scrollbar policy
Change-Id: Ia37f2a5661cb27de568bc3f7ece5a4a6a1fcae97
2023-02-02 13:41:08 +08:00
yeshanshan f7e76a9706
feat: Add SizeMode support (#95)
enable SizeMode support by default.
  user can set environment `D_DTK_SIZEMODE` to set
SizeMode support.
  application can set SizeMode by `setSizeMode` explicitly.

Log: 支持紧凑模式切换
Task: https://pms.uniontech.com/task-view-227385.html
Influence: none
Change-Id: I2eefe254f9bbf380d9ab133c4eb0caa979ed1356
2023-01-06 05:00:41 +00:00
Ye ShanShan 27eeedefdf feat: Moving loadTranslator from dtkwidget
moving implement of loadTranslator from dtkwidget,
  refact the code's logic.

Log: 加载翻译功能移至dtkgui,以便供dtkdeclarative使用
Bug: https://pms.uniontech.com/bug-view-157977.html
Influence: qml相关应用没有加载翻译
Change-Id: I75483320cbb6f8a1378cb8a93f00da3d8abfc26f
2022-11-03 10:24:56 +08:00
ShootingStarDragons 7f227daf8a feat(tocmake): tocmake
I change the source code from qmake to cmake. Move the files
which will be install to the /usr/include to $root/include, which will
help to mattern match and easylier to do install. and the change will
break the build of qmake

Log: from qmake to cmake

Influence: qmake is breaked
2022-08-17 16:59:12 +08:00