Compare commits

...

2184 Commits

Author SHA1 Message Date
github-actions[bot] 05a48ef125 chore: New release 5.7.25
Log:
2025-10-30 14:01:08 +00:00
yeshanshan 81442f521c feat: add support for custom line edit icon margin
Added PM_LineEditIconMargin pixel metric handling to support custom
icon margins in line edit widgets. The implementation checks for a
"_d_dtk_lineeditIconMargin" property on the widget and returns the
custom margin value if valid. This allows applications to specify
precise icon spacing in line edit fields for better UI customization and
visual consistency.

Influence:
1. Test line edit widgets with custom icon margin property set
2. Verify default behavior when no custom margin is specified
3. Test with various valid margin values (positive integers)
4. Verify behavior with invalid margin values (negative numbers, invalid
types)
5. Check UI layout consistency with custom icon margins applied

feat: 添加支持自定义行编辑图标边距

添加了 PM_LineEditIconMargin 像素度量处理,以支持在行编辑部件中自定义图
标边距。该实现检查部件上的 "_d_dtk_lineeditIconMargin" 属性,如果有效则
返回自定义边距值。这允许应用程序为行编辑字段指定精确的图标间距,以实现更
好的 UI 定制和视觉一致性。

Influence:
1. 测试设置了自定义图标边距属性的行编辑部件
2. 验证未指定自定义边距时的默认行为
3. 使用各种有效边距值(正整数)进行测试
4. 验证无效边距值(负数、无效类型)时的行为
5. 检查应用自定义图标边距后的 UI 布局一致性

PMS: BUG-334965
2025-10-28 19:09:04 +08:00
yeshanshan 67dc851fd0 fix: improve dialog sizing and remove unused event filter
1. Enhanced dialog width calculation to respect maximum width constraint
2. Added dynamic height calculation based on layout's total height for
the given width
3. Removed unused event filter for title and message labels that handled
font changes
4. The event filter was unnecessary as Qt's layout system already
handles text wrapping properly

Influence:
1. Test dialog resizing with various content lengths
2. Verify dialog respects maximum width settings
3. Check that text wrapping works correctly in title and message labels
4. Test dialog appearance with different font sizes
5. Ensure dialog maintains minimum size requirements

fix: 改进对话框尺寸计算并移除未使用的事件过滤器

1. 增强对话框宽度计算以遵循最大宽度约束
2. 添加基于布局总高度的动态高度计算
3. 移除用于标题和消息标签字体变化的未使用事件过滤器
4. 该事件过滤器不再必要,因为Qt的布局系统已能正确处理文本换行

Influence:
1. 测试不同内容长度时的对话框调整大小
2. 验证对话框遵循最大宽度设置
3. 检查标题和消息标签中的文本换行是否正确工作
4. 测试不同字体大小下的对话框外观
5. 确保对话框保持最小尺寸要求

PMS: BUG-331061
2025-10-28 08:26:01 +00:00
yeshanshan 04913bf8b4 fix: adjust feature item widget height calculation
Changed setFixedHeight to setMinimumHeight for feature item widgets to
handle varying text content more flexibly. Previously used fixed height
could cause layout issues when description text required more vertical
space than the hardcoded values allowed.

This change ensures that feature items can expand vertically when needed
to accommodate longer descriptions while maintaining the minimum height
requirements for standard content.

Influence:
1. Test feature display dialog with short descriptions (should maintain
original height)
2. Test with longer descriptions that require more vertical space
(should expand properly)
3. Verify layout consistency across different description lengths
4. Check that the minimum height constraints are still respected

fix: 调整特性项目控件高度计算

将特性项目控件的高度设置从固定高度改为最小高度,以更灵活地处理不同长度
的文本内容。之前使用的固定高度在描述文本需要更多垂直空间时可能导致布局
问题。

此更改确保特性项目在需要显示较长描述时可以垂直扩展,同时为标准内容保持最
小高度要求。

Influence:
1. 测试特性显示对话框在短描述时的显示(应保持原有高度)
2. 测试需要更多垂直空间的长描述(应能正确扩展)
3. 验证不同描述长度下的布局一致性
4. 检查最小高度约束是否仍然有效

PMS: BUG-311285
2025-10-23 09:12:25 +00:00
yeshanshan 431d8244b9 fix: handle font change events in dialog
Fix dialog size not updating when system font changes
Add font change event handling to recalculate dialog size
Ensure proper layout when font size or family changes

Influence:
1. Test dialog appearance when system font settings change
2. Verify dialog size adapts correctly to different font sizes
3. Check layout integrity after font changes
4. Test with various font families and sizes

fix: 处理对话框中的字体变更事件

修复系统字体变更时对话框大小不更新的问题
添加字体变更事件处理以重新计算对话框大小
确保字体大小或字体家族变更时的正确布局

Influence:
1. 测试系统字体设置变更时对话框的显示效果
2. 验证对话框大小是否正确适应不同的字体大小
3. 检查字体变更后的布局完整性
4. 测试不同字体家族和大小的显示效果

PMS: BUG-331061
2025-10-23 17:09:31 +08:00
yeshanshan 731810a0b2 fix: correct button order in settings dialog
Fixed incorrect button order in the settings dialog by changing
insertButton index from 1 to 0 for cancel button. This ensures the
cancel button is placed at the correct position in the button layout,
preventing potential UI issues and improving user interface consistency.

Influence:
1. Verify settings dialog button layout is correct
2. Test cancel button functionality in settings dialog
3. Check button accessibility names are properly set
4. Confirm dialog interaction flows work as expected

fix: 修复设置对话框中按钮顺序问题

修复了设置对话框中按钮顺序错误的问题,将取消按钮的insertButton索引从1改
为0。这确保了取消按钮在按钮布局中处于正确位置,防止了潜在的UI问题并提高
了用户界面的一致性。

Influence:
1. 验证设置对话框按钮布局是否正确
2. 测试设置对话框中取消按钮的功能
3. 检查按钮的可访问性名称是否正确设置
4. 确认对话框交互流程正常工作

PMS: BUG-338153
2025-10-23 08:41:46 +00:00
yeshanshan ce163f1bd0 feat: improve navigation widget styling
1. Removed manual palette setting for item background transparency
2. Added item spacing configuration with zero spacing
3. Set background type with rounded background and no normal state
4. These changes simplify the styling approach and use DStyle's built-
in capabilities

Log: Improved navigation widget visual appearance with better spacing
and background styling

Influence:
1. Verify navigation items display correctly with proper spacing
2. Check background rendering in different states (hover, selected)
3. Test navigation selection behavior remains consistent
4. Verify visual consistency with other UI components
5. Test navigation widget in different themes

feat: 改进导航部件样式

1. 移除了手动设置项目背景透明度的调色板配置
2. 添加了零间距的项目间距配置
3. 设置了圆角背景且无正常状态的背景类型
4. 这些更改简化了样式方法,使用 DStyle 的内置功能

Log: 改进了导航部件的视觉外观,具有更好的间距和背景样式

Influence:
1. 验证导航项目是否正确显示,间距合适
2. 检查不同状态(悬停、选中)下的背景渲染
3. 测试导航选择行为是否保持一致
4. 验证与其他UI组件的视觉一致性
5. 测试不同主题下的导航部件显示

PMS: BUG-310829
2025-10-20 02:49:36 +00:00
github-actions[bot] 65ff769712 chore: New release 5.7.24
Log:
2025-10-16 12:12:37 +00:00
transifex-integration[bot] 7676ee45c3 i18n: Translate dtkwidget.ts in sq
100% translated source file: 'dtkwidget.ts'
on 'sq'.
2025-10-16 11:38:17 +00:00
Robertkill 13e07788c3 fix: clear DCi icon state when setting other icon types
Fixed an issue where DCi icon state was not properly cleared
when setting other icon types (QIcon, QStyle::StandardPixmap,
DStyle::StandardPixmap). This could cause incorrect icon rendering when
switching between different icon types.

The changes ensure that when setting a non-DCi icon, the DCi icon state
is properly reset to avoid conflicts between different icon systems.
When setting a DCi icon, the QAbstractButton icon is cleared to prevent
interference.

Log: Fixed icon display issues when switching between different icon
types

Influence:
1. Test switching between QIcon, standard pixmap icons, and DCi icons
2. Verify icons display correctly after type changes
3. Test button appearance in different states (normal, hover, pressed)
4. Check icon rendering consistency across different button types

fix: 设置其他图标类型时正确清除 DCi 图标状态

修复了在设置其他图标类型(QIcon、QStyle::StandardPixmap、
DStyle::StandardPixmap)时未正确清除 DCi 图标状态的问题。这可能导致在不
同图标类型之间切换时出现错误的图标渲染。

这些更改确保在设置非 DCi 图标时,DCi 图标状态被正确重置,以避免不同图
标系统之间的冲突。当设置 DCi 图标时,QAbstractButton 图标被清除以防止
干扰。

Log: 修复在不同图标类型之间切换时的图标显示问题

Influence:
1. 测试在 QIcon、标准像素图标和 DCi 图标之间的切换
2. 验证类型更改后图标正确显示
3. 测试按钮在不同状态(正常、悬停、按下)下的外观
4. 检查不同按钮类型之间的图标渲染一致性

PMS: BUG-337027
2025-10-16 16:02:46 +08:00
ComixHe 93b3065760 feat: support Qt 6.10
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-10-13 14:28:15 +08:00
github-actions[bot] e627358800 chore: New release 5.7.23
Log:
2025-09-25 17:43:26 +08:00
yeshanshan f3907549c0 feat: enhance window effect support detection
Added supportWindowEffect() function to check for both compositing and
blur window capabilities
Updated color picker button enable state to require both composite and
blur window support
Added connection to handle hasBlurWindowChanged signal for dynamic
enable state updates

This change ensures the color picker button is only enabled when both
compositing and blur window effects are supported by the window manager,
providing better user experience by preventing the button from being
enabled in environments where the picker functionality wouldn't work
properly due to missing window effects.

Log: Color picker button now requires both compositing and blur window
support to be enabled

Influence:
1. Test color picker button enable/disable state when changing window
manager compositing settings
2. Verify button state when blur window support is enabled/disabled
3. Test in environments with different window manager capabilities
4. Verify picker functionality works correctly when button is enabled

feat: 增强窗口效果支持检测

新增 supportWindowEffect() 函数检查合成和模糊窗口支持能力
更新颜色选择器按钮启用状态,要求同时具备合成和模糊窗口支持
添加处理 hasBlurWindowChanged 信号的连接,实现动态启用状态更新

此更改确保颜色选择器按钮仅在窗口管理器同时支持合成和模糊窗口效果时启用,
提供更好的用户体验,防止在缺少窗口效果的环境中启用按钮而导致功能无法正常
工作。

Log: 颜色选择器按钮现在需要同时支持合成和模糊窗口效果才能启用

Influence:
1. 测试更改窗口管理器合成设置时颜色选择器按钮的启用/禁用状态
2. 验证模糊窗口支持启用/禁用时的按钮状态
3. 在不同窗口管理器能力的环境中进行测试
4. 验证按钮启用时选择器功能正常工作

PMS: BUG-329555
2025-09-16 19:45:26 +08:00
yeshanshan d08e74d508 fix: fix search icon color inconsistency in DSearchEdit
The search icon button in DSearchEdit had inconsistent foreground
colors because the action button was drawn by Qt without using the
control's palette foreground color. This change replaces QAction with
QWidgetAction to ensure the search icon inherits the correct palette
colors from the parent widget.

Changed QAction to QWidgetAction and created a DIconButton widget as the
default widget for the action. This allows the search icon to properly
inherit the palette foreground color from DSearchEdit instead of using
Qt's default styling. Also updated all visibility control calls to use
defaultWidget()->setVisible() instead of action->setVisible().

Log: Fixed search icon color inconsistency in search edit controls

Influence:
1. Test search edit control in different themes to verify icon color
consistency
2. Verify search icon visibility transitions during focus changes
3. Test search functionality remains unchanged
4. Check accessibility name is preserved for the icon button
5. Verify placeholder text behavior during mode transitions

fix: 修复DSearchEdit中搜索图标颜色不一致问题

DSearchEdit中的搜索图标按钮存在前景色不一致的问题,因为操作按钮由Qt绘
制,没有使用控件的调色板前景色。本次修改将QAction替换为QWidgetAction,确
保搜索图标正确继承父部件的调色板颜色。

将QAction改为QWidgetAction,并创建DIconButton小部件作为操作的
默认小部件。这使得搜索图标能够正确从DSearchEdit继承调色板前景
色,而不是使用Qt的默认样式。同时更新了所有可见性控制调用,使用
defaultWidget()->setVisible()代替action->setVisible()。

Log: 修复搜索编辑控件中搜索图标颜色不一致问题

Influence:
1. 在不同主题下测试搜索编辑控件,验证图标颜色一致性
2. 验证焦点变化时搜索图标可见性转换
3. 测试搜索功能保持不变
4. 检查图标按钮的无障碍名称是否保留
5. 验证模式转换时的占位符文本行为

PMS: BUG-315583
2025-09-11 09:41:42 +08:00
github-actions[bot] 6caffc027f chore: New release 5.7.22
Log:
2025-09-04 20:06:20 +08:00
yeshanshan 5ca6b4261c fix: prevent potential tab index out of bounds crash
Added safety checks to prevent accessing invalid tab indices
1. Added Q_ASSERT(tab) in layoutTab to ensure tab pointer is valid
2. Added d->validIndex(selected) check in paintEvent before accessing
selected tab
3. Prevents crashes when tab index might be out of bounds during layout
or painting operations

fix: 修复标签索引越界可能导致的崩溃问题

添加安全检查防止访问无效的标签索引
1. 在layoutTab中添加Q_ASSERT(tab)确保标签指针有效
2. 在paintEvent中添加d->validIndex(selected)检查,确保在访问选中标签前索
引有效
3. 防止在布局或绘制操作中因标签索引越界而导致崩溃

PMS: BUG-331085
2025-09-02 11:35:08 +08:00
transifex-integration[bot] 26f2baf371
i18n: [dtkwidget] Updates for project Deepin Tool Kit (#681)
* i18n: Translate dtkwidget.ts in ja

70% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ja'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

---------

Log:
2025-08-21 16:39:10 +08:00
github-actions[bot] 816584d751 chore: New release 5.7.21
Log:
2025-08-14 20:28:24 +08:00
yeshanshan bd6a9cdb28 fix: resolve various compilation warnings
1. Fixed unused parameter warnings by removing parameter names in lambda
captures
2. Added Qt version check for deprecated AA_UseHighDpiPixmaps attribute
3. Fixed documentation comment syntax in DFontComboBox
4. Added nullptr check for QGuiApplication::inputMethod()
5. Added parent parameter in DPrintPreviewWidget constructor
6. Fixed pixel metric switch case with static cast
7. Updated meta type registration for Qt6 compatibility
8. Removed unused variable casts in test cases
9. Added Qt version check for QContextMenuEvent constructor

Influence:
1. Verify UI elements still render correctly after DPI attribute changes
2. Test input method behavior on tablet devices
3. Check print preview functionality
4. Validate combo box and text edit test cases still pass
5. Confirm no new warnings appear during compilation

fix: 修复各种编译警告

1. 在lambda捕获中移除未使用的参数名以消除警告
2. 添加Qt版本检查处理废弃的AA_UseHighDpiPixmaps属性
3. 修复DFontComboBox中的文档注释语法
4. 为QGuiApplication::inputMethod()添加nullptr检查
5. 在DPrintPreviewWidget构造函数中添加父控件参数
6. 使用静态转换修复像素度量switch case
7. 更新元类型注册以兼容Qt6
8. 移除测试用例中未使用的变量转换
9. 为QContextMenuEvent构造函数添加Qt版本检查

Influence:
1. 验证DPI属性变更后UI元素仍能正确渲染
2. 测试平板设备上的输入法行为
3. 检查打印预览功能
4. 确保组合框和文本编辑测试用例仍能通过
5. 确认编译时不再出现新的警告
2025-08-14 11:39:42 +00:00
transifex-integration[bot] 88a59ef567
i18n: [dtkwidget] Updates for project Deepin Tool Kit (#677)
* i18n: Translate dtkwidget.ts in ms

100% translated source file: 'dtkwidget.ts'
on 'ms'.

* i18n: Translate dtkwidget.ts in nl

100% translated source file: 'dtkwidget.ts'
on 'nl'.

* i18n: Translate dtkwidget.ts in fi

100% translated source file: 'dtkwidget.ts'
on 'fi'.

* i18n: Translate dtkwidget.ts in hu

100% translated source file: 'dtkwidget.ts'
on 'hu'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in it

100% translated source file: 'dtkwidget.ts'
on 'it'.

* i18n: Translate dtkwidget.ts in ca

100% translated source file: 'dtkwidget.ts'
on 'ca'.

* i18n: Translate dtkwidget.ts in zh_HK

100% translated source file: 'dtkwidget.ts'
on 'zh_HK'.

* i18n: Translate dtkwidget.ts in ja

69% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ja'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in pl

100% translated source file: 'dtkwidget.ts'
on 'pl'.

* i18n: Translate dtkwidget.ts in hi_IN

88% of minimum 10% translated source file: 'dtkwidget.ts'
on 'hi_IN'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in sq

100% translated source file: 'dtkwidget.ts'
on 'sq'.

* i18n: Translate dtkwidget.ts in nb

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'nb'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ne

33% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ne'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in de

100% translated source file: 'dtkwidget.ts'
on 'de'.

* i18n: Translate dtkwidget.ts in ug

100% translated source file: 'dtkwidget.ts'
on 'ug'.

* i18n: Translate dtkwidget.ts in pt

95% of minimum 10% translated source file: 'dtkwidget.ts'
on 'pt'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in hr

65% of minimum 10% translated source file: 'dtkwidget.ts'
on 'hr'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in uk

100% translated source file: 'dtkwidget.ts'
on 'uk'.

* i18n: Translate dtkwidget.ts in bg

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'bg'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in cs

100% translated source file: 'dtkwidget.ts'
on 'cs'.

* i18n: Translate dtkwidget.ts in am_ET

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'am_ET'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in bn

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'bn'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in br

33% of minimum 10% translated source file: 'dtkwidget.ts'
on 'br'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in es

100% translated source file: 'dtkwidget.ts'
on 'es'.

* i18n: Translate dtkwidget.ts in ko

37% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ko'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in bo

100% translated source file: 'dtkwidget.ts'
on 'bo'.

* i18n: Translate dtkwidget.ts in az

100% translated source file: 'dtkwidget.ts'
on 'az'.

* i18n: Translate dtkwidget.ts in ast

23% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ast'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in fa

25% of minimum 10% translated source file: 'dtkwidget.ts'
on 'fa'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in sr

88% of minimum 10% translated source file: 'dtkwidget.ts'
on 'sr'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ru

100% translated source file: 'dtkwidget.ts'
on 'ru'.

* i18n: Translate dtkwidget.ts in fr

100% translated source file: 'dtkwidget.ts'
on 'fr'.

* i18n: Translate dtkwidget.ts in sk

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'sk'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ro

88% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ro'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in gl_ES

100% translated source file: 'dtkwidget.ts'
on 'gl_ES'.

* i18n: Translate dtkwidget.ts in eu

36% of minimum 10% translated source file: 'dtkwidget.ts'
on 'eu'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ar

89% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ar'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in sl

100% translated source file: 'dtkwidget.ts'
on 'sl'.

* i18n: Translate dtkwidget.ts in tr

100% translated source file: 'dtkwidget.ts'
on 'tr'.

* i18n: Translate dtkwidget.ts in zh_CN

100% translated source file: 'dtkwidget.ts'
on 'zh_CN'.

* i18n: Translate dtkwidget.ts in zh_TW

100% translated source file: 'dtkwidget.ts'
on 'zh_TW'.

* i18n: Translate dtkwidget.ts in lt

31% of minimum 10% translated source file: 'dtkwidget.ts'
on 'lt'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in id

24% of minimum 10% translated source file: 'dtkwidget.ts'
on 'id'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in da

33% of minimum 10% translated source file: 'dtkwidget.ts'
on 'da'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in es

100% translated source file: 'dtkwidget.ts'
on 'es'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in zh_HK

100% translated source file: 'dtkwidget.ts'
on 'zh_HK'.

* i18n: Translate dtkwidget.ts in zh_TW

100% translated source file: 'dtkwidget.ts'
on 'zh_TW'.

* i18n: Translate dtkwidget.ts in zh_CN

100% translated source file: 'dtkwidget.ts'
on 'zh_CN'.

* i18n: Translate dtkwidget.ts in lo

15% of minimum 10% translated source file: 'dtkwidget.ts'
on 'lo'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in lo

100% translated source file: 'dtkwidget.ts'
on 'lo'.

---------

Log:
2025-08-14 14:23:35 +08:00
yeshanshan 725e0a0c83 fix: update transifex configuration
1. Removed minimum_perc and mode settings from main section
2. Updated resource identifier from 'dwidget' to hash-based identifier
3. Cleaned up whitespace in the configuration file

The changes were made to align with Transifex's updated configuration
requirements and to standardize resource identifiers across the project.
The hash-based identifier provides better uniqueness and consistency.

Influence:
1. Verify translations are still being properly synced with Transifex
2. Check that translation files are being generated correctly
3. Ensure no regression in translation functionality

fix: 更新Transifex配置

1. 从main部分移除了minimum_perc和mode设置
2. 将资源标识符从'dwidget'更新为基于哈希的标识符
3. 清理了配置文件中的空白字符

这些更改是为了符合Transifex更新的配置要求,并使项目中的资源标识符标准
化。基于哈希的标识符提供了更好的唯一性和一致性。

Influence:
1. 验证翻译仍能正确与Transifex同步
2. 检查翻译文件是否正确生成
3. 确保翻译功能没有回归
2025-08-14 13:28:31 +08:00
yeshanshan 72b17970f1 feat: update translation configurations and translations
1. Added .tx/transifex.yaml configuration file for translation
management
2. Updated license and copyright information in translation files
3. Improved Arabic translations with corrected terms and completed
missing translations
4. Updated Chinese translations for "Acknowledgements" term
5. Added various language translations (Japanese, German, French,
Italian, etc)
6. Removed SPDX headers from translation files to avoid duplication

Log: Updated translation configurations and improved translations

Influence:
1. Verify all translations display correctly in UI
2. Check translation management works with Transifex
3. Test language switching functionality
4. Validate license/copyright information in about dialogs

feat: 更新翻译配置和翻译内容

1. 新增.tx/transifex.yaml翻译管理配置文件
2. 更新翻译文件中的许可证和版权信息
3. 改进阿拉伯语翻译,修正术语并补全缺失翻译
4. 更新中文"鸣谢"翻译为"致谢"
5. 新增多种语言翻译(日语、德语、法语、意大利语等)
6. 移除翻译文件中的SPDX头以避免重复

Log: 更新翻译配置并改进翻译内容

Influence:
1. 验证所有翻译在界面中正确显示
2. 检查与Transifex的翻译管理功能
3. 测试语言切换功能
4. 验证关于对话框中的许可证/版权信息
2025-08-13 14:27:58 +08:00
yeshanshan 0214421522 fix: prevent background type from overriding custom item spacing
1. Changed DStyledItemDelegate to initialize itemSpacing with -1 as
default value
2. Added spacing() method to handle negative spacing values
3. Modified setBackgroundType to only set spacing when no custom spacing
was set (spacing < 0)
4. Updated all spacing references to use the new spacing() method

Log: Fixed issue where setting background type would override custom
item spacing values

Influence:
1. Test setting custom item spacing values before/after changing
background types
2. Verify spacing behavior with different background types
(RoundedBackground, ClipCornerBackground)
3. Check layout calculations with custom spacing values
4. Test list view rendering in both LeftToRight and TopToBottom flows

fix: 修复设置背景类型会覆盖自定义间距值的问题

1. 修改 DStyledItemDelegate 默认将 itemSpacing 初始化为 -1
2. 新增 spacing() 方法处理负间距值
3. 修改 setBackgroundType 仅在未设置自定义间距时(spacing < 0)才设置
间距
4. 更新所有间距引用使用新的 spacing() 方法

Log: 修复了设置背景类型会覆盖自定义间距值的问题

Influence:
1. 测试在更改背景类型前后设置自定义间距值
2. 验证不同背景类型(RoundedBackground, ClipCornerBackground)下的间距行为
3. 检查使用自定义间距值时的布局计算
4. 测试列表视图在 LeftToRight 和 TopToBottom 两种流式布局下的渲染效果
2025-08-13 05:55:47 +00:00
yeshanshan bee46d591d Revert "fix: prevent itemSpacing override in setBackgroundType"
This reverts commit 3a4600cd30.
2025-08-13 05:55:47 +00:00
github-actions[bot] 50b00b0d9d chore: New release 5.7.20
Log:
2025-07-31 12:31:04 +00:00
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
yeshanshan 3a4600cd30 fix: prevent itemSpacing override in setBackgroundType
1. Removed automatic itemSpacing adjustment in
DListView::setBackgroundType
2. Added itemSpacing() method in DStyledItemDelegate to dynamically
calculate spacing based on background type
3. Changed itemSpacing member to spacing with default value -1 to
indicate custom spacing
4. Updated all references to use the new itemSpacing() method

The changes prevent the itemSpacing value from being unintentionally
overwritten when setting backgroundType, while maintaining backward
compatibility with the default spacing values for different background
types. This gives more control to developers to set custom spacing
values that won't be overridden by background type changes.

fix: 修复设置背景类型时覆盖itemSpacing值的问题

1. 移除了DListView::setBackgroundType中自动调整itemSpacing的逻辑
2. 在DStyledItemDelegate中添加itemSpacing()方法根据背景类型动态计算间距
3. 将itemSpacing成员改为spacing并设置默认值-1表示自定义间距
4. 更新所有引用以使用新的itemSpacing()方法

这些修改防止了在设置backgroundType时意外覆盖itemSpacing值的问题,同时保
持了对不同背景类型默认间距值的向后兼容性。这为开发者提供了更多控制权,可
以设置不会被背景类型更改覆盖的自定义间距值。
2025-07-23 10:50:11 +08:00
kuchune a21622a82a chore(CI): add debian check workflow
add debian check workflow

log: 增加debian检查工作流
2025-07-08 09:42:12 +00:00
github-actions[bot] cff2623eb2 chore: New release 5.7.19
Log:
2025-07-03 13:23:18 +00:00
yeshanshan 290b84eb53 fix: add security hardening flags and optimize build settings
1. Added security hardening compilation flags in debian/rules including:
   - Stack protection (-fstack-protector-all)
   - Relocation hardening (-Wl,-z,relro/now/noexecstack)
   - Warning flags (-Wall)
2. Simplified dtkwidget.cmake by removing redundant linker flags
3. Maintained essential security flags while cleaning up build
configuration
4. These changes improve binary security while keeping build process
efficient

fix: 添加安全加固标志并优化构建设置

1. 在debian/rules中添加安全加固编译标志包括:
   - 栈保护 (-fstack-protector-all)
   - 重定位加固 (-Wl,-z,relro/now/noexecstack)
   - 警告标志 (-Wall)
2. 简化dtkwidget.cmake,移除冗余链接器标志
3. 在保持基本安全标志的同时清理构建配置
4. 这些改动在保持构建效率的同时提高了二进制安全性
2025-07-03 21:03:48 +08:00
github-actions[bot] f20be8bedc chore: New release 5.7.18
Log:
2025-06-27 09:19:14 +00:00
yeshanshan 2d88b9ec79 fix: make version optional in release workflow and update spec file
1. Changed version parameter to be optional in GitHub workflow to allow
more flexible release process
2. Updated rpm spec file formatting for consistency and added %{?dist}
macro for proper package naming

The changes allow for:
- More flexible release process where version can be omitted
- Better formatted spec file with proper dist macro for package naming

fix: 使发布工作流中的版本可选并更新spec文件

1. 将GitHub工作流中的版本参数改为可选,以实现更灵活的发布流程
2. 更新rpm spec文件格式以保持一致性,并添加%{?dist}宏以正确命名包

这些更改允许:
- 更灵活的发布流程,可以省略版本号
- 格式更好的spec文件,带有正确的dist宏用于包命名
2025-06-27 16:44:07 +08:00
github-actions[bot] 468c8e7b1f chore(rpm): New release 5.7.17
Log:
2025-06-19 10:22:21 +08:00
asterwyx d65f32d9f1 chore: update .syncexclude
Exclude CHANGELOG.md.
2025-06-18 17:00:40 +08:00
Ye ShanShan d377893d9f feat: update window control icons and drawing logic
1. Replaced window_normal.dci with window_restore.dci and
window_quit_full.dci icons
2. Updated icon references in dtk-icon-theme.qrc resource file
3. Simplified title bar button drawing functions to use new icons
instead of manual drawing
4. Modified DStyle implementation to use the new icon assets
5. Improved visual consistency by using pre-made icons rather than
programmatic drawing

The changes were made to:
- Standardize window control icons across the application
- Replace programmatic drawing with higher quality vector icons
- Make the UI more maintainable by using consistent icon assets
- Prepare for future theme support by using icon resources

feat: 更新窗口控制图标和绘制逻辑

1. 用 window_restore.dci 和 window_quit_full.dci 图标替换了
window_normal.dci
2. 更新了 dtk-icon-theme.qrc 资源文件中的图标引用
3. 简化了标题栏按钮绘制函数,使用新图标替代手动绘制
4. 修改了 DStyle 实现以使用新的图标资源
5. 通过使用预制图标而非程序绘制提高了视觉一致性

这些修改的目的是:
- 标准化应用程序中的窗口控制图标
- 用更高质量的矢量图标替代程序绘制
- 通过使用一致的图标资源提高UI可维护性
- 通过使用图标资源为未来主题支持做准备
2025-06-18 14:33:42 +08:00
Yixue Wang 9618f0c4d4 feat(ci): Add auto release workflow
Log: as title
2025-06-11 11:47:29 +08:00
Yixue Wang 888f22cd21 feat: Support VERSION file
Use VERSION file to manage DTK version. VERSION file defines package version. It also decides the initial value of cached variable DTK_VERSION which controls the project version in cmake build system. VERSION file is not synchronized to DTK6, as DTK6 has its own VERSION file. One can still pass version to DTK_VERSION when running cmake configure. This is helpful for developers.

Signed-off-by: Yixue Wang <wangyixue@deepin.org>
2025-06-11 11:47:29 +08:00
Ye ShanShan 809f6d3f0f chore: bump version to 5.7.16
update changelog to 5.7.16
2025-05-19 09:26:18 +00:00
Ye ShanShan f31f35a717 chore: bump version to 5.7.15
update changelog to 5.7.15
2025-05-08 10:48:41 +00:00
Ye ShanShan 70e23381ad fix: correct text elision behavior with shortcuts
Fixed the text elision behavior in DLabel to properly handle cases
where the label contains shortcut mnemonics. The change modifies the
Qt::TextShowMnemonic flag to only be applied when the label actually has
a shortcut (d->hasShortcut). This prevents incorrect text display when
eliding labels without shortcuts.

fix: 修正带快捷键标签的文本省略行为

修复了 DLabel 中文本省略行为,正确处理包含快捷键助记符的情况。修改了
Qt::TextShowMnemonic 标志,使其仅在标签实际具有快捷键(d->hasShortcut)时
应用。这防止了在没有快捷键的标签上出现错误的文本显示。

pms: BUG-285143
2025-04-29 10:45:24 +08:00
Ye ShanShan d6ed6eaae0 style: adjust website link style in about dialog
1. Removed fixed font-size from website link template to use consistent
font sizing
2. Added font binding for website label using font manager with T8 size
and Medium weight
3. This ensures consistent typography across the application and better
accessibility

style: 调整关于对话框中网站链接样式

1. 从网站链接模板中移除固定字体大小,改用一致的字体大小设置
2. 为网站标签添加字体管理器绑定,使用T8大小和中等等级
3. 确保应用程序中一致的排版和更好的可访问性

pms: BUG-314767
2025-04-28 10:44:10 +00:00
Ye ShanShan 120663aa05 chore: reuse warning
as title.
2025-04-25 15:35:16 +08:00
Ye ShanShan 955b9205fd fix: watermark can't select picture for PrintPreivew
incorrect format for dialog's filter.

pms: BUG-311847
2025-04-18 14:42:45 +08:00
ComixHe be61a18045 build: compiling failed with Qt 6.9
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-04-18 14:19:42 +08:00
Ye ShanShan 00b28ebdec chore: bump version to 5.7.14
update changelog to 5.7.14
2025-04-17 13:58:17 +00:00
Ye ShanShan fe16c8e9dc fix: wheel event is accepted in qt6
QApplication::notify has change the default action
``` qapplication.cpp
we.setAccepted(true);
we.m_spont = wheel->spontaneous() && w == receiver;
res = d->notify_helper(w, &we);
eventAccepted = we.isAccepted();
```
Event is accepted if we don't call parent class event function,
it cause event will not be passed on to it's parentWidget.
and it's different with qt5.

pms: BUG-306251
2025-04-09 08:39:34 +00:00
覃本学 4fc03629b2 fix: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
原本使用的色板中button的颜色,现改为带透明度的黑色和白色

Log: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
Bug: https://pms.uniontech.com/bug-view-250757.html
Influence: DTK SwitchButton按钮 (开关)
Change-Id: Ifb231a3a9ec548d6970d240eaf2667e50ffed9f3
2025-04-08 06:57:38 +00:00
wangshaojun ce495514e1 fix: DToolTip宽度计算
DToolTip的SizeHint指定了用单行计算,当DToolTip设置了自动换行,并且文本包含换行符时,会导致计算的宽度错误

Log:
Influence: DToolTip
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I690a85f34b961a531444d32fe43b3a50ef38dc51
2025-03-31 03:45:21 +00:00
wangshaojun 7387db734f fix: DFloatingMessage宽度计算
DFloatingMessage的子控件MessageLabel支持自动换行,当文本内容包含换行符的时候,通过TextSingleLine计算的Size会与实际不符,导致整个控件宽度过大

Log:
Influence: DFloatingMessage的显示效果
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I571a4c24d84cabfabaaf4a70bca8ec931347b157
2025-03-27 09:16:40 +00:00
Ye ShanShan 9d758fe456 chore: bump version to 5.7.13
update changelog to 5.7.13
2025-03-20 18:07:33 +08:00
Ye ShanShan c611da8a15 fix: accessing wild pointer for DAboutDialog
acknowledgementLabel is wild pointer if DDialog::clearContents
is called.
aboutDialog->setLicenseEnabled is not need to call when reactive
the dialog

pms: TASK-368399
2025-03-19 11:30:15 +08:00
zhangkun add9c2ad31 feat: increase fallback for password character
0x26ab code points support fewer fonts, so we added 0x25CF with a wider range of adaptability as a fallback

pms: BUG-305575
2025-03-18 19:27:09 +08:00
Ye ShanShan 599571424d chore: bump version to 5.7.12
update changelog to 5.7.12
2025-03-06 17:41:46 +08:00
Ye ShanShan 65b8848ff9 fix: failed to save too long filename for DPrintPreviewWidget
Truncate file name to limit file's length.

pms: BUG-297841
2025-03-06 16:30:18 +08:00
Ye ShanShan 5a2e699eb7 chore: remove warning in qt6
as title.

pms: TASK-368399
2025-03-06 09:19:59 +08:00
jingshenghao b4454775dd feat: Add files generated by qdbusXML2cpp and DCONG2cpp
Add files generated by qdbusXML2cpp and DCONG2cpp

Log: Add files generated by qdbusXML2cpp and DCONG2cpp
2025-03-04 20:04:21 +08:00
jingshenghao 80e141384d doc: update docs for dwatermarkhelper
更新dwatermarkhelper的文档,添加示例代码

Log: update docs

Issue:
2025-03-04 20:04:21 +08:00
Ye ShanShan 59839f91e4 chore: bump version to 5.7.11
update changelog to 5.7.11
2025-02-27 21:06:39 +08:00
Ye ShanShan da171354d4 fix: window filickering caused by animation for DDrawer
WM's animation is confliclt with Widget.
We disable DDrawer's animation when window is invisible, and
can use D_DTK_DISABLE_ANIMATIONS to disable it's animation.

pms:BUG-242611
2025-02-25 11:24:55 +08:00
Ye ShanShan 9be9d310f4 fix: app crashed for DBlurEffectWidget in qt6
it's maybe a feature for qt6, we can't modify backingStore when
readying the widget.

``` QWidget::paintEvent(QPaintEvent *event)
QPainter pa(this);
// pa.end() // it's ok when modifing backingStore.
QImage image(window()->backingStore()->handle()->toImage());
image.detach();
```

pms:BUG-304317
2025-02-24 14:52:45 +08:00
Ye ShanShan a6a0bd630e fix: titlebar can't drag after close DAboutDialog
There is no need to get dpr based on the window.
It causes the window can't get mouse event if using
new DAboutDialog(window)).

pms:BUG-304097
2025-02-21 11:47:14 +08:00
Ye ShanShan 4284bc78bc fix: PrintPreview can't switch orientation
it's introduced when adapting to qt6 in the commit 637e3eb.

pms:BUG-298085
2025-02-17 12:50:42 +08:00
Ye ShanShan 73dd1e89fd chore: bump version to 5.7.10
update changelog to 5.7.10
2025-02-13 11:01:12 +00:00
覃本学 68e8a18dc1 fix: 修复 桌面/文管文件,打开属性窗口闪烁
窗管渲染动画问题,动画太快则会闪烁,窗管暂时无解决方案,经讨论后采用规避方案,优化动画时间和动画播放曲线
更改后在问题机L410, 还有L420自测均未再复现

Log: 修复 桌面/文管文件,打开属性窗口闪烁
Bug: https://pms.uniontech.com/bug-view-242611.html
     https://pms.uniontech.com/bug-view-242571.html
Influence: DTK DDrawer控件
Change-Id: I72bb837f6a4b1393555e7a55c382d5878147a4fd
2025-02-13 08:57:08 +00:00
deepin-ci-robot fddc7cd1e2 chore: update changelog
Release 5.7.9.
2025-01-23 09:48:05 +00:00
Ye ShanShan 3f6e005d05 fix: missing QT_QPA_PLATFORM for DApplication
it's useful for children process. and like revert the commit
cbcb732b75
2025-01-23 15:35:41 +08:00
deepin-ci-robot d545362250 chore: update changelog
Release 5.7.8.
2025-01-14 12:05:33 +00:00
YeShanShan 91ab817865 fix: access wild pointer for targetWindowHandle
ad title.

pms: BUG-368399
2025-01-14 10:26:51 +08:00
deepin-ci-robot 7345335cc0 chore: update changelog
Release 5.7.7.
2025-01-09 18:33:50 +08:00
deepin-ci-robot ee8238297e chore: update changelog
Release 5.7.6.
2025-01-02 06:40:48 +00:00
覃本学 d0f28c519a fix: 调整滑动条横条和刻度颜色
调整滑动条横条和刻度颜色

Log: 调整滑动条横条和刻度颜色
Bug: https://pms.uniontech.com/bug-view-254295.html
Influence: 调整滑动条横条和刻度颜色
2025-01-02 13:42:06 +08:00
renbin fb8711bdff fix: resident floating message cannot be closed
windowHandle() is not created by default,
use close() instead.

Bug: PMS-297669
2025-01-02 01:45:32 +00:00
deepin-ci-robot 367371aac6 chore: update changelog
Release 5.7.5.
2024-12-17 09:54:39 +08:00
ck cda1bbbbcc fix: webengineView abnormal in DMainWindow
`DPlatformWindowHandle::setWindowSurfaceType(QWindow::OpenGLSurface)`
needs to be called before constructing DMainWindow when use
webengineview
2024-12-09 15:46:52 +08:00
deepin-ci-robot b3410a0241 chore: update changelog
Release 5.7.4.
2024-12-06 11:03:21 +08:00
zhangkun 5b338f0cbc fix: some windows have dual title bars
- 使用windowhandle的close()去关闭窗口
- DDialog和DMainWindow适配Treeland

pms: BUG-286173
2024-11-28 12:02:27 +08:00
renbin 3fb2ebda49 fix: ddialog's lambda func may cause segfault
During call DDialog::exec(), the onButtonClickedClose
flag is set to true by default.
At this point, DDialog connect lambda function captures the
**temporary variable**, and does not disconnect the signal
after the exec() call ends.
As a result of calling the same dialog object multiple times,
other addresses may be **overwritten** by previous temporary
variable writes, causing segfault (crashes).

Use done() to set the return value instead of via connect
lambda function.

Log: Fixed a bug that may cause segfault.
2024-11-22 02:58:54 +00:00
deepin-ci-robot 04bc2b3610 chore: update changelog
Release 5.7.3.
2024-11-22 02:31:41 +00:00
deepin-ci-robot 6081d41904 chore: update changelog
Release 5.7.2.
2024-11-15 05:48:24 +00:00
ck b105f2c31a chore: use testAttribute instead of environment test
DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::IsWaylandPlatform)
2024-11-13 08:10:29 +00:00
deepin-ci-robot 0fefe175b3 chore: update changelog
Release 5.7.1.
2024-10-31 02:26:32 +00:00
覃本学 9d77c29c2c feat: 动效增加开关
动效增加开关,通过DGuiApplication::testAttribute(DGuiApplication::HasAnimations)接口和环境变量DTK_DISABLE_ANIMATION_***控制动效总开关和单个动效开关

Log: 动效增加开关
2024-10-25 09:39:27 +00:00
zhangkun 9fa7f1e55b feat: ExpandButton in titlebar is not affected by the compact mode
Height fixed 48

Bug: https://pms.uniontech.com/bug-view-280091.html
2024-10-25 03:27:22 +00:00
zhangkun c23fc68f25 fix: Compile issues
Conditional compilation package incomplete

Log:
2024-10-25 03:14:54 +00:00
Zhang Dingyuan 1332c15217 feat: support Qt 6.8
support qt 6.8

Log:
2024-10-22 11:23:45 +00:00
wangfei 87fd9f385a fix: wrong status of switch button
correct the wrong initial status of switch button

Bug: https://pms.uniontech.com/bug-view-276221.html
Log:
2024-10-10 02:47:53 +00:00
wangfei a9c047dfc0 fix: display exception of checkbox & radiobutton
add dci assets about checkbox and radiobutton

Bug: https://pms.uniontech.com/bug-view-276189.html
Log:
2024-10-10 02:47:17 +00:00
wangfei 83976886f6 fix: obsolete interfaces
replace obsolete interfaces to compatible to qt6

Log:
2024-10-08 09:21:21 +00:00
wangfei 1d8279345e Revert "chore: 使用dci icon重绘toolbutton, 增加动画 (#594)"
This reverts commit 4e5c37c017.
2024-09-26 15:56:05 +08:00
Whale107 b968087637 fix: adjust switchbutton dci icon (#603)
adjust switchbutton dci icon

Log:
2024-09-23 06:50:04 +00:00
Whale107 6cfb9aba46 chore: 增加应用内通知动画 (#592)
增加应用内通知动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 35841b5899 chore: 使用dci icon重绘switchButton, 增加动画 (#593)
使用dci icon重绘switchButton, 增加动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 4e5c37c017 chore: 使用dci icon重绘toolbutton, 增加动画 (#594)
使用dci icon重绘toolbutton, 增加动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 bc3a6eaa3b chore: 增加ButtonBox hover 和切换动画 (#595)
增加ButtonBox hover 和切换动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 78fccaa520 chore: 增加滚动区域滚轮滚动到顶部或底部的回弹效果 (#596)
增加滚动区域滚轮滚动到顶部或底部的回弹效果

Log:
2024-09-23 06:50:04 +00:00
Whale107 996af1a1a9 fix: adjust indeterminateprogressbar color (#597)
adjust indeterminateprogressbar color

Log:
2024-09-23 06:50:04 +00:00
Whale107 58f4534c92 chore: 新增搜索框图标移动动画 (#590)
新增搜索框图标移动动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 8ec72aeef9 chore: 新增进度条动效和一个新进度条类 (#589)
新增进度条动效和一个新进度条类

Log:
2024-09-23 06:50:04 +00:00
Zhang Dingyuan 38e3cc14be feat: support treeland notitlebar mode
check environment DDE_CURRENT_COMPOSITOR is TreeLand to override
DWayland.

Log:
2024-08-29 13:25:54 +08:00
Whale107 553522e30c
fix: 如果窗口打开时即为最大化状态,则最大化图标显示错误 (#601)
窗口打开时没有windowstatechanged事件,不会去设置窗口状态,在showEvent中处理一下

Log:
Bug: https://pms.uniontech.com/bug-view-262201.html
Influence: mainwindow最大化
2024-08-29 01:33:05 +00:00
deepin-ci-robot 6ab28edbfb chore: update changelog
Release 5.6.34.
2024-08-21 23:16:45 +08:00
deepin-ci-robot 88bd12d1af chore: update changelog
Release 5.6.33.
2024-08-20 03:43:33 +00:00
Whale107 3a01bae5e6
fix: 控制中心标题栏返回按钮消失 (#588)
DTK清除多余space使用的方法有问题,应使用itemAt而不是takeAt

Log: 控制中心标题栏返回按钮消失
Bug: https://pms.uniontech.com/bug-view-264379.html
Influence: 控制中心-标题栏
2024-07-15 05:58:31 +00:00
覃本学 09e10948c3 fix: DTitleBar动态设置Icon时间距异常
spacerItem多次设置,改为设置前先移除之前的

Log:
2024-07-08 09:30:05 +08:00
zty199 8df23f459d fix: wrong product icon size in DAboutDialog
when compiled with Qt6, product icon size is set to windowHandle().baseSize()
which is not the same as compiled with Qt5 (fixed size 128x128)

Log: use 128x128 pixmap in DAboutDialog::setProductIcon
2024-07-01 07:27:04 +00:00
zty199 bed8dbf3b9 fix: DMessageManager::sendMessage cause crash
in sendMessage_helper, seems that content could be nullptr when QWebEngineView is DMainWindow's centralWidget

Log: add judgment whether content is nullptr in sendMessage_helper
2024-07-01 14:59:38 +08:00
deepin-ci-robot a505059b54 chore: update changelog
Release 5.6.31.
2024-06-27 17:57:11 +08:00
deepin-ci-robot f6f23e5169 chore: update changelog
Release 5.6.30.
2024-05-31 15:28:17 +08:00
Cjq 4b1e714cf8
fix: 解决wayland下,DDialog窗口透明问题的问题 (#578)
wayland下,当进程设置DGuiApplicationHelper::ColorCompositing后,DDialog需要
主动设置模糊窗口效果

Log:
Bug: https://pms.uniontech.com/bug-view-249975.html
Influence: wayland下,DDialog窗口模糊
2024-05-29 05:47:00 +00:00
zhangkun 0f2c010bf8 feat: modify the spacing between the title and the top
Set the space for title layout to 0

Issue: https://github.com/linuxdeepin/developer-center/issues/8418
2024-05-28 15:52:39 +08:00
deepin-ci-robot e0d36238e5 chore: update changelog
Release 5.6.29.
2024-05-16 02:27:28 +00:00
ck e6dd474f22 fix: crash when follower was destroyed
Bug: https://pms.uniontech.com/bug-view-254383.html
2024-05-13 09:31:50 +00:00
rewine 096e9939e5 fix: support build on qt 6.7
log: QKeyMapper::possibleKeys return QList<KeyboardModifiers> in qt 6.7
2024-05-11 18:12:02 +08:00
Yutao Meng 44bf1633ce revert: "fix: 自定义页码切换问题"
Do not reset custom page ranges when changing printers, page
size or anything else like this.

Issue: https://github.com/linuxdeepin/developer-center/issues/7983
Log: revert f53dfffb63
2024-05-11 05:08:59 +00:00
覃本学 9ad1443b0b fix: 修复大多数按钮不响应enter事件
修复大多数按钮不响应enter事件,仅支持DApplication应用

Log: 修复大多数按钮不响应enter事件
Bug: https://pms.uniontech.com/bug-view-253935.html
Influence: 按钮响应键盘回车事件
2024-05-09 08:55:37 +00:00
deepin-ci-robot 4259087590 chore: update changelog
Release 5.6.28.
2024-04-30 15:46:16 +08:00
wangfei 374b679186 fix: window menu icon
revert new icon to old menu icon

Issue: https://github.com/linuxdeepin/developer-center/issues/8297
2024-04-28 13:02:24 +08:00
deepin-ci-robot 33e531f734 chore: update changelog
Release 5.6.27.
2024-04-23 09:24:50 +08:00
zhangkun 410bd874aa fix: Split window position error
Move to inside the screen when exceeding the edge of the screen

Issue: https://github.com/linuxdeepin/developer-center/issues/4840
2024-04-12 10:08:02 +08:00
ssk-wh 12bdf18b15 fix: fix the problem of text position in dstyleditemdelegate
as title

log: as title
issue: https://github.com/linuxdeepin/developer-center/issues/7673
2024-04-09 10:38:24 +08:00
Yixue Wang 3120a8d784 fix: next action rect position error
Spacing should be counts of pixel without any content between two
line. for two dot, spacing = dot1 - dot2 - 1, not dot1 - dot2.

Log: fix next action rect position error
Issue: https://github.com/linuxdeepin/developer-center/issues/6379
2024-04-01 14:44:33 +08:00
Yixue Wang cf84e0f544 chore: disable broken workflow build
Disable debian build cause dtkwidget may depends on qt6.6, but debian's
version is 6.4.

Log: disable broken workflow build
2024-04-01 13:19:00 +08:00
deepin-ci-robot 03bf76a074 chore: update changelog
Release 5.6.26.
2024-03-27 14:26:01 +08:00
Yixue Wang b9cc28f708 feat: don't hide alert message automatically.
Don't hide alert message automatically when follower hides.

Log: don't hide alert message automatically.
Issue: https://github.com/linuxdeepin/developer-center/issues/5622
2024-03-25 13:08:08 +08:00
覃本学 881ff56727 chore: 调整标题栏“更多/最小化/最大化/关闭按钮”的图标为最新1070图标样式
调整标题栏“更多/最小化/最大化/关闭按钮”的图标为最新1070图标样式

Log: 调整标题栏“更多/最小化/最大化/关闭按钮”的图标为最新1070图标样式
Task: https://pms.uniontech.com/task-view-331465.html
Influence: 窗口标题栏 更多/最小化/最大化/关闭按钮
2024-03-20 16:51:32 +08:00
deepin-ci-robot aff498c773 chore: update changelog
Release 5.6.25.
2024-03-11 15:23:35 +08:00
wangfei 9215ab2c54 fix: black circle in PasswordLineEdit
change 0x25CF to 0x26AB(medium black circle) on the password character

Issue: https://github.com/linuxdeepin/developer-center/issues/7335
2024-03-07 09:29:19 +08:00
wangfei f8fb76f1df Revert "fix: black circle in PasswordEdit"
This reverts commit a6b5b14699.
2024-03-07 09:29:19 +08:00
wangfei 82e9562493 chore: Adapt to Qt 6.6.1
replace the obsolete interface

Log: Adapt to Qt 6.6.1
2024-03-06 11:50:54 +08:00
wangfei a6b5b14699 fix: black circle in PasswordEdit
set the size of black circle to 6 pixel by changing the font,
set the letter spacing to 200 under PercentageSpacing type.

Issue: https://github.com/linuxdeepin/developer-center/issues/7335
2024-03-05 15:39:11 +08:00
ck e2ffdc6c5a fix: dconfig frequent construction and destruction
Frequent construction and destruction will connect / disconnect dbus...
2024-03-04 16:37:01 +08:00
Mars-CB c0f0268e53 fix: 修复dslider刻度标签内容过长时,显示不下的问题
内容过长时,取省略号替代

Log:
Task: https://pms.uniontech.com/task-view-325247.html
Influence: DSlider刻度标签显示
Change-Id: I47993df919b5fcc238db42b609b6183d5011e14a
(cherry picked from commit 0b89d4cbcc9817b7829dfc5d196284f5c8de9945)
2024-02-28 16:54:04 +08:00
覃本学 cd1f2fd92a fix: 修复关于对话框在应用名称很长时内容有被截断的情况
调整关于对话框布局

Log: 修复关于对话框在应用名称很长时内容有被截断的情况
Bug: https://pms.uniontech.com/bug-view-240835.html
Influence: 关于对话框布局
2024-02-28 15:45:09 +08:00
覃本学 9ee2004d16 fix: 调整关于对话框链接颜色
调整关于对话框链接颜色

Log: 调整关于对话框链接颜色
Task: https://pms.uniontech.com/task-view-303535.html
Influence: 关于对话框链接颜色
2024-02-28 15:45:09 +08:00
覃本学 9f16214bc3 chore: 调整关于对话框界面布局和样式
调整关于对话框界面布局和样式

Log: 调整关于对话框界面布局和样式
Task: https://pms.uniontech.com/task-view-303535.html
Influence: 关于对话框
2024-02-28 15:45:09 +08:00
ck f99368a715 chore: bump version to 5.6.23
update changelog
2024-02-22 17:10:28 +08: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
ck 2edd4a79a2 chore: use hasBlurWindow instead of hasComposite
hasBlurWindow is more accurate
2024-02-22 17:10:28 +08:00
deepin-ci-robot 0a97de24b8 chore: update changelog
Release 5.6.22.
2024-01-12 14:39:59 +08:00
chenhongtao 894d840e41 chore: remove unused headers in header
Log:
2024-01-10 10:04:34 +08:00
ck 866198ec8b fix: double click edit incorrect format
Issue: https://github.com/linuxdeepin/developer-center/issues/6780
2024-01-09 17:50:50 +08:00
deepin-ci-robot 419439305b chore: update changelog
Release 5.6.21.
2024-01-09 14:48:57 +08:00
ck 2024fe2ee1 chore: logical judgment errors
default is attribute is UseInactiveColorGroup
2023-12-29 09:35:53 +08:00
ck c401931342 chore: nullptr check in dstyleditemdelegate
nullptr check
2023-12-29 09:35:53 +08:00
deepin-ci-robot a151867963 chore: update changelog
Release 5.6.20.
2023-11-28 17:54:58 +08:00
ck 13505358b6 feat: move ddesktopservices to dtkgui
move ddesktopservices from dtkwidget to dtkgui

Issue: linuxdeepin/dtk#134
2023-11-28 13:40:36 +08:00
ZHANGTINGAN 01043dfa1b fix: DApplication初始化过程中会覆盖原有事件掩码,导致丢失事件
DApplication应用初始化时通过设置xcb窗口属性,设置了XCB_EVENT_MASK_PROPERTY_CHANGE事件掩码,此时Xorg会对发送给客户端的事件根据事件掩码来过滤,例如关闭文件选择对话框时发送的类型为focusIn的clientMessageEvent就不会发送给客户端。修改为先判断当前事件掩码是否含有XCB_EVENT_MASK_PROPERTY_CHANGE掩码,有的话不进行处理,没有的话在原有掩码上追加该掩码

Bug: https://pms.uniontech.com/bug-view-220369.html
2023-11-13 15:10:13 +08:00
ck 9fdb27a91f fix: DArrowRectangle left/right style incorrect
radiusArrowStyleEnable 后 border 少了一些绘制路径

Issue: https://github.com/linuxdeepin/dtk/issues/92
2023-11-10 16:50:57 +08:00
覃本学 b15940de6b fix: 修复DLicenseDialog内存泄漏
listModel没挂父对象也没有主动销毁

Log: 修复DLicenseDialog内存泄漏
Influence: DLicenseDialog
2023-11-09 10:31:12 +08:00
Yixue Wang 371cc125cc fix: export inexistent classes in config
Some classes is totally dropped in dtk6. These should not be exported
in config file.

Log: fix exporting inexistent classes in config
2023-10-27 14:02:55 +08:00
Yixue Wang fcd33acfa9 fix: redefinition of verticalTabs
Function verticalTabs is exposed by qtabbar_p.h as constexpr static
inline, original definition in dtabbar.cpp will lead to an redefinition
error. Just rename dtk's implementation.

Note: Probably we should replace private implementaion with Qt's
implementation after all versions of Qt expose this function.
Log: fix redefinition of verticalTabs
2023-10-27 13:34:45 +08:00
Yixue Wang f5eafba7ff chore: add synchronization workflow
Add synchronization workflow to synchronize to DTK6.

Log: add synchronization workflow
2023-10-27 09:41:21 +08:00
ck 42e319184c feat: styleHint tweak
SH_UnderlineShortcut
Whether shortcuts are underlined.

SH_Menu_KeyboardSearch
Whether disable the typing to search for menu items
2023-10-25 14:00:57 +08:00
deepin-ci-robot a694fae2ee chore: update changelog
Release 5.6.19.
2023-10-24 02:33:26 +08:00
He Xin f5d75bf95a feat: change DTK_STATIC_TRANSLATION to the default setting.
change DTK_STATIC_TRANSLATION to the default setting.
默认设置DTK_STATIC_TRANSLATION,以便第三方dtk应用可以较方便携带翻译文件
2023-10-19 10:45:11 +08:00
deepin-ci-robot 59b0befeef chore: update changelog
Release 5.6.18.
2023-10-18 15:16:21 +08:00
syn 012d67a362 doc: update docs for denhancedwidget
更新denhancedwidget的文档,添加示例代码

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-10-16 10:47:11 +08:00
zhangkun e0b3d0bbc3 fix: 修复打印预览,切换打印机的时候预览图颜色显示异常
颜色选项默认选择第一项,第一项有可能是彩色或黑白,QCombobox在设置与之前相同的项的时候其CurrentIndexChanged信号不会被触发,正因如此,导致预览图没有及时没刷新,修改为在为组合框添加item的时候,将其currentIndex设置为-1,保证后续的CurrentIndexChanged信号及时被触发

Log: 修复打印预览,切换打印机的时候预览图颜色显示异常
Bug: https://pms.uniontech.com/bug-view-220315.html
Influence: 打印预览切换打印机时预览图的颜色表现
2023-10-13 15:42:47 +08:00
ck 7d85d0bc97 feat: use DIconTheme::findQIcon
Replacing QIcon::fromTheme.

Issue: linuxdeepin/developer-center#4112
2023-10-12 15:16:45 +08:00
Felix Yan 3a2f266613 chore: correct typos about action slots
Log:
2023-10-02 12:15:14 +08:00
renbin b948f4e034 fix: ColorMode may be inconsistent with settings.
The current ColorMode is inconsistent with the set
currentIndex after switch the printer.
Refresh the current print ColorMode after reset
the ColorMode combobox.

Log: ColorMode may be inconsistent with settings.
Bug: https://pms.uniontech.com/bug-view-219201.html
Influence: PrintPreview
2023-09-13 08:47:08 +08:00
wangyixue dafa34ed8a chore: update changelog
Release 5.6.17.
2023-09-08 23:15:48 +08:00
ck 93d4407f4c fix: example sidebar not show
setSidebarWidget will show sidebar widget
2023-09-08 16:54:46 +08:00
xzl 3635a3ba77 chore: support Qt 6.4.2
Log:
2023-09-08 16:48:05 +08:00
ck 5f0e347e32 chore: do not show alert message if text is empty
show an empty alert frame makes no sense
2023-09-08 15:05:03 +08:00
YeShanShan 0ba6eb1b3d feat: Add UT for DWaterMarkWidget
Add UT.
2023-09-07 12:12:10 +08:00
xzl 65308b9f3c fix: remove not working test case
Log:
2023-09-05 13:03:57 +08:00
ck f3d1a4423b feat: DFontSizeManager tweak
- add T11 (default 8 px)
- T5 17px ==> 16px

Issue: https://github.com/linuxdeepin/dtk/issues/116
2023-09-05 10:56:41 +08:00
wangfei 8a4bacc437 fix: sidebar expand/collapse status error
diff expand/collapse from sidebar visible

Issue: https://github.com/linuxdeepin/developer-center/issues/5297
2023-08-28 09:20:38 +08:00
deepin-ci-robot edd36a92da chore: update changelog
Release 5.6.16.
2023-08-22 15:17:45 +08:00
wangyixue 0403aecf3b fix: update dependency libfreetype-dev
libfreetype6-dev is a transitional package. Debian sid now uses
libfreetype-dev. Change libfreetype6-dev to libfreetype-dev.

Log: update dependency libfreetype-dev
2023-08-21 17:15:46 +08:00
xzl 72c59d8292 chore: add test for dwatermarkhelper
Log:
2023-08-18 15:37:01 +08:00
xzl 0312b95efa feat: add ut_dpalettehelper
Log:
2023-08-18 11:24:06 +08:00
wangyixue b2e211292d chore: update changelog
Release 5.6.15.
2023-08-14 11:01:49 +08:00
ck e5108b00bc chore: move loadtranslator to dtkgui
dependcy: https://github.com/linuxdeepin/dtkgui/pull/183
load qt and app translation files in dtkgui
dtkwidget only load dtkwidget_xx.qm
2023-08-12 10:37:07 +08:00
LyYeeeYuwu eeb4563233 doc: update docs for dcrumbedit
更新dcrumbedit的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-08-10 09:54:50 +08:00
homehome a6cbb1c4a9 doc: update docs for dcircleprogress
更新dcircleprogress的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-08-03 16:09:41 +08:00
syn 67b3dc243e doc: update docs for dtooltip
更新dtooltip的文档,添加示例代码和图片

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-08-03 10:56:09 +08:00
LyYeeeYuwu 772ca04bde doc: update docs for dfontcombobox
更新dfontcombobox的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-08-02 19:29:27 +08:00
YeShanShan 06f65568da feat: Add UT for DComboBox
Add UT.
2023-07-31 11:36:14 +08:00
xzl 290e075c63 chore: remove useless files
Log:
2023-07-29 21:58:21 +08:00
deepin-ci-robot 879a19c30a chore: update changelog
Release 5.6.14.
2023-07-27 16:17:11 +08:00
wangyixue 63cb178bc7 chore: deprecate dhidpihelper
DHiDPIHelper has nothing to do with dtkwidget. Move the only function
loadNxPixmap to Dtk::Gui::DIcon. Deprecate the implementation in
dtkwidget.

Log: deprecate dhidpihelper
2023-07-27 13:47:42 +08:00
xzl 8421ade36e fix: fix the bug of the test-recoverage.sh
Log:
2023-07-27 10:43:56 +08:00
LyYeeeYuwu cb360f23d6 doc: update docs for dtextedit
更新dtextedit的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-26 13:20:42 +00:00
xzl 5fc7371d91 feat: add some UT
Log:
2023-07-21 14:14:06 +08:00
xzl 49a0919930 fix: to fix unused qrc file in UT
Log:
2023-07-21 09:49:01 +08:00
xzl 75ad5f10cb fix: fix memory leak in danchors.cpp
Log:
2023-07-18 15:34:35 +08:00
xzl 2fa6097c85 Revert "fix: 修改内存泄露问题"
This reverts commit 7efd5d2f03.
2023-07-18 15:34:35 +08:00
homehome b608210a56 doc: update docs for dmessagemanager
更新dmessagemanager的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-14 02:30:05 +00:00
SPUER 40b70e80f0 chore: reduce compilation warnings
解决部分文档编译警告

解决cpp文件中部分注释编译警告

Issue: https://github.com/linuxdeepin/dtk/issues/96
2023-07-14 01:37:10 +00:00
LyYeeeYuwu 105bbeeaab doc: update docs for dprogressbar
更新dprogressbar的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-14 09:11:09 +08:00
homehome ac719a9bf1 doc: update docs for dcoloredprogressbar
更新dcoloredprogressbar的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 08:22:24 +00:00
homehome f7132b15a7 doc: update docs for dbaseline
更新dbaseline的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 08:02:05 +00:00
LyYeeeYuwu 913e39c63e doc: update docs for dsearchedit
更新dsearchedit的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 07:49:23 +00:00
syn 909d3e06df doc: update docs for dspinbox
更新dspinbox的文档,添加示例代码及运行图片

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 07:03:56 +00:00
homehome 2f19f9113e fix: the 'ValueChanged' signal was never emitted in dcircleprogress
Due to a lack of signal triggering in dcircleprogress,the 'ValueChanged' signal was never emitted.

Log:为dcircleprogress修复了一个接口bug,在setValue()函数内部设置信号发射,解决了ValueChanged信号不会发射的问题
2023-07-11 14:37:36 +08:00
Skye-rs c2063d8316 doc: update docs for dtoolbutton
更新dtoolbutton的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 05:35:29 +00:00
LyYeeeYuwu 1e7568bd3b doc: update docs for dframe
更新dframe的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 05:15:56 +00:00
LyYeeeYuwu 454855b4bc doc: update docs for dwarningbutton
更新dwarningbutton的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 01:53:55 +00:00
deepin-admin-bot 31356222e8 chore: Sync by 559e91167d
sync by github workflow

Log: none
Influence: none
2023-07-10 06:29:54 +00:00
xzl 28fe13924b fix: remove ut to support DTK6.0
Log: 移除了部分DTK6.0不支持的ut,以便通过编译,后续需要补充
2023-07-07 16:20:45 +08:00
LyYeeeYuwu d490659575 doc: update docs for dbuttonbox
更新dbuttonbox的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-07 02:14:08 +00:00
Skye-rs 3e2272e47e doc: update docs for dipv4lineedit
更新dipv4lineedit的文档

Log: update docs
Issue: https://github.com/linuxdeepin/dtk/issues/94#issue-1773136810
2023-07-07 01:57:29 +00:00
syn b888a7917f doc: update docs for diconbutton
更新diconbutton的文档,添加示例代码及运行图片

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-07 01:29:29 +00:00
syn 163831d9be doc: update docs for dbaseexpand
更新dbaseexpand的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-06 04:32:09 +00:00
homehome 9e3b78c05f doc: update docs for dwaterprogress
更新dwaterprogress的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-06 03:59:37 +00:00
homehome 0fb6c31af1 doc: update docs for dsuggestbutton
更新dsuggestbutton的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-06 03:45:04 +00:00
Skye-rs 2c51f40f28 doc: A small change to Dcombobox
改正dcombobox.cpp中一处注释

Log: Correction of a comment in Dcombobox
2023-07-06 02:03:08 +00:00
Skye-rs e054ff19a5 doc: update docs for dcombobox
更新dcombobox文档

Log: update docs
Issue: https://github.com/linuxdeepin/dtk/issues/94#issue-1773136810
2023-07-05 10:00:54 +08:00
heyuming eb5e0f0a11 refactor!: deprecate some interfaces in dtk6
Log: 在dtk6中废弃一些接口
2023-07-04 18:26:14 +08:00
homehome 80a6fc7875 doc: update docs for dtabbar
更新dtabbar的文档

Log: update docs

Issue: linuxdeepin/dtk #94
2023-07-04 08:49:08 +00:00
homehome aa1818415f doc: update docs for dpasswordedit
更新dpasswordedit的文档

Log: update docs

Task: deepin-community/coding-quarter#26
2023-07-03 08:59:15 +00:00
YeShanShan 05b122cfd5 fix: Button background lightness display error
Adjust color's lightness by ColorType.

Issue: https://github.com/linuxdeepin/dtk/issues/82
2023-06-26 13:02:08 +08:00
heyuming 53ee4fb198 chore: update changelog
Release 5.6.13

Log:
2023-06-26 10:21:54 +08:00
wangyixue f357008be5 fix: titlebar buttons don't recover
Titlebar has a targetWindow and it will sync disableFlags with window's
motif functions. Do not set disableFlags according to the current
state of buttons. Because when targetWindow(That is also top level
window of titlebar) is disabled, all its children will always return
false when invoking isEnabled.
Also, never explicitly disable any button unless you know when to
enable it again. Let top level window manages it. DisableFlags only
apply to configuration, will not reveal buttons' state.

Log: fix titlebar buttons don't recover
2023-06-26 10:08:19 +08:00
heyuming c2efc57609 fix: unit test error under qt6
Log: 修复qt6下的单元测试错误
2023-06-25 16:46:58 +08:00
heyuming 5a8a34a6c6 fix: fix compile error under qt6
Log: 修复Qt6下的编译错误
2023-06-21 17:01:10 +08:00
heyuming 5804bb2dd9 chore: remove old dependency
Log: 移除旧依赖
2023-06-21 15:56:17 +08:00
heyuming e19d7fbe7a fix: unit test error under qt5
Log: 修复qt5下单元测试的错误
2023-06-21 15:47:24 +08:00
ck caa5e197d7 fix: Attempted to overwrite a QRandomGenerator to system() or global().
QRandomGenerator::global() no need to call seed
2023-06-21 11:32:16 +08:00
wangyixue 5a11d970b1 fix: compile error of unit test
ut_dstyleditemdelegate.cpp does not using namespace Dtk::Gui; Add
this to it.

Log: fix compile error of unit test
2023-06-20 16:44:36 +08:00
heyuming 011f3f4028 fix: correct copy assignment operator
Log: 纠正拷贝赋值运算符
2023-06-19 16:13:19 +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
ck 428675ebb8 fix: TextEdit color group not update
control's palette not changed whene window activate changed

Bug: https://pms.uniontech.com/bug-view-196603.html
2023-06-16 16:15:19 +08:00
heyuming 2382ebaba2 fix: DApplication casting error
Log: 修复DApplication的转换错误
2023-06-14 10:09:43 +08:00
wangfei 77956103b0 chore: update translations abouut license
update translations about license

Log: update translations about license
2023-06-08 11:03:28 +08:00
ck 7532e97c1d fix: abnormal font size
if qApp->font() dpi is invalid(<=0) fallback to d_defaultDpi
see qt_defaultDpiX / qt_defaultDpiY(qfont.cpp)

Issue: https://github.com/linuxdeepin/dtk/issues/17
2023-05-30 16:45:27 +08:00
caixiangrong 24f758e5db fix: 修改分屏菜单位置错误
只Qt::Widget的窗口并有父窗口的计算使用父窗口rect

Log: 修改分屏菜单位置错误
Bug: https://pms.uniontech.com/bug-view-199083.html
Influence: 锁屏界面/任务栏等网络插件窗口显示,窗口分屏提示窗口
2023-05-30 16:39:17 +08:00
wangfei 21eafa9b28 chore: Change the text of the title in dlicensedialog
Change "open-source software" to "Open-Source Software"

Log: Change the text of the title in dlicensedialog
2023-05-18 15:52:35 +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 a5b2f57b18 chore: change the text of the title on licensedialog
change the text "Credits" to "open-source software"

Log: change the text of the title on licensedialog
2023-05-17 16:40:07 +08:00
ck 25a9e60c09 chore: bump version to 5.6.12
update changelog
2023-05-15 11:42:41 +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 d152e0aa78 fix(licensedialog): it does't work by clicking enter action
connect two signals between enter action and listview on license dialog.

Log: fix the issue that it doesn't work by clicking enter action
2023-05-12 17:33:33 +08:00
wangfei c3a0ef938c chore: update translations about license feature
add translations about license feature

Log: update translations about license feature
2023-05-11 13:17:01 +08:00
deepin-admin-bot 30992ff1b0 chore: Sync by 2e5e092ba3
sync by github workflow

Log: none
Influence: none
2023-05-10 02:24:49 +00: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
ck 42612a2fd1 chore: use activatableServiceNames
Use the activatableServiceNames instead of isServiceRegistered
to detect new version dbus interfaces exists
2023-05-09 14:46:59 +08:00
ck eb2fff404f chore: bump version to 5.6.11
update changelog
2023-05-08 15:07:20 +08:00
wangfei dcb6217d4b fix: adjust floatbutton's size in compact mode
In compact mode, add the margins to sizehint.

Log: modify floatbutton's content size to 36*36
Issue: https://github.com/linuxdeepin/dtk/issues/36
2023-05-05 11:13:02 +08:00
wangfei 85a476724d chore: update translation files
delete some deprecate words.
add some words about custom toolbar.

Log: update translation files
2023-05-05 11:12:11 +08:00
rewine 802ed1d930 fix: must set CMAKE_INSTALL_PREFIX before GNUInstallDirs
Log:
Never modify the value of CMAKE_INSTALL_PREFIX after including GNUInstallDirs
Otherwise incorrect CMAKE_INSTALL_FULL_XXXX values will be computed
2023-04-28 07:39:52 +00:00
wangfei 0f0f79f6ca fix: the redundant field "version" has been added
remove the redundant field "version: " in about dialog

Issue: https://github.com/linuxdeepin/dtk/issues/62
2023-04-26 13:40:14 +08:00
bluesky f0323b6608 fix: titlebar was not updated when titlebarHeight was changed
修复titlebarHeight属性被修改时,标题栏没有实时生效。

Issue: https://github.com/linuxdeepin/dtk/issues/51
2023-04-26 13:14:50 +08:00
donghualin 2f8df6c939 fix: 修复ArrowRectanble设置位置错误
当给ArrowRectanble设置parent的时候,调用show方法没有计算顶层窗口的位置导致最终计算的窗口错误

Log: 修复锁屏界面竖屏无法显示网络列表
Influence: 登陆界面和锁屏界面的网络列表
Bug: https://pms.uniontech.com/bug-view-195913.html
2023-04-24 14:50:18 +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
Felix Yan 45c20d90e5 fix: suppress cmake warning for missing directory specified
Fixes the following warning:

```
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.
```
2023-04-21 13:22:03 +08:00
Felix Yan 29cdb8b79f fix: remove unused librsvg dependency from dtkwidget.spec
It's no longer in use.
2023-04-21 13:21:34 +08:00
bluesky 0354aa60f1 doc: update DSwitchButton docs
更新DSwitchButton控件的文档

Log: update docs
2023-04-21 10:30:49 +08:00
wangfei 359121fea6 chore: init option by baseStyleOption() in diconbutton
init option by virtual function baseStyleOption() in diconbutton

Log: init option by baseStyleOption() in diconbutton
2023-04-20 16:31:31 +08:00
wangfei 47c5b4576f Revert "fix: icon size is abnormal when dpi > 1"
This reverts commit de8d8f9920.
2023-04-20 16:30:09 +08:00
wangyixue 89a20b8120 feat: add DMPRISControl example
Add example in collections for DMPRISControl widget.
2023-04-18 10:10:56 +08:00
wangyixue 287fd228c5 fix: DMPRISControl style conflicts with design
* Icon is too small compared to design, replace the icon with new
icon that is 36x36 and fix the button size (52x52) and icon size.
* Spacing between media control buttons is smaller than design. Set
fixed spacing in control buttons layout (Default is 80px).
* Add DMPRISControl example in collections.

Log: fix DMPRISControl style conflicts with design
2023-04-18 10:10:56 +08:00
ck 1521966be9 chore: update to 5.6.10
Log: update changelog
2023-04-17 18:03:29 +08:00
Felix Yan 2efad74dcd fix: don't set CMAKE_BUILD_TYPE in CMakeLists.txt
Distributions actually prefer CMAKE_BUILD_TYPE being `None` (the default value) so that their CFLAGS/LDFLAGS are used instead of the cmake presets. Let's do not overwrite it with "Release".
2023-04-17 17:56:00 +08:00
Felix Yan dd2e38e77c fix: remove unused cmake option from PKGBUILD
`HUNTER_ENABLED` isn't mentioned elsewhere in this project.
2023-04-17 17:32:32 +08:00
Felix Yan 0a9216852a fix: remove unused librsvg dependency from PKGBUILD
It's not mentioned anymore in this project.
2023-04-17 17:29:16 +08:00
YeShanShan 34ecd23d86 fix: DFloatingButton can't display dciicon
Option's `features` is overridden.
2023-04-17 15:45:58 +08:00
deepin-admin-bot 099a440836 chore: Sync by 2dd22560f7
sync by github workflow

Log: none
Influence: none
2023-04-14 08:42:25 +00:00
deepin-admin-bot 4c4f49199b chore: Sync by c5d10d3aeb
sync by github workflow

Log: none
Influence: none
2023-04-14 08:32:43 +00:00
YeShanShan 1f516707cf fix: TextAction doesn't display in center
We calculate text rect including origin text and action text
in AliginVCenter layout, and then paint it.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/408
2023-04-13 15:54:08 +08:00
YeShanShan acaeb90360 fix: Modify ButtonMargin from 10 to 8
According to designer.
  It results display error for dde-control-center's shutcut keys
for `10`, so we change it back.

Issue: https://github.com/linuxdeepin/dtkwidget/pull/373
2023-04-13 15:53:48 +08:00
wangfei b1954f2ec2 Fix: Qt::ToolButtonTextUnderIcon does't work
set a fixed layout mode Qt::ToolButtonTextBesideIcon in codebase

Log: delete fixed layout Qt::ToolButtonTextBesideIcon
Issue: https://github.com/linuxdeepin/dtkwidget/issues/403
2023-04-12 16:49:49 +08:00
YeShanShan dbf50f00c5 fix: ListView's widget switching hide and show frequently
It's apparent when we set a widget for DStandardItem, and
hovering it, it look obvious when changing Widget's cursor.
  We hide widget depending on the different of last and current
frame, When we hover one item, Viewport also to be repaint,
and it's area is an item hovered, this caused we made a
calculation error.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/364
2023-04-11 09:14:35 +08:00
wangfei de8d8f9920 fix: icon size is abnormal when dpi > 1
ButtonIconSize does't multiply ratio in dstyle, which lead to
both pixmap size and rect size disagree.

Log: modify ButtonIconSize's default value
Issue: https://github.com/linuxdeepin/dtkwidget/issues/390
2023-04-07 10:09:02 +08:00
YeShanShan d9e2e16cd6 fix: Build error for Qt 5.15~6.1
PM_LineEditIconSize is introduced in qt6.2 or patch,
the iconSize is always 20 in NormalMode or CompactMode.
Building error is introduced in 'ec55b744d6ae766911d01948c56eac8b18fc5289'

Log:
2023-04-04 13:32:27 +08:00
wangfei 091b978048 fix: SwitchButtonHandle isn't expanded when switchbutton is expanded
set the handle's width to half of switchbutton's width;
set the handle's height to switchbutton's height.

Log: modify the handle's size in switchbutton
Issue: https://github.com/linuxdeepin/dtkwidget/issues/389
2023-04-04 09:54:11 +08:00
ck 9c56701109 chore: update to 5.6.9
Log: update changelog
2023-04-03 10:28:26 +08:00
ssk-wh 92573ab37e feat: 增加覆盖指定界面的水印类DWaterMarkHelper
可通过DWaterMarkHelper的接口设置水印样式,并通过registerWidget添加水印

Log:
Influence: 无
Task: https://pms.uniontech.com/task-view-243575.html
Change-Id: I84cf4d3fb0eb17deb0ab9c2e7b154bf884167a0b
2023-04-03 10:10:47 +08:00
YeShanShan ec55b744d6 fix: Modify SearchEdit's icon
`search_indicator` and `search_action`'s size is 36 * 36, and
they have more than white space, now we update those icon in
dtkgui and qt5integration, and remove unnecessary avoidance.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/325
Log: It depends dtkgui and qt5integration.
2023-04-03 10:07:25 +08:00
tsic404 3447fb3c8b chore(CI): add OBS workflows
add OBS workflows and modify PKGBUILD support OBS build

log:
2023-03-29 09:40:37 +08:00
bluesky 1e6cb03ba8 fix: update updateTitlebarHeight
修改updateTitlebarHeight函数,取消titlebarHeight等于50的判断,配置文件默认值为-1

Issue: https://github.com/linuxdeepin/dtkwidget/issues/367
2023-03-28 09:09:19 +00:00
wang fei 2db46873a9 fix: adjust daboutdialog's ui
adjust the ui of daboutdialog

Log: adjust daboutdialog's ui
Issue: https://github.com/linuxdeepin/dtkwidget/issues/361
Influence: daboutdialog
2023-03-28 10:54:49 +08:00
ck 2d9f4dad45 chore: tx config tweak
update group name
tx --version : TX Client, version=1.6.5
tx pull --all --branch master
2023-03-28 10:51:33 +08:00
bluesky 3d9e9f91a8 feat: add the ability to configure the default height of the DTitleBar
新增通过DConfig配置DTitleBar的功能

Issue: https://github.com/linuxdeepin/dtkwidget/issues/367
2023-03-28 02:20:05 +00: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
jiawen 3dd052196f doc: update docs
更新dwindowoption docs

Log: update docs

Task: linuxdeepin/dtkwidget/issues/360
2023-03-18 08:54:33 +00:00
YeShanShan accac81a38 fix: Adjust icon size for subclass of lineedit
DLineEditPrivate provides a default size for subclass.
2023-03-17 14:46:48 +08:00
YeShanShan 2712141845 fix: Modify edit widgets to adapt CompactMode
Adjust the interval between widget to 10 for edit.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/325
2023-03-17 14:46:48 +08:00
YeShanShan 03f6b462a8 fix: Adjust SwitchButtonhandler's width in CompactMode
SwitchButtonhandlerWidth is different,
  It's SwitchButtonGroove's width is 40 in CompactMode, and 50 in NormalMode,
It's just by 5 / 3 * PM_SwitchButtonHandleWidth.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-17 14:46:21 +08:00
xzl 4a681b4501 chore: set BUILD_DOCS OFF
Log:
2023-03-16 18:33:28 +08:00
YeShanShan 0e725e4097 fix: Modify PushButton to adapt CompactMode
Use `ButtonMargin` as Arrow's margin with frame, and changes it
from 8 to 10.
  Modify Indicator in CompactMode.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-16 16:46:58 +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
wang fei 44aea4b9ad chore: remove log about sidebar
remove userless log obout sidebar

Log: remove log about sidebar
Influence: none
2023-03-16 05:36:56 +00: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 46ac16a586 fix: DAbstractDialog translucent background
if windowmanager not support blur window effect
do not set `Qt::WA_TranslucentBackground` attribute
setblurEnabled will not work

Issue: https://github.com/linuxdeepin/dtkwidget/issues/358
Log: fix Dialog translucent background
2023-03-15 14:10:11 +08:00
xzl 13e2126112 docs: update readme
add docs link

Log:
2023-03-14 16:14:35 +08:00
wang fei 9eaa40cbfc docs: add dfeaturedisplaydialog image to docs
add image to docs

Log: add dfeaturedisplaydialog image to docs
Influence: docs
2023-03-13 05:27:52 +00:00
wang fei c447104da1 fix: add color-only mode in dprintpreviewdialog
add support for color-only mode to dprintpreviewdialog

Log: add color-only mode in dprintpreviewdialog
Issue: https://github.com/linuxdeepin/dtkwidget/issues/354
Influence: print preview
2023-03-13 05:27:25 +00:00
wang fei 9d03dc792a chore: Remove redundant code about acknowledgement in daboutdialog
1. add obsolete interfaces about acknowledgement
2. remove redundant code about acknowledgement

Log: remove redundant code about acknowledgement in daboutdialog
2023-03-13 09:45:52 +08:00
renbin cbd8237ed9 chore: DPrintPreviewDialog add update setting interface.
Add interface updateDialogSettingInfo, apps can update print dialog
settings at construction time.
Add docs and UT, fix a bug that may cause a memory leak.

Log: DPrintPreviewDialog add update setting interface.
Influence: Add update setting interface.
2023-03-10 09:27:36 +00:00
bluesky 7ccb3ece4a docs: add example for dboxwidget
给dboxwidget添加例子

Log:
2023-03-09 08:58:04 +00:00
bluesky 70d7427547 docs: update docs
更新dboxwidget的文档

Log:
2023-03-09 11:08:28 +08:00
bluesky a9b927c52e docs: add example for dfilechooseredit
给dfilechooseredit添加例子

Log:
2023-03-07 11:41:56 +08:00
bluesky 6f05486d53 docs: update docs for dfilechooseredit
更新dfilechooseredit的文档

Log:
2023-03-05 22:07:31 +08:00
wang fei 1b0a29a457 chore: modify the result code of dprintpreviewdialog to accept or reject
give the explicit result code (accept or reject) when pressing print button
or cancel button of dprintpreviewdialog.

Log: modify the result code of dprintpreviewdialog to accept or reject
Influence: dprintpreviewdialog
Change-Id: Ic6ee36b7fc805ed16762bc203001d1248211fb1e
2023-03-02 05:03:49 +00:00
张坤 b97bff4d6d doc: update docs
更新dlineedit和dspinner的文档

Log: update docs
2023-02-23 01:43:53 +00:00
wangyixue bfb766aed1 chore: update changelog
Release 5.6.8.

Log: update changelog to 5.6.8
2023-02-22 15:14:17 +08:00
Ye ShanShan e8338437eb fix: DStyleOptionButton's incompatible
This is a supplement for 9b6e608005
It's default assignment constructor will call buillt
dtkwidget's  `dciIcon` conftructor, but `dciIcon` object is a
unassignment space, it causes app crashed.
2023-02-22 14:07:43 +08:00
ck cf1eceb9d9 chore: update changelog
update changelog
Log: update changelog

Influence: none
2023-02-17 14:24:19 +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
wangyixue 5fe7575c52 fix: find_dependency error
Older version CMake find_dependency has a defeat that COMPONENTS
find will fail. Find single dependency separately to avoid this issue.

Log: fix find_dependency error
2023-02-17 11:24:51 +08:00
wang fei bd8c3e1042 chore: rename sidebarVisble to sidebarVisible
obsolete old interface sidebarVisible due to spelling mistake

Log: rename sidebarVisble to sidebarVisible
Influence: sidebar
Change-Id: I7c932f4fc8f43db2271d3562d446b4f663e11ad4
2023-02-17 01:56:39 +00:00
wang fei a937685fd1 fix: background widget is always shown when sidebar is hidden
change background widget's visibility when the signal of expandChanged is emitted

Log: resolve the issue that background widget is always shown when sidebar is hidden
Influence: sidebar
Change-Id: I0a2fc73614aecfb736f52f00cb6ca07459f48fb7
2023-02-16 06:09:52 +00:00
wang fei 339ece42c8 doc: update the doc of dfeaturedisplaydialog
update the interface doc of dfeaturedisplaydialog

Log: update the doc of dfeaturedisplaydialog
Influence: doc
Change-Id: I238fa7c5675bd3d51e3a7112fbe8ed549b3d3d51
2023-02-14 07:28:12 +00:00
xiangzelong 6d1f974dd9 docs: update docs
更新枚举的注释方式,规范化文档

Log:
2023-02-14 13:59:39 +08:00
Ye ShanShan 9b6e608005 fix: DStyleOptionButton's incompatible
It was introduced in e4fdfe5b36 .
  It cause incompatible that DStyleOptionButton add a member
variable `dciIcon`.
  App is crashed if libdtkwidget5 is different between App built
and running loaded, (app builds with 5.5, but loads 5.6 version).
  We shouldn't add member variable that defined in .h and which
breaks abi.
  If this case has exist, we can Use DApplication::builtDtkVersion()
to avoid to accessing the member in some lower version.
  We are lucky, because we have `features` to avoid to accessing
`dciIcon` member in lower version.
  FloatingButton doesn't need add DciIcon to features, because
DDciIcon has execute this code.

Log: none
Influence: App crash in some case
Change-Id: Iff4d596c6f90fa82f0d93ec9db0118d8d0bffa40
2023-02-14 13:32:36 +08:00
Ye ShanShan 3b880ba698 fix: Lossing LIBDTKWIDGTE_LIBRARY macro
It lossed when qmake to cmake, and it causes DApplication::
buildDtkVersion function is error, because it's value is assigned
when builing application.

Log: none
Influence: none
Change-Id: Ie636df17c485f7d43cd5458cf3a2f2627388a07a
2023-02-14 10:51:27 +08:00
chenhongtao cf02413fc9 chore: update changelog
Log: update to 5.6.6
2023-02-13 16:15:48 +08:00
wang fei f92823736a fix: the entrance of feature display is visible when no item is added
when no feature item is added, hide the entrance in about daboutdialog

Log: fix the issue about feature dialog has no content
Influence: feature display
Change-Id: Id13ce0b84ede3d084f219cfbd35e1d2a94e3b4bc
2023-02-10 17:11:21 +08:00
guoyao 825fea2470 chore: remove useless dependencies
as title

Log:
2023-02-10 13:31:02 +08:00
wang fei 92a7561e0f fix: 二次调起特性对话框崩溃
原因:特性对话框的父窗口是关于对话框时,
      随着关于对话框销毁,再次访问特性对话框对象就会崩溃。
修改:1.特性对话框不设置父窗口,随着应用退出销毁。
      2.特性对话框展示时,调整位置。

Log: 修复二次调起特性对话框崩溃问题
Influence: 特性对话框
Change-Id: I56671745ae6fb087133c34fcd50f54d4b9789e81
2023-02-07 14:34:45 +00:00
ice 7dae3b34b3 fix: correct file name
examples/collections/org.deepin.dtkwiget.feature-display.json 文件名拼写错误

Log:
2023-02-07 12:24:00 +00:00
bluesky 9e4b4a89ba doc: update docs for danchors
更新danchors的文档

Log: update docs

Task: deepin-community/coding-quarter#26
2023-02-03 07:17:36 +00:00
ck 818a7f5541 chore: update changelog
update changelog
Log: update changelog
Influence: none

Change-Id: Ic7059641a79d7e6970c556e8882d3293b733ea62
2023-02-02 16:02:00 +08:00
xzl d2cb0fb1f8 docs: update the document of DFloatingButton
更新文档

Log: docs: update the document of DFloatingButton
2023-01-19 14:01:47 +08:00
xzl e734edc54b docs: update docs
更新文档

log: update docs
2023-01-18 17:21:31 +08:00
wang fei a3967280f8 fix: 增加titlebarSettingsImpl空指针判断
新建dtitlebar对象,未调用settings(),titlebarSettingsImpl是空的

Log: 增加titlebarSettingsImpl空指针判断
Influence: titlebar
Change-Id: I6f330f59556b86b34e94c8cb8997556c7bb59e8e
2023-01-18 05:21:38 +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
ck 116aab61ea chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I5c21fd35617b305dcaf508895175e01ef5621f3c
2023-01-16 10:14:50 +08:00
xzl ddea78cc18 chore: replace doxygen theme
替换doxygen主题安装方式

Log:
2023-01-14 23:32:54 -06:00
wang fei a9fc8277b6 feat: 特性介绍框文案翻译
特性介绍框需求相关文案翻译

Log: 增加特性介绍需求相关文案翻译
Task: https://pms.uniontech.com/task-view-227391.html
Influence: 特性介绍文案
Change-Id: Icd3bfeeea5ce60034bc59cf947718b24099f870a
2023-01-13 19:08:11 +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
wangyixue cb689dc5ec fix: fix wrong position of first ComboBox popup
ComboBox popup at the wrong position the first time after application
launched. Fix this behavior.

Log: fix wrong position of ComboBox popup
Bug: https://pms.uniontech.com/bug-view-177525.html
2023-01-13 10:00:02 +08:00
Ye ShanShan 57b546fdd4 feat: Support multi split screen for dtitlebar
Adjust ui style.
  Move implement from dtitlebar.cpp to splitscreen.cpp.

Log: 标题栏支持多分屏
Task: https://pms.uniontech.com/task-view-180357.html
Influence: 依赖平台插件升级,标题栏最大化按钮悬浮时分屏功能
Change-Id: I3911fd178f5ceae41a0e3f5227e4abae153583e7
2023-01-11 16:07:20 +08:00
bluesky 3352244fe6 doc: update docs for ddialog
更新ddialog的文档

Log: update docs

Task: deepin-community/coding-quarter#26
2023-01-11 05:04:00 +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
Ye ShanShan d9a63823d1 feat: Add TightMode support for TitleBar
Send StyleChange event for all widget when
received sizemode changed.
  Add SizeModeHelper for common function.
  Modify radius, Shadow of MainWindow.

Log: 支持紧凑模式切换
Task: https://pms.uniontech.com/task-view-227385.html
Influence: none
Change-Id: I3cb83d22db1b3b058ed34443263d8321af09281d
2023-01-10 11:12:17 +08:00
wangyixue 097b17d599 feat: add ToolTip support
Add ToolTip support for DListView and DLabel

Task: https://pms.uniontech.com/task-view-227383.html
Log: add ToolTip support
2023-01-05 13:13:04 +08:00
wangyixue 407bc55028 fix: add Dtk::Gui link for dtkuiplugin
Fix compile error for dtkuiplugin, add Dtk::Gui link.

Log: add Dtk::Gui link for dtkuiplugin
2023-01-05 13:13:04 +08:00
wangyixue 5648360acc fix: correct default constructor for DStyleHelper
Modify default value for m_style of DStyleHelper from nullptr to
QApplication::style in case we have a stack overflow.

Log: correct default constructor for DStyleHelper
2023-01-03 16:39:10 +08:00
deepin-admin-bot 991136161f chore: Sync by d45f73b2d0
sync by github workflow

Log: none
Influence: none
2022-12-28 07:54:39 +00:00
QinBenxue 40b6252706 docs: update groups and create new initial docs
新建文档分组和新建初始文件

Log:
2022-12-27 02:11:29 -06:00
QinBenxue bad6363a12 doc: update dlistview doc
更新 dlistview 示例和文档,修改cpp注释

Log:
2022-12-27 06:55:01 +00:00
QinBenxue 3adae89d29 doc: update doc for dsettingsdialog
更新dsettingsdialog文档示例

Log:
2022-12-27 05:03:31 +00:00
QinBenxue 356c8d4465 docs: update examples、 docs and images
更新dsettingsdialog示例和文档、图像

Log:
2022-12-26 02:26:57 +00:00
QinBenxue 288d3042dd docs: update example docs and images
更新 DBackgroundGroup 示例和示例图像

Log:
2022-12-26 01:22:22 +00:00
QinBenxue 849f5459fa docs: update docs and images
更新dslider的示例与文档标准化

Log:
2022-12-22 09:19:56 +00:00
xzl 54d04153e4 doc: add mainpage
添加主页

Log:
2022-12-22 16:33:01 +08:00
QinBenxue 4e9167f7af docs: update docs for widget
更新注释

Log:
2022-12-22 03:41:04 +00:00
QinBenxue f3efae1116 docs: update docs for widget
修改文档中的链接错误

Log:
2022-12-22 03:29:00 +00:00
QinBenxue 9545ac7144 docs: update docs and images
更新示例文档dtitlebar.zh_CN.dox, 源码注释dtitlebar.cpp, 新增示例图像

Log:
2022-12-21 09:10:17 +00:00
chenke fca5fea682 fix: hotSpot pos not scaled
map position from Native will scale with deviceRatio

Bug: https://pms.uniontech.com/bug-view-70386.html
Log: none
Influence: drag tabbar with high dpi
2022-12-21 13:35:55 +08:00
ck 9c8290899a feat: add linglong build support
add linglong.yaml to support linglong build
see https://linglong.dev/guide/ll-builder/manifests.html

Log: linglong
Influence: linglong
Change-Id: I0cffb32dcf483105f118832cb88133a499e3a2b5
2022-12-20 15:23:43 +08:00
QinBenxue 53821e6cf3 docs: update docs and images
更新示例文档和相关示例图

Log:
2022-12-20 07:06:54 +00:00
ck aff7e3613e chore: sound effect dbus service and path
<org_name>.<project_name>.<control_version>
org_name        : org.deepin
project_name    : dde
control_version : SoundEffect1

Log: soundEffect1
Influence: play or preview system effect sound
Change-Id: I930679464261fd891cbeb2f665ab996e183a5750
2022-12-20 11:39:36 +08:00
QinBenxue 585d4493b7 docs: update doc and images
更新示例文档和相关示例图像

Log:
2022-12-19 08:42:51 +00:00
QinBenxue 3957d70717 docs: update docs and images
更新示例文档和相关示意图

Log:
2022-12-14 19:29:35 +08:00
student-ice 4813eee0f4 docs: add docs for widgets
给dbackgroundgroup添加文档注释 #267

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-14 16:14:58 +08:00
QinBenxue 4406e3483c docs: update docs and images
更新示例文档和相关示意图

Log:
2022-12-13 16:38:44 +08:00
QinBenxue 0601207ed1 docs: update docs
更新文档和示例

Log:
2022-12-13 16:38:21 +08:00
ck 2cc522ffb8 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I09b426137a57ebb94a23f31d8a1b67973cf42c7d
2022-12-12 17:50:18 +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
ck fd404f1ac5 chore: init hasManual once on showEvent
DGuiApplicationHelper::hasUserManual() will asyncCall and cached result

Log: none
Influence: manual help action
Change-Id: I7a82101bba862cbf52a033cfd2e4f7955c6238fe
2022-12-12 14:19:17 +08:00
student-ice a9ea09f438 docs: add docs for widgets
给darrowrectangle添加文档注释 #259

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-09 13:25:22 +00:00
xzl 21e1dbbb9e docs: remove daboutdialog.md update dox
remove daboutdialog.md update dox

Log:
2022-12-09 09:53:27 +08:00
xzl 6493c89d4f docs: update example
更新示例代码和图片

Log:
2022-12-08 17:25:03 +08:00
renbin 30225aa55c feat: Add DImageViewer crop image function.
Add DImageViewer crop image function, DGraphicsCropItem class.
Add crop image unit test cases, update dox file comments.

Log: Add DImageViewer crop image function.
2022-12-08 14:08:41 +08:00
QinBenxue aa98fbffed docs: update docs
更新文档

Log:
2022-12-08 03:39:06 +00:00
QinBenxue 9179e0f40b docs: update docs
更新文档

Log:
2022-12-07 16:50:27 +08:00
QinBenxue c41b2d78a4 docs: update docs
更新文档

Log:
2022-12-07 16:50:27 +08:00
QinBenxue 693f55bd44 docs: update docs
Log: 更新文档
2022-12-07 15:06:15 +08:00
wangyixue b28cb777de fix: crumbs get out of border in DCrumbEdit
Some crumbs will get out of panel frame border of DCrumbEdit when it's
too long or there are too many crumbs showing in a vertical line (often
happens when scrolling).
Draw border first and then draw viewport, set viewport margins.

Bug: https://pms.uniontech.com/bug-view-174437.html
Log: fix crumbs out of border
Influence: DCrumbEdit
2022-12-07 10:34:39 +08:00
wangyixue d27630f171 chore: fix linking error
Fix DtkWidget_LIBRARIES to find_library installed.

Log: fix linking error
2022-12-07 10:02:15 +08:00
wang fei e60b44d898 feat: 侧边栏功能
按钮控制侧边栏展开和收缩

Log: 添加侧边栏功能
Influence: 侧边栏和标题栏
Change-Id: I39790200db1606a6513a99a47ecaab17c2f171ee
2022-12-07 09:59:56 +08:00
student-ice 95cd82ab6c docs: add docs for widgets
给darrowlineexpand添加文档注释 #242

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-06 10:58:05 +08:00
student-ice b7da54204f docs: add docs for widgets
给darrowlinedrawer添加文档注释#240

Log: add docs

Task: deepin-community/coding-quarter#31
2022-12-05 05:35:13 -06:00
student-ice 650edaaa94 docs: add docs for widgets
给dlabel添加文档注释#237

Log: add docs

Task: deepin-community/coding-quarter#31
2022-12-02 01:16:38 -06:00
renbin b96acedda2 feat: Implements DImageViewer rotate, scale and gesture.
Implements the DImageViewer interface, including rotate, scale, gesture.
Add unit test cases and interface comment.

Log: Implements DImageViewer rotate, scale and gesture.
2022-12-02 05:43:40 +00:00
renbin a880020d62 feat: Implements DImageViewer set image and clear.
Implements the DImageViewer interface, including set image and clear.
And implements the DGraphicsitem classes, add unit test cases, update comment.

Log: Implements DImageViewer set image and clear.
2022-12-02 05:43:40 +00:00
ck f316b7250b fix: revert and fix option button icon invisible
This reverts commit 907f56b554.
icons.qrc can not delete : undefined symbol: _Z20qInitResources_iconsv
mv dci file from icons.qrc to dtk-icon-theme.qrc

Log: undefined symbol
Bug: https://pms.uniontech.com/bug-view-174963.html
Influence: symbol
2022-12-01 18:26:34 +08:00
student-ice e1f01e538b docs: add docs for widgets
给darrowbutton添加文档注释 #232

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-01 03:39:50 -06:00
ck 907f56b554 fix: option button icon invisible
同名 qrc 资源文件被覆盖导致无法找到图标
注意:dtk 提供的 qrc 文件需要加上 dtk 前缀

Log: 修复图标无法显示的问题
Influence: 部分应用图标无法显示的问题
Bug: https://pms.uniontech.com/bug-view-174963.html
2022-12-01 17:03:03 +08:00
xzl 319a0e2218 chore: add ISSUE_TEMPLATE
添加issue模板

Log:
2022-11-30 23:39:38 -06:00
xzl 67a3738ce1 fix: fix document format
修复文档格式

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-12-01 10:58:39 +08:00
xzl b53e2e3c51 docs: update dalertcontrol document
添加dalertcontrol文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-11-30 03:44:38 -06:00
xzl 4df9612c9f docs: update dabstractdialog docs
更新dabstractdialog文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-11-30 00:45:10 -06:00
ck a0483c9fb3 chore: update changelog
5.6.2.2

Log: none
Influence: none
2022-11-30 12:13:19 +08:00
LinXuan 3b7903f11c docs: update daboutdialog document
更新daboutdialog文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-11-29 17:05:53 +08:00
LinXuan f172bd324c docs: add doxygen theme
add doxygen theme

Log:
2022-11-28 16:39:42 +08:00
deepin-admin-bot 9bab976eed chore: Sync by 3de30af6dc
sync by github workflow

Log: none
Influence: none
2022-11-24 08:56:37 +00:00
Ye ShanShan 0f0530628b fix: Remove ASan check for debug
Removing asan check

Log: 移除库的asan检测
Influence: none
Change-Id: If37bca2925c43ff87701fe58f1136dab66cce2a8
2022-11-24 13:53:30 +08:00
Ye ShanShan 3e76148cd5 fix: DStyleItemDelegate filter ListView's event
QStyledItemDelagate::eventFilter can filter the object's Tab
key event, here We only need a Paint Event to post
UpdateWidgetVisibleEvent, and updateWidgetVisible, so we remove
the eventFilter of AbstractItemView

Log: DStyleItemDelegate拦截了QListView的部分事件,导致listview的Tab
事件和焦点异常
Bug: https://pms.uniontech.com/bug-view-164547.html
Influence: 使用了DListView的应用,其listview的tab键,焦点事件可能
异常,

Change-Id: I1d4d8c836b5c6b27e021a5d632b969daf3f5b348
2022-11-23 09:32:04 +08:00
renbin 347724293d feat: Change DImageViewer widget and image handler.
DImageViewer just show images, the image file handler will be moved to DtkGui.

Log: Change DImageViewer widget and image handler.
2022-11-22 09:45:15 +00:00
renbin 8cc5dee635 docs: Remove dox file licence comment.
Remove dox file license comment.

Log: Remove dox file license comment.
2022-11-22 09:45:15 +00:00
renbin 9dde038f09 feat: Add DImageViewer interface and interface documents.
Add DImageViewer interface and interface documents.

Log: Add DImageViewer interface and interface documents.
2022-11-22 09:45:15 +00:00
wang fei db8a17e3a9 fix: 打印文件设置纸张大小不生效
原因:匹配的是key字段,实际combobox内容是name字段
修改: 将匹配的key字段修改成name字段

Log: 修复打印文件设置纸张大小不生效
Bug: https://pms.uniontech.com/bug-view-171767.html
Influence: 打印纸张大小
Change-Id: I557072ca5592059031a71c4bbb4bb8e1ecabe154
2022-11-21 15:05:02 +08:00
deepin-admin-bot b54921846c chore: Sync by 6aa579e31c
sync by github workflow

Log: none
Influence: none
2022-11-18 02:14:59 +00:00
deepin-admin-bot b2c0a594cb chore: Sync by 50ad27fb2a
sync by github workflow

Log: none
Influence: none
2022-11-16 03:44:59 +00:00
Ye ShanShan e433e2204a fix: DTitleBar exists incompatible modify
old dtkwidget assume menu is not empty, but now it's not, and
we revert this code.
  Moving addDefaultMenuItems from `showMenu` to `showEvent`,
because some applications get menuItems and assert they are not
empty before  `showMenu`.
  delay to check UserManual avoid to request dbus in `showEvent`.

Log: 升级后DTitleBar提供的menu可能没有默认菜单项,导致部分应用异常,改回
原来版本的逻辑
Bug: https://pms.uniontech.com/bug-view-170639.html
Influence: 升级dtkwidget导致包管理器使用安装功能时崩溃

Change-Id: Ifae616c8ba5af3a2e28b1dbb00009e0a2872a989
2022-11-14 10:55:12 +08:00
deepin-admin-bot c411b7a040 chore: Sync by d15debb9d3
sync by github workflow

Log: none
Influence: none
2022-11-11 06:54:50 +00:00
wang fei 29c92d0818 fix: 维语环境下打印设置界面标题没有对整齐
1.修改label的水平宽度的策略为QSizePolicy::Maximum
2.布局中间加个弹簧

Log: 修复维语环境下打印设置界面标题没有对整齐问题
Bug: https://pms.uniontech.com/bug-view-163971.html
Influence: 打印设置-维语
Change-Id: I48bbe47544112267a1e8f8284db508af05f5e48f
2022-11-03 17:12:22 +08:00
Ye ShanShan 04e770f502 feat: Using loadTranslator of dtkgui
moving implement of loadTranslator to dtkgui.

Log: 加载翻译功能移至dtkgui,以便供dtkdeclarative使用
Bug: https://pms.uniontech.com/bug-view-157977.html
Influence: qml相关应用没有加载翻译
Change-Id: Ic31ea60854c0685add5617f795aea061e8a20e3b
2022-11-03 13:49:07 +08:00
wang fei f7f933f247 fix: 搜索框文字没有居中
搜索框文字偏左12px

Log: 修复搜索框文字没有居中问题
Bug: https://pms.uniontech.com/bug-view-167567.html
Influence: 搜索框
Change-Id: I8ca4b6eb019da4fbe93ddcb7a612242c6403cd77
2022-11-03 10:10:42 +08:00
wingsummer 0a4903ea26 doc: README
add projects from wing-summer

Log: add more projects to readme
2022-10-24 15:15:53 +08:00
chenhongtao 73f55c5e08 doc: README
add projects who use dtkwidget

Log: README
2022-10-21 10:01:42 +00:00
wang fei c20d9b3ef8 fix: 打印预览页面打开“添加水印”开关后再关闭,水印开关消失
原因:根据对象名字关闭控件,开关和下面功能控件一个对象名。
解决:增加一个对象名字控制下面的功能控件。

Log: 修复打印预览页面打开“添加水印”开关后再关闭,水印开关消失问题
Bug: https://pms.uniontech.com/bug-view-163737.html
Influence: 水印
Change-Id: I5b0f10347b668987cadf7b2542fbea8ea8b8b437
2022-10-20 09:38:11 +08:00
deepin-admin-bot b68c102bb4 chore: Sync by 6fbf8e00b9
sync by github workflow

Log: none
Influence: none
2022-10-14 05:25:11 +00:00
chenhongtao bb7e5fdc05 fix: fix: qcommandlinkbutton缩放后图标模糊
QCommandLinkButton在qt源码中进行了一次pixmap变换,这导致前端拿不到位图
这里将QCommandLinkButton 的icon直接返回了QIcon theme,避免了pixmap的变换

Log: qcommandlinkbutton 的高分屏模糊bug
Influence: qcommandlinkbutton
2022-10-14 10:51:40 +08:00
wang fei 01aae7443a fix: 打印预览页面范围输入框调整
当页面范围是All或Current Page, 隐藏输入框;
当页面范围是Select Pages, 显示输入框。

Log: 调整打印预览页面范围输入框
Bug:https://pms.uniontech.com/bug-view-158801.html
Influence: 打印预览-页面范围输入框
Change-Id: Ic33c920a7f279ddeaf3d6703a42918892b706f12

Change-Id: I2c69967cc34c29c6e0cd42e9c10e61380e9516a8
2022-10-10 03:36:04 +00:00
wang fei 69d57db724 fix: 打印预览水印项的圆角和其他项的不一致
原因:DBackgroundGroup的layout未设置margin为0,
      DBackgroundGroup的默认itemMargin为9,
      影响其圆角大小。
修改:设置DBackgroundGroup的layout的margin为0,在其子widget里设置margin。

Log: 修复打印预览水印项的圆角和其他项的不一致问题
Bug: https://pms.uniontech.com/bug-view-158803.html
Influence: 打印预览水印项UI
Change-Id: I88497151148d1f2c9e19e3192661275528bb5be0
2022-10-10 03:26:36 +00:00
Ye ShanShan 1d31804194 fix: Action's Widget shouldn't show in some time
DStanardAction's widget is not be repaint when the item moved
to unvisual area, it causes widget is show in origin position.
  We manually hide those widget which in unvisual area after
itemdelegate painting.
  Using qApp::postEvent to execute function after the PaintEvent.
  Add QPointer to watch the valid of widget

Log: DStandardAction设置了widget,在item移动到不显示的区域后,没有被重
绘,导致widget仍然显示,并且位置显示错误,解决action中widget被删除程序崩
溃的bug
Influence: 使用了DListView的应用,在item位置被移动后,原来位置仍然显示
之前的控件

Change-Id: Iedac60be4039ea451da52fd04defc1c446a487f7
2022-10-10 09:51:43 +08:00
wang fei 0f2d153fc7 chore: wayland下分屏窗口在暗主题上异常
setBackgroundColor里面增加个isFloatWindow的判断

Log: 修复wayland下分屏窗口在暗主题上异常问题
Influence: 分屏窗口UI
Change-Id: Icc2819bc2d3033b6233ce523336daa236683e003
2022-10-10 09:51:43 +08:00
Ye ShanShan e9375403c8 fix: FloatingButton Antialiasing doesn't obvious
Add Anitialiasing flag when drawing FloatingButton's panel.
  Change Opacity to 0.3.

Log: 在绘制FloatingButton面板时添加抗锯齿属性
Bug: https://pms.uniontech.com/bug-view-153687.html
Influence: 所有使用了FloatingButton和CE_FloatingWidget的应用,
都会减少阴影部分的锯齿

Change-Id: Ia2bcd272056ff1dc3b03c40f03d959aa056ab2d6
2022-10-10 09:51:43 +08:00
Ye ShanShan 584fffef2d fix: UT error
we remove DStandardItem::clone due to incompatible in V23,
item->clone() call QStandardItem's function actually, so it
isn't a DStandardItem, but the clone's intention need to be test.
  it doesn't need to cherry-pick to master.

Log: 单元测试失败
Bug: https://pms.uniontech.com/bug-view-156901.html
Influence: 无
Change-Id: Ibac6bc721104bb0bc2f16c3a63a12fbc20e88f22
2022-10-10 09:51:43 +08:00
ck dab8c0a590 fix: Edit focus blinks on right click
when calling the dbus in BlockWithGui mode , the event will
be passed to the edit, causing the edit to gain focus, and
the edit will lose focus when the menu pops up.
so Let the bullets fly

Bug: https://pms.uniontech.com/bug-view-154857.html
Log:
Inlfluence: DSearchEdit-ContextMenu-Focus
Change-Id: Ic2ee354e78dd2f2382da3d8c7877926f465d1946
2022-10-10 09:51:43 +08:00
ck 97889a8300 fix: DArrowRectangle FloatWidget mode UI incorrect
set GraphicsGlowEffect in FloatWidget mode on X11

Log:
Influence: x11 DArrowRectangle::FloatWidget ui
Change-Id: I3d9dba67b3f9c23beaf47b29d15a19999200cfbc
2022-10-10 09:51:43 +08:00
ck 9d4f8a4a17 fix: setBackgroundColor not work on wayland
wayland 下没有创建 handle,导致没有创建 blureffectwidget
需要有这个才可以让模糊的窗口在黑色背景下看清黑色的文字
增加判断只在 dwayalnd 下加上设置模糊的路径,不影响xcb逻辑

Log: 修复 wayland下 darrowrectangle 文字看不清的问题
Bug: https://pms.uniontech.com/bug-view-148535.html
Influence: wayland networkdialog
Change-Id: I9ca12630e30cca02503efa3f177f3626da749a6a
2022-10-10 09:51:43 +08:00
Felix Yan dfc16b476c chore: correct a typo in CMakeLists.txt
Correct a typo in CMakeLists.txt

Log: Correct a typo in CMakeLists.txt
2022-10-08 09:33:28 +08:00
rewine deaa98cc55 feat: Improve version information
1. 使用 CMakePackageConfigHelpers 生成 Config.cmake
2. 提供 DtkWidgetConfigVersion.cmake 供调用者检查版本
3. 使用 GNUInstallDir 提供的 FULL 版本变量配置 pkg-config 路径
4. 补充 pkg-config -L 参数
5. 增加引入 dtkcore 版本检查
2022-09-30 10:21:05 +08:00
chenhongtao 624ecf0e96 feat: 将shadow的变化绑定在信号上而不使用qicontheme
不使用qicontheme, 让阴影在其他主题上显示正常
使用信号槽一定程度减少调用的次数

Log: 使用信号槽而不是频繁qpaint,并不使用icontheme
2022-09-27 05:51:22 +00:00
chenhongtao 1b42cb9c7d doc(license): update license
README and license

Log: license
2022-09-26 01:29:21 +00:00
ck 50e9270907 chore: dtkguiplugin and readme
update readme and CMakeList.txt

Log: dtkguiplugin
Influence: none
Change-Id: Ib5aa55ef9464415ee2df6acabc4867431cb9bf95
2022-09-21 10:10:57 +08:00
ck 6c49fab783 chore: dtkwidget dedigner plugin tweaks
dtkwidget dedigner plugin tweaks and update readme

Log: plugin tweaks
Influence: none
2022-09-21 09:45:01 +08:00
ck 8e8eb018d5 chore: 使用 *.ts 添加翻译文件
原来使用 qmake 时,生成的 qm 文件在 src/translations 下
切换分支后,使用 src/translations/* 会重复生成相同的 qm 文件,
需要主动删除一下qm文件才可以(如 git clean -dfx),否则报错
CMake Error at Qt5LinguistToolsMacros.cmake:105 (add_custom_command):
Attempt to add a custom rule to output which already has a custom rule.

Log: none
Influence: cmake build
Change-Id: I089403b4f0406baa4f97e1270f5d092256f97fb2
2022-09-19 14:40:25 +08:00
Chen Bin 19dafe2da0 feat: Modify the menu icon
Change the icon of menu button to the Dci icon.

Log: Change icon
Influence: Menu button
Change-Id: Ie31f8e3e6c7141e340e4613e2f15b54b8faa83ea
2022-09-19 11:30:46 +08:00
wang fei bed17f1066 fix: 深色模式下,预览自适应图标缺少hover press
1. 图标由icon类型修改为action类型

Log: 修改深色模式下,预览自适应图标缺少hover,press状态问题
Bug: https://pms.uniontech.com/bug-view-158807.html
Influence: 预览自适应图标按钮UI
Change-Id: I951879b7a471715eb4bda6c0bfd483024a63af95
2022-09-16 15:50:24 +08:00
wang fei 53b3f02b23 fix: 打印预览右侧设置项多了背景底
1. 设置滚动区的背景色为base。
2. 图标是icon类型不会跟随mode变化,修改成action。
3. 外层backgroundGroup并未改动调色板,不用再去适应主题变化。

Log: 修复打印预览右侧设置项背景色问题
Bug: https://pms.uniontech.com/bug-view-158795.html
Influence: 打印预览背景色
Change-Id: If0bc237ff5641f49ec2855ed84b13e6bc5b88d41
2022-09-16 15:50:24 +08:00
wang fei fbecdac1a0 fix: error状态一开始就默认出现
初始化时setAlert为false

Log: 修复error状态一开始就默认出现问题
Bug: https://pms.uniontech.com/bug-view-158801.html
Influence: 打印预览页面范围输入状态
Change-Id: I47e5e5c0f8a8b082e973eb671dcab8208ca2e677
2022-09-16 15:49:57 +08:00
wang fei 48df5c340a fix: 打印预览页面设置间距不对
设置打印预览页边距UI的间距为10px

Log: 修复页面设置间距不对的问题
Bug: https://pms.uniontech.com/bug-view-158805.html
Influence: 打印预览页边距UI
Change-Id: I3553112e875a924cd1b322384c04a722ec48727b
2022-09-16 15:49:26 +08:00
wang fei 5914c900c9 fix: 自定义水印文字问题
非自定义时,隐藏输入框;
自定义时,显示输入框。

Log: 修复自定义水印文字问题
Bug: https://pms.uniontech.com/bug-view-158803.html
Influence: 自定义水印输入框
Change-Id: Ibff01f401db9c93e773fe8f16755554a1256f547
2022-09-16 15:49:00 +08:00
rewine 3b4fc0b888 fix: remove useless variable
log: 删除无用的 DtkWidget_INCLUDE_DIRS
2022-09-16 14:25:02 +08:00
rewine 1b3c54402e chore(mkspecs): define mkspecs self
Log: mkspecs path
2022-09-06 15:20:25 +08:00
chenhongtao 57f2ad7713 fix(shell): wrong target
A mistake, since the target name changed, the target name in shell
should also change

Log: fix recoveryshell
2022-09-06 14:13:47 +08:00
chenhongtao 3102d4e6a6 fix: wrong option() usage in CMakeLists.txt
修复错误的 option() 用法

Log: wrong option
2022-09-02 06:47:35 +00:00
chenhongtao 96049a6d49 fix(translate): path of translate
Wrong path in translation , fixed

Log: fix Wrong path of translations
2022-09-02 14:09:10 +08:00
chenhongtao 849dad5b1c chore(optionname): change optionname to better one
change the option name

now can use cmake command "ctest" to run tests

Log: change option name and etc
2022-09-02 06:06:00 +00:00
deepin-admin-bot fefabd05e1 "chore: Sync by " 2022-08-30 09:08:22 +00:00
chenhongtao 656e293fad feat(doc): add package libdtkwidget-doc
build the package for doc

Log: build the package of doc for dtkwidget
2022-08-29 05:26:42 +00:00
Ye ShanShan 5616ffd249 fix: DListView's size calculates error
miss to cast for QList<DViewItemAction*>,
only cast DViewItemActionList, it causes sizeHint calculates error.

Log: DListView的sizeHint计算错误导致各项堆叠
Bug: 
Influence: 用到了DListView,并且使用到了DViewItemAction的所有应用
Change-Id: I13506bcfed970c9733a50130c92e421e71457805
2022-08-29 09:36:10 +08:00
Ye ShanShan 94d58125ff chore: Add zh_CN readme
add README.zh_CN.md

Log: 添加中文说明文档
Influence: none
Change-Id: If8acaa008a96ea22eb924b115dfc874c81a97818
2022-08-25 13:28:47 +08:00
chenhongtao f80f48076e feat(cmake): to cmake
from qmake to cmake

Log: tocmake
2022-08-19 17:18:33 +08:00
ck c9f7ac46b7 fix(build): invalid digit "8" in octal constant
when BUILD_VERSION start with 0 was recognized as octal

Log:
Influence: debian build
Change-Id: Iad52d8f5622bf9035132242c0fb578e6e8d16992
2022-08-18 13:13:05 +08:00
deepin-bot[bot] 920861caf9
chore: Sync by 8fb17418f4 (#157)
chore: Sync by 8fb17418f4
2022-08-16 09:20:00 +00:00
deepin-bot[bot] c44650742c
chore: Sync by ab82576125 (#156)
chore: Sync by ab82576125
2022-08-15 23:55:31 +00:00
deepin-bot[bot] 11911422e6
chore: Sync by 8945746226 (#154)
chore: Sync by 8945746226
2022-08-15 02:34:29 +00:00
deepin-bot[bot] a54cb524d5
chore: Sync by 64c2bdac28 (#153)
chore: Sync by 64c2bdac28
2022-08-15 02:16:15 +00:00
deepin-bot[bot] e7317344dc
chore: Sync by 1086c873ff (#151)
chore: Sync by 1086c873ff
2022-08-12 01:47:12 +00:00
deepin-bot[bot] 088eb5f929
chore: Sync by 8cd7951872 (#150)
chore: Sync by 8cd7951872
2022-08-11 08:34:38 +00: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 f6826d4941 fix: 插件控制水印大小和角度无效
水印大小错误使用角度的设置,角度未触发 editFinished 信号。

Log:
Influence: None
Change-Id: I73acf06ce93764ae86aeb0c9707580a3c11402e4
2022-08-11 15:52:22 +08:00
Chen Bin 332c8d32fc fix: 增加宏定义以控制打印预览插件相关信息
增加 DTK_PRINTSUPPORT_PLUGIN 宏,应用可通过增加宏判断
来控制是否调用打印预览插件相关接口。

Log:
Influence: None
Change-Id: I21d4c06faf99717cada8543b12e4ed643b76722b
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
Chen Bin 8073631e3d feat: Enable DListView and DViewItemAction to support DciIcon
1. Add an interface to set the DCI icon in DListView.
2. Add drawing support for DCI icon in DStyledItemtDelegate.

Log:
Influence: None
Change-Id: If4ed076e8c2a819b28e5d046f885a22b6c0b8272
2022-08-11 05:06:38 +00:00
xzl 8d8912b04f chore: adapt REUSE license header
修改为开源合规

Log: 修改项目合规
2022-08-11 05:02:57 +00:00
ck a393c8525e fix: 调用语音助手服务不响应导致右键菜单卡死
语音助手在某些情况下会不响应,这是直接构造 QDBusInterface
会卡死,加一个 Ping 的操作,如果 300ms 内未响应则不添加
相关菜单

Bug: https://pms.uniontech.com/bug-view-151279.html
Log:
Influence: edit context menu
Change-Id: Id8e3f6f53a011b70fa12d95ff1cc3a6fec94021b
2022-08-05 10:14:14 +08:00
wang fei 22baf6384d chore: darrowrectangle更新模糊背景调整
1.传入的路径更改为outPath.united(path);
2.使用handle方式调用模糊接口;

Log:
Influence: darrowrectangle模糊
Change-Id: If87ab051052b4288106349376acbf61d8baf7e63
2022-08-05 10:14:14 +08:00
wang fei 7baffc4704 fix: 双击标记框内标记后面追加文字
当光标在内容末尾且鼠标双击位置在光标右边时,
编辑返回false,不再编辑追加文字。

Log: 修复双击标记框内标记后面追加文字问题
Bug: https://pms.uniontech.com/bug-view-139561.html
Influence: 标记框
Change-Id: Ia582ebf7f40b8180352bfdfec09ac5f615047212
2022-07-29 15:42:53 +08: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
Ye ShanShan 08ca143ca1 feat: Add EventLoop for ut
Add EventLoop for ut, it's useful in some scene, for example,
when deleteLater called but we need check QPointer's value now.

Log: all ut run in event loop
Influence: none
Change-Id: I1f35069215d5a6beba51c1aa1dd21f51d2e582a3
2022-07-28 17:28:50 +08:00
Stallman Wang d563343e45
fix: build failed when the .git folder exist (#136) 2022-07-27 11:46:15 +08:00
deepin-bot[bot] d7566247dd
chore: Sync by fed570b6d7 (#139)
chore: Sync by fed570b6d7
2022-07-26 05:29:27 +00:00
justforlxz e1a4494706 fix: DWaterProgress not displayed text when initialized to -1
The default value is 0. In setValue function, the text content will not be updated because the value is equal.

Issue: https://github.com/linuxdeepin/developer-center/issues/3292
Log: 修复 DWaterProgress 进度初始化为 0 时文字不显示
2022-07-22 16:26:51 +08:00
ck 95ef4732aa chore: 示例代码微调
示例代码微调,去掉无效日志,头文件等

Log:
Influence: none
Change-Id: I2a0f0721246264d88d3e98f212722c4e1540b6fb
2022-07-22 16:04:07 +08:00
ck a794283f50 fix: change pagesize name to readable name
use QPageSize::name() instead of QPageSize::key()
a localized human-readable name for the page size.

Log:
Influence: printpreview pagesize
Change-Id: I897ef3cc35668a87aa744dbe54f3ae3849bc2206
2022-07-22 15:16:27 +08:00
deepin-bot[bot] 43ca55a48f
chore: Sync by (#131)
chore: Sync by
2022-07-21 09:41:41 +00:00
deepin-bot[bot] 04667f55b0
chore: Sync by (#128)
chore: Sync by
2022-07-19 10:18:33 +00:00
ck c41fdded54 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: Icc274d75ceddc5bc93f7abb82fce8c320676ee98
2022-07-19 10:56:30 +08:00
ck a0f310f32c chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I34dc0a957e93e33fbc03819e6ed0e0dcc9f6b6d1
2022-07-19 10:56:30 +08:00
wang fei 9e65390e76 chore: 更新changelog
develop/snipe 分支更新changelog 到 5.6.0.1

Log:
Influence: changelog
Change-Id: Ie5893e610e0584bd56e1f5695f5c10248ad37cfb
2022-07-19 10:56:30 +08:00
ck 8182757a50 feat: DArrowRectangle 在无特效时也可以显示圆角
增加强制圆角的接口,让无窗管环境时也可以显示圆角

Log:
Influence: session-shell 提示可以显示圆角
Change-Id: Ib43360d24755e7b7664ef7d1fe4f8cc67047cb3a
2022-07-19 10:56:30 +08:00
Ye ShanShan 714f836dc4 feat: Write translation locale into `dapp_locale`
Record translation's locale to dapp_locale, it copies from
qtcreator.

Log:
Task: https://pms.uniontech.com/task-view-149553.html
Influence: DApplication添加dapp_locale属性,供其它地方进行翻译文件
的加载,例如其它插件内,可根据此值加载对应语言的翻译文件。

Change-Id: Ibe7037053a13020ba43a0d62e925d4ac5a0fd8fc
2022-07-19 10:56:30 +08:00
wang fei 1bca99b5db chore: 更新changelog
develop/snipe 分支更新changelog 到 5.5.42.1

Log:
Influence: changelog
Change-Id: I1e564861b4c7a2e72d3b2b258bd80b4b6c69aeb9
2022-07-19 10:56:30 +08:00
Ye ShanShan a1d3287e56 fix: DFlowlayout contains space also item is hidden
space is not caculated when the item is hidden, otherwise it's
verticalSpacing or horizontalSpacing is added, and later widget
is on error position.
we ignore the item including it's geometry updating, when it is empty.

Log:
Influence: 使用了DFlowLayout布局并且含有space,其中有部分控件暂时隐藏,
导致位于后面的控件其位置显示错误,多余space大小。

Change-Id: I4b2971fcb3e0ea241b290610cf30f87fb1453504
2022-07-19 10:56:30 +08:00
Ye ShanShan 08073c4ed4 chore: DFlowLayout's ut error
ut error

Log: 
Influence: none
Change-Id: I4b3ff97e9588ff7678f74218c21f440270893042
2022-07-19 10:56:30 +08:00
ck 98ca4e9b96 chore: 去掉部分构造的默认参数
多个构造的参数都是默认值时容易出现有歧义,
如:DFloatingButton button;

Task: https://pms.uniontech.com/task-view-140403.html
Log:
Influence: none
Change-Id: Id4fa3c73b63f1b8024c07c0c6eebb2b3bc318941
2022-07-19 10:56:30 +08:00
Ye ShanShan e75ab3d28b fix: boundary calculation error for DFlowLayout
1.modify `expandingDirections()` function, can't return more space
when DFlowLayout is LeftToRight flow.
2.`maxWidth` or `maxHeight` is caculated error, it causes sizeHint to
caculate to zero in some scene.
adujument error when next item just fits in a row, for example,
3.A and B's with as follow: A(100) + B(100) == Panel(200), A and B
should be on the same row.

Log:
Influence: 使用了DFlowLayout的应用,当Flow为LeftToRight时,不再在垂直
方向填充多余的空间.

Change-Id: Ia9474fc606f1b35010ffa4966b74967aad940a58
2022-07-19 10:56:30 +08:00
ck f682c39003 chore(build): fix typo
fix typo

Log: 
Influence: 
Change-Id: Ic9f3662d200e284f0a243d96a1a5c987aeb218e4
2022-07-19 10:56:30 +08:00
Ye ShanShan 395ac835e8 refactor: openUrl relays on dtkgui
openUrl function has been moved to dtkgui.

Log: 
Influence: this commit relays on dtkgui.
Change-Id: I2fba790a3921f90a2d2b36b889e15fa7350d1dc6
2022-07-19 10:56:30 +08:00
Ye ShanShan 143e6d08cb refactor: user manual function implication relay on dtkgui
user manual function has been moved to dtkgui.

Log: 
Influence: this commit relays on dtkgui.
Change-Id: Ia42dd98854a13928f97c229ae840dd2a23623fa6
2022-07-19 10:56:30 +08:00
Chen Bin e4fdfe5b36 feat: 控件适配 DCI 图标格式
1. DIconButton等按钮控件适配 DCI 图标,用户
可传入DCI 图标实例构造出一个整合图标类型。

2. 统一适配 DCI 图标的绘制操作,在 DStyle 中
完成。并适配各个图标控件。

Log: 
Influence: 图标控件
Change-Id: I763268250485cbfe7f23da08050b6e941e7263d0
2022-07-19 10:56:30 +08:00
wang fei f0e1eced4b fix: 锁屏界面网络面板显示异常,底色有重叠黑影
darrowrectangle在updateClipPath时设置属性clipPath,
并且传递参数polygon

Log: 修复锁屏界面网络面板显示异常,底色有重叠黑影问题
Bug: https://pms.uniontech.com/bug-view-124427.html
Influence: wayland下darrowrectangle的UI
Change-Id: Ie398c651c743dae514ce86ee29e88c7de1c9645b
2022-07-13 09:20:11 +00:00
Gary Wang 26509c3480 chore: build doxygen documentation
追加基于 doxygen 的文档构建

Log:
2022-07-08 05:03:33 +00:00
WangFei 35ad9a9d25
fix: 设置导航栏一级菜单内容有遮挡 (#123)
一级菜单QPainter设置了字体,就用painter的
字体设置省略样式。

Log: 修复设置导航栏一级菜单内容遮挡问题
Bug: https://pms.uniontech.com/bug-view-145915.html
Influence: 设置导航栏
Change-Id: I364d06e313750e80a03aa4ecc7630975f7d34466
2022-07-08 10:30:13 +08:00
WangFei 5ef5ce8ece
fix: dspinbox不能显示警告信息 (#119)
showAlertMessasge(const QString&, int)的follower是dlineedit,
但是, dlinedit的布局里面是qlineedit,
所以在eventFilter里,检查follower的visibleRegion是空的,
修改follower为qlineedit。

Log: 修复dspinbox的showAlertMessage接口不起作用
Task: https://pms.uniontech.com/task-view-152843.html
Influence: dspinbox,lineedit警告信息
Change-Id: Ibc026ee110ee1e93e50f3788b923802488490110
2022-06-22 17:09:31 +08:00
justforlxz 8731e17ede feat: update archlinux build
update archlinux build

Log:
2022-06-21 17:44:11 +08:00
justforlxz 2a5ef1a4b2 feat: add archlinux build
sync from deepin-community

Log:
2022-06-21 13:07:39 +08:00
WangFei df844cf227
fix: 非激活listview内的字体样式未置灰 (#115)
1.判断listview窗体是否激活,设置其状态。
2.设置非激活状态下的colorgroup为QPalette::Inactive。

Log: 修复非激活listview内字体样式未置灰问题
Bug: https://pms.uniontech.com/bug-view-138395.html
Influence: listview非激活状态UI
Change-Id: I75561d5a5c6b7bac3766b3a2585544ff16ba9a5e
2022-06-15 11:20:01 +08:00
WangFei 550aab7ab5
fix: 双击文件标记框后会随机变色 (#116)
双击时保存当前文本内容和当前背景色。
如果文本没有变化,则仍然使用当前背景色。

Log: 修复双击文件标记框后会随机变色问题
Bug: https://pms.uniontech.com/bug-view-139561.html
Influence: 标记框
Change-Id: Ic0315f06bb2ee55da94e8cf9e1bdfd8a649e7922
2022-06-15 09:52:18 +08:00
WangFei 5ccf4f5505
fix: 设置界面backgrounGroup背景色问题 (#114)
设置backgroundGroup的useWidgetBackground为false

Log: 修复设置界面backgroundGroup背景色问题
Bug: https://pms.uniontech.com/bug-view-138331.html
Influence: 设置界面背景色
2022-06-13 09:43:08 +08:00
AlexOne e78a195b8a fix: 废弃的接口更新
旧的接口拼写错误,新版已经不再需要

Log:
Influence: none
2022-05-27 02:58:09 +00:00
993381 f32d3749c9
fix: 打印预览titlebar不跟随主题变化 (#109)
主动设置了titlebar的palette后,要在主题变化的时候再次主动更新

Log:
Bug: https://pms.uniontech.com/bug-view-129709.html
Influence: 标题栏随主题色变化

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-25 15:55:56 +08:00
deepin-bot[bot] ca848ac312
chore: Sync by 99dfe0471c (#107)
chore: Sync by 99dfe0471c
2022-05-19 03:38:51 +00:00
993381 bc050fca88
fix: wayland环境网络链接对话框点击无效 (#106)
网络连接对话框在设置了屏幕缩放的情况下会透过鼠标事件
导致点击不上按钮,原因是setMask之前要清空旧值

Log:
Bug: https://pms.uniontech.com/bug-view-130007.html
Influence: DarrowRectangle的点击操作

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-18 15:48:56 +08:00
993381 b479f9f513
chore: wayland无标题栏兼容旧版kwin (#104)
适配了无标题栏后,旧版kwin上的无标题栏会显示两列按钮
不支持无标题栏时dtk的标题栏不应该显示菜单

Log:
Influence:

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-17 11:36:29 +08:00
993381 57ee818e5f
chore: 更新README添加plugin的编译方法 (#102)
之前的plugin未添加编译依赖,现在在README文件中说明

Log:
Influence:

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-17 10:53:39 +08:00
deepin-bot[bot] 77acfbb4cd
File Sync from linuxdeepin/.github (#101)
chore: Sync by b5a441b9bb
2022-04-21 06:54:38 +00:00
wang fei 8ffcbd0750 fix: wayland下tooltips没有跟随输入框
增加对UpdateRequest事件类型的判断

Log: 修复wayland下tooltips未跟随输入框问题
Bug: https://pms.uniontech.com/bug-view-124413.html
Influence: 输入框警告信息
2022-04-20 12:46:33 +00:00
deepin-bot[bot] 619ae2a39a
chore: Sync by 41155231b0 (#100)
chore: Sync by 41155231b0
2022-04-18 09:42:12 +00:00
mike 1733c3f590
chore: 非chameleon风格时标题栏图标正常绘制 (#96)
非chameleon风格时标题栏按钮图标显示异常,特别是菜单按钮SP_TitleBarMenuButton
在qcommonstyle中显示的是qtlogo,此处按照dstyle的逻辑将icon直接设置好。

Log:
Influence: 非uos风格下标题栏图标
Change-Id: Ife805d7aa542619fafa76f2cdc3809831e0b2047

Co-authored-by: ck <chenke@uniontech.com>
2022-04-14 17:32:38 +08:00
mike d1ab823a1f
chore: DTextEdit crashed when NoTextInteraction was set (#97)
when NoTextInteraction was set, createStandardContextMenu() return nullptr.

Log: DTextEdit崩溃问题修复
Influence: DTextEdit-menu-crash
Change-Id: I632d90555809bcb844fab7e1fbbccf3e816e8b3a

Co-authored-by: ck <chenke@uniontech.com>
2022-04-14 17:31:45 +08:00
WangFei e3be8db577
chore: 打印预览默认pageSize的设置策略的修改 (#94)
根据A4的索引值index去设置当前默认pageSize

Log: 修改打印预览默认pageSize设置策略
Influence: 打印预览默认纸张大小
2022-04-07 10:31:36 +08:00
WangFei 73fb0a0faf
chore: 非active快捷键背景色调整 (#95)
在非active状态下,将颜色(109,109,109)
做blendColor调整后的颜色设为背景色

Log: 非active状态下,快捷键背景色调整
Influence: 快捷键样式
2022-04-01 16:53:58 +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
WangFei 33055cb783
fix: 通过控制中心修改字体,全英文文件名称编辑最后一行显示超长 (#91)
修改DTextEdit的frame_radius为之前的1/2

Log: 修复通过控制中心修改字体,全英文文件名称编辑最后一行显示超长问题
Bug: https://pms.uniontech.com/bug-view-118769.html
Influence: 文本框字体显示
2022-03-24 13:03:53 +08:00
mike d20ee61002
fix: wayland DArrowRectangle mouse propagation (#89)
* fix: wayland DArrowRectangle mouse propagation

wayland 下绘制透明的区域没有鼠标穿透导致无法点击后面的控件。
如果 handle 无效,则使用 qwidget::setmask 并且不加模糊特效

Bug: https://pms.uniontech.com/bug-view-99340.html
Influence: wayland-DArrowRectangle-dde-calendar
Change-Id: I0ce66452e443acf88cd3b5b72514ed3bff3a8bd2

* Update darrowrectangle.cpp

删掉注释的代码。

Co-authored-by: ck <chenke@uniontech.com>
2022-03-17 14:00:58 +08:00
993381 faa0551e54
fix: wayland 下关闭按钮禁用后不能取消禁用状态 (#90)
之前适配了wayland的关闭按钮的禁用功能,未考虑全面

Log:
Influence: wayland 下所有 dtk 应用的关闭按钮的禁用状态
Bug: https://pms.uniontech.com/bug-view-117469.html

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-03-16 18:28:36 +08:00
deepin-bot[bot] f350a44819
File Sync from linuxdeepin/.github (#88)
chore: Sync by d459ab5b73
2022-03-15 08:14:02 +00:00
wang fei 700b0b0aa2 feat: 长按最大化/还原按钮弹出分屏菜单
长按最大化/还原按钮超过300ms显示分屏菜单,
出现分屏菜单时不响应最大化/还原交互;
长按触发和鼠标移入触发显示分屏菜单后交互一致;
单击最大化/还原按钮交互不变;

Log: 增加长按最大化/还原按钮弹出分屏菜单功能
Task: https://pms.uniontech.com/zentao/task-view-101270.html
Influence: 分屏菜单显示
Change-Id: I1cd8ca87f21c54689cfb408063cbd207a33493d9
2022-03-09 21:06:34 +08:00
wang fei d5865437ff chore: 支持按住标题栏左上角图标拖动功能
设置DTitleBar的DIconButton的WA_TransparentForMouseEvents为true

Log: 屏蔽标题栏左上角图标鼠标事件
Influence: 标题栏的图标
Change-Id: I873035c2f6ebcf3285a2c0720b8849ed7920809f
2022-03-03 16:27:27 +08:00
wang fei 75c88fcac5 feat: 调整快捷键展示样式
修改keylabel的文本前景色为QPalette::ButtonText

Log: 调整快捷键展示样式
Task: https://pms.uniontech.com/task-view-101268.html
Influence: 快捷键样式
Change-Id: Idf031e1ad0c752844c43731a5f4899377d0d9ec7
2022-03-01 10:24:59 +08:00
AlexOne 4d4c41e396 fix: 禁用关闭按钮未能生效
禁用关闭按钮失败
之前改过,改了wayland平台的,但是x11还有问题

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-108083.html
Influence: 所有dtk应用的关闭按钮
Change-Id: Ieb1bcc45ec631fb55eddd8fde480b742ebc5df35
2022-02-24 13:09:23 +08:00
AlexOne 3fceb6325c chore: 按照要求修改单元测试文件名
按照要求修改单元测试文件名

Log:
Influence: none
Change-Id: I2804c65f306111397f43c1c780d19ca23e1cbdbc
2022-02-18 17:38:44 +08:00
AlexOne 2e5fb3280c chore: 修改单元测试生成目录
修改单元测试相关文件的目录结构

Log:
Influence: 单元测试目录结构
Change-Id: I4685e03a884eec2c876fc483748f9b169e0d4d40
2022-02-18 11:09:02 +08:00
AlexOne ee50d00688 fix: wayland平台关闭按钮无法禁用
wayland平台关闭按钮未适配,无法在设置Qt::WindowCloseButtonHint后
被禁用,对wayland平台单独处理后就可以禁用。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-108083.html
Influence: dtk应用标题栏的关闭按钮
Change-Id: I8b25319d84c5300d97c9e9b5c2623e96b0262239
2022-02-10 13:31:38 +08:00
ck 0269489d12 fix: 备份还原选择文件时控制中心崩溃
备份还原使用了setfiledialog, 不应该由 dtk 释放. 释放是为了解决 bug-110730
该问题在插件中修复见 Change-Id:If7cba6

Bug: https://pms.uniontech.com/zentao/bug-view-112210.html
Influence: dcc-backup-filedialog-crashed
Log: 备份还原文件选择崩溃问题
Change-Id: Idc73a66fd72a8e10bbbb4e9dfd0e20242e2f1a54
2022-01-25 15:18:36 +08:00
ck f37840028f fix: max button icon error on wayland
on wayland maximized window windowstate is WindowMaximized | WindowActive
should use testFlag or isMaximized

Bug: https://pms.uniontech.com/zentao/bug-view-112159.html
Influence: wayland-dtitlebar-maxbtn
Log:
Change-Id: I32e566bc41523df4bd114e0e0907191f3440d09b
2022-01-24 15:14:24 +08:00
ck 852a032f3a fix: 特效开关时DArrowRectangle圆角未及时更新
响应特效变化型号更新path

Log: 
Influence: DArrowRectangle 圆角
Bug: https://pms.uniontech.com/zentao/bug-view-110554.html
Change-Id: I5b8446d73bb379fd378208270cea8f7310d43778
2022-01-24 09:50:42 +08:00
AlexOne 045f620afb fix: DDialog 对话框中的按钮按下位置偏移
DDialog 对话框中的按钮按下位置偏移,按不到对应的按钮
按理说 Dialog 是不需要设置默认位置的,所以不对 Dialog 做处理
这里对 dtk 的 dialog 进行标记,在插件里面区分处理

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-103858.html
Influence: 所有使用Dialog的应用程序
Change-Id: I86a8e3d1ff7da2b69588a04c2870f62e0ede2d33
2022-01-18 18:05:24 +08:00
wang fei cede243cee fix: 窗口分屏菜单样式未统一
dark主题最大化和还原的图标用反了

Log: 修复窗口分屏菜单样式未统一的问题
Bug: https://pms.uniontech.com/zentao/bug-view-110577.html
Influence: 分屏菜单样式
Change-Id: I4fbd2669df1d940205c47dd5098b93427fb61bd7
2022-01-18 15:44:02 +08:00
wang fei b80ce5e2e6 fix: 安全中心设置界面显示与UI不符
新加的widget设置其布局的spacing和margin为0

Log: 修复安全中心设置界面显示与UI不符的问题
Bug: https://pms.uniontech.com/zentao/bug-view-111107.html
Influence: 设置界面UI
Change-Id: Ia4d6b0badbcf5a1528ef5f3c5ff561c9cfaa63a3
2022-01-14 16:44:15 +08:00
AlexOne 02d7e5cc5d fix: 文件选择对话框随机崩溃的问题
uos-activator 文件选择对话框随机崩溃

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-110730.html
Influence: 文件选择对话框的正常使用
Change-Id: I06f284b9aeb848ac712af618fec1de074e9ba95b
2022-01-14 10:49:44 +08:00
wang fei 4d19caf28c fix: 窗口分屏菜单样式未统一
最大化和还原的图标用反了

Log: 修复窗口分屏菜单样式未统一的问题
Bug: https://pms.uniontech.com/zentao/bug-view-110577.html
Influence: 分屏菜单样式
Change-Id: Ie7ddf9db510f223dabe139612d407d95616ea1d6
2022-01-11 13:39:58 +08:00
wang fei c8bcde4836 feat: 窗口标题栏菜单feedback Action的翻译
增加feedback action的翻译

Log: 增加标题栏菜单feedback Action的翻译
Influence: 标题栏菜单Action的翻译
Change-Id: I77d41131eb7ec9083e96d7bffefc439b6daf4b4d
2022-01-10 14:31:04 +08:00
justforlxz 6627d89217
feat: add feedback menu in titlebar menu
only deepin application can show this menu

Log: 为 deepin 应用添加反馈按钮
Influence: 社区版环境所有 dtk 窗口的标题栏菜单
Change-Id: I653f4263eaa77a485190d410f5e2155cc2b197da
2022-01-10 11:47:33 +08:00
wang fei f7ad608ec0 fix: 控制中心搜索框无内容时右击复制和剪贴菜单高亮
复制和剪切enable为false时,弹出菜单disabled;
复制和剪切为true时,不去主动enable,看是否有文字内容选中。

Log: 修复控制中心搜索框无内容时右击复制和剪贴菜单高亮的问题
Bug: https://pms.uniontech.com/zentao/bug-view-109634.html
Influence: DLineEdit右键菜单显示
Change-Id: Ia5fd37ab60e6ef1c75e4a3c044438972d61121cd
2021-12-31 17:47:27 +08:00
wang fei 6b06553d80 fix: dsetting的UI没对齐的问题
在label外面包层widget,label右边放个strech

Log: 修复dsetting的UI没对齐的问题
Bug: https://pms.uniontech.com/zentao/bug-view-108673.html
Influence: DSettingsDialog UI显示
Change-Id: If1a63ed6dd0fe4b90abf275f927d45e2aaf7851e
2021-12-31 14:01:15 +08:00
ck f5e745bdf9 fix: dialog show again with focus rect on closebtn
QDialog::setVisible will send QEvent::FocusIn with  Qt::TabFocusReason
that will cause DTitlebar focus to next widget(see DTitlebar::event)

Bug: https://pms.uniontech.com/zentao/bug-view-109838.html
Log:
Influence: dialog focus rect
Change-Id: Ibbe522b06567ecc8135b42a138e14d5771b6f647
2021-12-28 16:58:35 +08:00
ck d65d5824d4 fix: dsettingsdialog spinbutton default not work
the spinbox default range is 0-99. if value not in the range was set b4
setMaximum/setMinimum called will not work. e.g. default=1000

Log:
Influence: dsettingsdialog spinbutton
Change-Id: I11216686beb256b98a32046c40a2d58c535cd35b
2021-12-21 14:24:01 +08:00
Wang Fei cf7d8e0348 fix: tooltips不跟随DLineEdit同步滚动
顶层窗口滚动触发HoverMove事件后,
更新tooltips的位置updateTooltipPos。
DLineEdit隐藏,tooltips也跟着隐藏。

Log: 修复tooltips不跟随DLineEdit同步滚动的问题
Bug: https://pms.uniontech.com/zentao/bug-view-107662.html
Influence: DLineEdit的tooltips正常显示
Change-Id: Ib5b34a61f942af93c4d4ecb2d1384368655c4e19
2021-12-17 14:35:35 +08:00
AlexOne 3aee2ffdda fix: Combobox 调整字体后有多余的空白
Combobox 调整字体后有多余的空白
不超过 maxVisibleItems 项的时候使用Qt原有的接口,大于 maxVisibleItems
的时候再使用重新实现的内容来显示 Combobox

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-107861.html
Influence: 所有用到Combobox的地方
Change-Id: Ie600a6a10d850344bbf03362fa1412b53172f799
2021-12-17 09:50:24 +08:00
ck 49a12328cc fix(revert): window show firsttime with focus rect
部分应用显示时带一个焦点框
This reverts commit 5da77453d0
多加一个判断是否dtitlebar,因为 dtitlebar 焦点策略是 StrongFocus

Log:
Influence: 部分应用(如影院)显示时有焦点框
Bug: https://pms.uniontech.com/zentao/bug-view-107797.html
Change-Id: I321637472123dce90c16e0ca17f6b1834cda77d9
2021-12-15 13:43:47 +08:00
Wang Fei 1a2d67d1e6 fix: 控制中心个性化任务栏Disabled后,其选项仍可点击
设置DViewItemAction正确的enabled或disabled状态

Log: 修复控制中心个性化任务栏Disabled后,其选项仍可点击的问题
Bug: https://pms.uniontech.com/zentao/bug-view-107825.html
Influence: DViewItemAction状态正常
Change-Id: I75c3554ae9c4eb2c266ace871996c7c76e26fe97
2021-12-13 16:53:20 +08:00
Wang Fei 93c6b77e41 fix: wayland环境下,进度条预览显示错误
当DArrowRectangle的宽高小于Margins的宽高,
不做去除处理。

Log: 修复wayland环境下进度条预览显示错误的问题
Bug: https://pms.uniontech.com/zentao/bug-view-99710.html
Influence: wayland环境下,DArrowRectangle控件UI显示
Change-Id: I0fccecd304caa3d5537dd82ddd47c6fed0ddbd4b
2021-12-13 09:39:58 +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
AlexOne a46474fb93 feat: 支持无标题、窗口圆角、系统菜单
窗口圆角、系统菜单兼容旧借口,新增无标题栏的适配

Log: 支持无标题、窗口圆角、系统菜单
Task: https://pms.uniontech.com/zentao/task-view-93008.html
Influence: 所有dtk应用的标题栏、窗口圆角
Change-Id: I16c1f2160f607f673b643cc0289f573756d643e8
2021-12-09 16:04:11 +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
Chen Bin 39018d6c53 fix: 分屏属性不支持时不显示分屏菜单
窗管分屏属性不支持时,需要重新调整分屏界面为隐藏显
示,当高版本的DTK包在窗管不支持的场景下,会显示分屏
菜单且最大化按钮不置灰,由于最大化按钮使用窗管的功能
所以点击最大化时无法触发任何效果。因此根据产品意见仍
使用之前不显示的方案,防止对用户产生误导。

ToolTip Text界面消失时,由于抓取了关闭事件,会导致
分屏界面也跟随关闭,重新调整事件过滤器的逻辑,使其消
失时不导致分屏界面消失。

Log:
Influence: 分屏界面最大化按钮的显示
Change-Id: Id91b9511fa18521c22c6dae767df2fa2c0a56a24
2021-11-30 10:47:54 +08:00
Wang Fei b676824b5b fix: DPasswordEdit展示警告信息后关闭窗口程序崩溃的问题
1. Dialog(包含DPasswordEdit)和DFontSizeManager都是个静态对象;
2. 程序退出后,先析构DFontSizeManager,再析构Dialog;
3. 析构Dialog后,通过destroy信号调用DFontSizeManager的unbind崩溃;
修改:DFontSizeManagerPrivate增加一个成员,作为connect第三参数。
析构DFontManager后断开连接,不再调用DFontSizeManager的unbind。

Log: 修复DPasswordEdit展示警告信息后关闭窗口程序崩溃的问题
Influence: DPasswordEdit警告信息展示
Change-Id: I93424538867dd29dfffebc0e58e388ae0011e62e
2021-11-25 09:58:04 +08:00
ck 14f82961c7 fix: Calling setfont causes a deadlock
由于当前版本中qt setfont -> fontChanged 没有释放锁导致获取font时死锁。

Log: 
Influence: 设置字体-部分应用卡死
Change-Id: I8553c32e2a8973d687c03b40c8dcb20d31bcb10f
2021-11-24 16:40:10 +08:00
ck 5da77453d0 fix: 修复首次激活窗口焦点异常的问题
tab到菜单按钮打开菜单选择关于,显示关于对话框关闭,焦点不在菜单按钮,重复操作
焦点正常。这里将该操作去掉

Log:
Change-Id: Ice6ceac61a7494037a5b7a6a7cc60796ca16c3e0
Influence: 窗口标题栏焦点问题
(cherry picked from commit abbbaeb81cc71a05d71799a3583f309bbe2dde26)
2021-11-24 14:44:53 +08:00
Wang Fei 69a6cae920 fix: 修改维语的dsetting的UI没对齐的问题
修改label的水平宽度的策略为QSizePolicy::Maximum
布局中间加个弹簧

Log: 修复维语的dsetting的UI没对齐的问题
Bug: https://pms.uniontech.com/zentao/bug-view-64684.html
Influence: DSettingsDialog UI显示
Change-Id: I00e13dc24b9b5eec0ee81db868507aaa36d21fc0
2021-11-23 17:15:47 +08:00
Chen Bin fc6684e6ab chore: 更新翻译
更新DLineEdit使用到的{复制、剪切}部分的翻译,更新
分屏需求中分屏按钮{左右拼贴、最大化、最小化}的 Tool
Tip 翻译。

Log:
Influence: 文本显示
Change-Id: I4f5ffcc5b9fab4b6d91a487d177b4666fdccee7b
2021-11-23 17:07:41 +08:00
ck e0e0f17c2f fix: ut memory leaks
ut 内存泄露问题修复

Log:
Influence: ut
Change-Id: Ifd93a54bb7c7cc050b92ade880f4adc307b70266
2021-11-22 14:55:54 +08:00
Ye ShanShan 9352e16c50 fix: 修复DTabBar添加按钮边距未居中的问题
调整添加按钮距离的QSpacerItem大小为设计大小,使其显示为居中状态。
这会影响所有使用了DTabBar的应用,当出现左右箭头,添加按钮,间距变化。

Log: 为DTabBar添加右边间隔
Influence: 这会影响所有使用了DTabBar的应用
Bug: https://pms.uniontech.com/zentao/bug-view-93590.html
Change-Id: Ic809f9987beb25dd53e2a7eaee34524330726e4b
(cherry picked from commit 6f40856064)
2021-11-22 10:09:54 +08:00
Chen Bin 1143050e94 fix: 窗管不支持分屏时禁用标题栏分屏按钮
1. 之前的逻辑处理为,当窗管不支持分屏时不显示分屏菜单,
但某些情况下窗口大小不支持分屏也会不显示,与需求冲突。
现修改为 2D 模式下隐藏分屏界面的显示,窗管不支持分屏时
禁用相关按钮。

2. 添加分屏菜单按钮的tooltip提示文本

Log: DTK增加分屏菜单需求
Influence: 窗口分屏菜单的显示
Task: https://pms.uniontech.com/zentao/task-view-90425.html
Change-Id: I8ad9ed39afbbac732e7029b3240aeb2107ef1c12
2021-11-22 09:36:35 +08:00
Chen Bin 830143eda5 fix: 修复分屏界面多屏分辨率不同的坐标位置错误
由于使用分屏界面的window接口用来获取其对应的屏幕大小,
但其使用的地方分屏界面的坐标是0,0,因此该接口返回的矩形
永远都是第一个屏幕的矩形(坐标0,0所在的屏幕矩形),当分
辨率不一致的屏幕显示分屏界面时,未到达屏幕底端仍会向上
显示分屏界面。这里将其修改为鼠标的全局坐标对应的window
获取屏幕矩形。

Log:
Influence: 标题栏分屏界面的坐标显示
Change-Id: I5fc7674529399dcc0d8cbac414dcb79e8933f7bc
2021-11-20 16:01:44 +08:00
ck bbe48584d1 feat: 增加一个属性判断忽略特效的开启圆角
增加一个属性判断来开启圆角

Log:
Influence: DArrowRectangle 圆角
Change-Id: I667f773b19072be8b7c95be7fb694f4f3ff0f60c
2021-11-19 14:30:33 +08:00
Wang Fei 4e49fa70ae fix: 解决分屏窗口超出屏幕下方时,窗口被遮挡的问题
当分屏菜单窗口超出屏幕下方时,
调整分屏菜单位置为靠上显示,箭头方向向下。

Log: 修复分屏菜单窗口超出屏幕下方时,分屏窗口被遮挡的问题
Bug: https://pms.uniontech.com/zentao/bug-view-103230.html
Influence: 分屏菜单窗口正常显示
Change-Id: Icdc941be4e45dee2cadcb017ea6da5b20882c198
2021-11-18 14:36:09 +08:00
Chen Bin 505ff2c811 fix: DListView中action不跟随其disable状态置灰
action中绘制图标时,并未处理icon以及widget的mode状态,
导致listview设置disable后其action仍是可交互的状态。通过
对action绘制进行判断,将item的状态转换成icon中的state和mode
来绘制其图标,以此解决该问题。

Log:
Influence: DListView控件的disable图标状态
Change-Id: Id9c5ee7c8cb93432f63c4af8469c5b3a946f6cda
2021-11-18 14:34:23 +08:00
ck 827dd32a0e chore: 警告消息显示隐藏逻辑微调
1.当目标是隐藏状态不会显示警告消息,毕竟这个是服务于目标的。
2.当警告消息跟随的控件隐藏时应该同步隐藏消息提示
     如:多屏时登录提示错误鼠标移动到另一个屏幕警告消息还在
3.一些健壮性修改,如空指针检查

Log:
Influence: alertmassage 警告消息的显示隐藏逻辑微调
Change-Id: Ibab9611cfd03449046d77a2711f58dd83cfdfb09
2021-11-18 14:11:17 +08:00
Ye ShanShan 273aa796dd fix: 修复DTabBar右边间隔过窄的问题
调整右边距离的QSpacerItem大小为设计大小,需要layout->invalid()才能生效。
切换圆角直角TabBar时,需要update,才能时时刷新。
这会影响所有使用了DTabBar的应用,当出现左右箭头,添加按钮,间距变化。

Log: 为DTabBar添加右边间隔
Bug: https://pms.uniontech.com/zentao/bug-view-93590.html
Influence: 使用了DTabBar的应用 

Change-Id: If54ef0bb93e69f68087e5fd8c5b6d8c97725362f
(cherry picked from commit 793957e7b8)
(cherry picked from commit a41c10127307cafa70e8f371ba3d1dc2087d573e)
2021-11-17 18:07:57 +08:00
Chen Bin 4ee566c574 fix: 修复分屏点击无效问题
由于事件过滤器过滤了按钮点击事件,导致按钮在
点击之后直接释放,而未处理点击信号,无法处理
分屏槽函数导致该问题,自测无需过滤按钮点击事
件只需处理按钮释放事件即可判断按钮的点击,保
证分屏按钮点击后信号能够发射出来。

Log:
Influence: 分屏菜单
Change-Id: Iedadce9c7c149bca387ed297941b75e2f721d101
2021-11-16 11:57:15 +08:00
Wang Fei 3664126555 fix: 解决buttonbox里面的button高度未对齐的问题
前后按钮使用抗锯齿,中间未使用抗锯齿,
导致高度不对齐。修改为统一使用抗锯齿。

Log: 修复buttonbox里面的按钮高度未对齐的问题
Bug: https://pms.uniontech.com/zentao/bug-view-102592.html
Influence: ButtonBoxButton按钮UI
Change-Id: I2c739c8556c9bcb3056218eb7fa99b8ede2260c7
2021-11-16 10:33:34 +08:00
Chen Bin d2b9afddf5 fix: 修复打印预览并打按钮点击无效果及崩溃隐患
1. 并打按钮相关图标存放在Icon目录下,点击无法出现选中
效果,与相关开发沟通这是一个异常行为,将其修改值Action
目录下,使其点击能够跟随高亮显示。

2. 由于之前的代码清理不彻底,出现仍有寻找旧有代码的相关
逻辑,并有崩溃隐患,这里统一删除掉旧有代码,防止该隐患
发生。

Log:
Influence: 打印预览按钮显示逻辑
Change-Id: I3befb8008992623d6a564a47f9364ae7b1a13551
2021-11-11 13:08:06 +08:00
Chen Bin a6ed877267 feat: 标题栏最大化按钮分屏需求
1. 实现长时间Hover最大化按钮出现分屏界面,离开最大化
按钮或分屏界面后,短暂时间内消失。

2. 分屏界面有左分屏、右分屏和最大化还原按钮,通过平台
插件调用窗管接口实现。

3. 完善界面,根据设计提供的控件和颜色值进行编码。正常
情况下显示三个控制按钮和分屏界面,当分辨率和窗口大小
不满足时,禁用三个控制按钮。

Log:
Task: https://pms.uniontech.com/zentao/task-view-90425.html
Influence: 标题栏最大化按钮的交互性
Change-Id: I3103c7795dac0fdfad87a9c7a8fa20e2dd989e8e
2021-11-10 15:58:36 +08:00
AlexOne c88bed1e24 fix: 修复警告信息被其它窗口盖住的bug
修复 showAlertMessage 的警告信息被其它窗口盖住的bug

Influence: 所有可以显示警告信息的编辑框

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-101416.html
Change-Id: I4ab3c3f53630bcf0be908edbfbeb150a8e4d50cd
2021-11-10 13:31:51 +08:00
Chen Bin ccec3506ae chore: 清除编译警告
因重复添加dpalettehelper.h到编译规则中导致
编译时出现覆盖警告。

Log:
Influence: 无
Change-Id: Idd1fcfb7c57c1b3597007de338a733d8269cc112
2021-11-09 16:52:25 +08:00
ck 50604361cf chore: 单元测试在crp上mips架构打包失败
错误信息如下:
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
make[2]: *** [Makefile:352: check] Illegal instruction

Log: 
Influence: 单元测试在crp上mips架构打包失败
Change-Id: I4f1a08f04596c856829db593aec4a0691100e486
2021-11-05 15:07:29 +08:00
ck b7952ebfa8 chore: rpm build failed
添加 example 示例程序安装

Log:
Influence: rpm build
Change-Id: I3d858b7c0f562769252947b023e18dad41d41936
2021-10-30 18:10:42 +08:00
ck 79303c804b chore(build): 增加qmake/cmake文件生成条件
仅仅当设置 qmake 变量DTK_MULTI_VERSION才生成5.5的qmake/cmake文件

Log:
Influence: build
Change-Id: I646d891594393c094676756c8d425a7756f1a866
2021-10-30 16:47:31 +08:00
ck eadda37e2c chore(build): add gtest-devel build required
添加gtest编译依赖

Log:
Influence: rpm 打包
Change-Id: Ib64bda4646b1144a60c97866d6be958148ac030a
2021-10-30 15:26:46 +08:00
Ye ShanShan 0200c45ddb chore: 重写DComboBox引起的其它应用编译问题
重写DComboBox,删除了dwidgetstype.h文件,导致其它应用
可能没有额外包含dwidgetstype.h或指定类型的文件而引起找不到符号定义。

Log: 
Influence: 升级dtkwidtet后,应用编译问题。
Change-Id: I9e7a41cd3faabf7d602dfc3b9cd85772ed229bc5
2021-10-28 10:49:05 +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
ck 51911975b4 chore(style): add checked IndicatorChecked icon
添加列表项选中并勾选的状态图标,checked 的 indicator 就不绘制背景了,
因为插件资源中没有放置背景图,再将前景色改成 HighlightedText 即可实现反选色。
如果找不到图标 selected_checked_indicator 则和之前逻辑一致,防止出现绘制异常。

Log:
Change-Id: I6f54a50f6801613c281e5675c07dbeb33406b603
Influence: 列表选中时勾选的图标颜色
(cherry picked from commit c21614fae2aa98c5130b6535aae2a17ce1ac64fa)
2021-10-27 13:31:11 +08:00
ut003691 5db232800e feat: 添加listview的uncheck项的图标是否可见的set函数
添加对属性_d_dtk_UncheckedItemIndicator设置的函数,
从而设置listview中uncheck项的图标是否显示

Log: 增加设置listview的uncheck项图标可见性的函数
Influence: 所有listview中uncheck项的图标是否显示,
  与qt5integration(>=5.1.21)配合使用,才能生效。
Change-Id: I256803fd09ca395c9612e022905f0ea940d5024a
2021-10-27 10:59:24 +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
ck d5f0b5153d fix: 标题栏焦点需要多按一次tab才能到控件上的问题
标题栏需要有强焦点策略才能点击和激活窗口时聚焦在标题栏上
Tab 切换时主动将焦点给到下一个控件上,减少一次按键。

Bug: https://pms.uniontech.com/zentao/bug-view-65703.html
Log:
Influence: 标题栏切换焦点切换(减少一次切换到标题栏上)
Change-Id: Idf492e4e97efcc5f2cb2e983bf3c9a9a80bc6dee
(cherry picked from commit 21220cd147)
2021-10-22 09:54:46 +08:00
AlexOne c9351194de fix: 没有帮助手册的时候调用不了自定义handle
对于 DMainWindow 的帮助菜单,系统默认的依赖于帮助手册的存在,自定义的可以不依赖

Influence: 所有用到 DMainWindow 的应用程序。影响程度:极小

Log:
Change-Id: I5f229506527e51fc3b130e915f648e6b3b342a84
2021-10-21 10:38:16 +08:00
Chen Bin 1009563e0a fix: Qt 5.15环境下固定大小的程序仍显示最大化按钮
通过检测 window 的 minimumSize 和 maximumSize 大小是否一致,
来判断当前窗口是否符合固定大小的状态。然后根据该状态决定是否禁
用最大化按钮。

Log: 修复部分程序点击最大化按钮无效的问题
Influence: 设置fixedSize后窗口标题栏的最大化按钮显示
Bug: https://pms.uniontech.com/zentao/bug-view-82074.html
Change-Id: If136c00465e35e4219cce5147653bccb3d4a35c4
(cherry picked from commit a2f62c2e6b)
2021-10-20 13:22:42 +08:00
Wang Penga 67c8b01194 chore: 添加 dcommandlinkbutton 的 brief
添加 dcommandlinkbutton 的 brief

Log: 添加文档简介
Change-Id: I3c8a8cd57e35ac4872bb69379d97193d8065cf22
2021-10-18 16:04:14 +08:00
Wang Penga e5bebed8d4 feat: 添加 DPasswordEdit 的复制剪切控制接口
添加copy、cut的接口以打开或关闭lineedit的复制剪切功能。
默认passwordedit不禁用复制剪切,需要应用自行调用。

Log:
Task: https://pms.uniontech.com/zentao/task-view-86148.html
Change-Id: I88512e8bb584d018e7a79f8a94e7807d8061cc9a
2021-10-12 12:28:52 +08:00
Chen Bin 9ddd5dd7d4 chore: 清除 QDoc 运行时的警告信息
1. 修改注释中错误的用法,以减少 QDoc 运行
时的报错。
2. 对部分缺失注释的类添加注释。

Log:
Change-Id: I4a6910429c56e9d79729f835805ce7603735046c
2021-10-06 13:32:31 +08:00
ck 134931b3bc fix(style): disabled titlebar button with hover state
绘制标题栏按钮时,如果禁用状态下hover不应该绘制背景色

Log: 修复切换窗口后禁用的标题栏按钮显示hover状态
Change-Id: I1a634824502a8dff3f256c3c972dccdf9180f049
(cherry picked from commit 4922b3109b)
2021-09-18 15:01:21 +08:00
wangzhixuan f123cd7c22 fix: 消息提醒,查询只查询子控件,不递归查询
消息提醒,查询只查询子控件,不递归查询。防止出现多窗口的情形下消息位置错误。

Log:
Change-Id: I0b160efbf71dbdca4ecebe7f91e39f2e30fd29de
2021-09-16 13:43:13 +08:00
Chen Bin b2ddd786d3 chore: 输出自动化标记汇总结果
新增打印自动化标记输出结果汇总,添加已标记数量
和总数量等等。

Log:
Change-Id: I61bdc44e25b5d36b497f62cf6492a11db52aea37
2021-09-14 13:40:08 +08:00
Ye ShanShan 00d1254980 fix: 修改ut_dmpriscontrol偶发失败的问题
DMPRISControl会监控music服务,当music应用运行时,dbus服务启动,
isWorking为true。

Log: 
Change-Id: I52e41eaa38b0b9dec4b6daeb0be7209dd1a9efa2
(cherry picked from commit 2f27b29e6eb8532ec8070eb53677a040dac33111)
2021-09-14 13:39:44 +08:00
Ye ShanShan 6439fd237c fix: 修复DIconButton设置了高亮但按钮背景不跟随主题变换的问题
当backgroundRole为高亮时,将QPalette::Light和QPalette::Dark都设置为高亮。
这会改变所有使用了自定义的调色板DIconButton的应用,背景颜色异常,
未自定义调色板的DIconButton与修改之前差别不大(lightLively和darkLively颜色差异不大)。

Log: 
Change-Id: I3ea0ce20b89d620dd36a0c5393b4055fc520b603
(cherry picked from commit 88814fb59a)
2021-09-13 13:33:15 +08:00
wangfei 8950856bb8 fix: 将头文件包含的双引号修改为尖括号
修改头文件包含双引号为尖括号,默认从标准路径查找该头文件,增加查找效率

Log: 将头文件包含的双引号修改为尖括号
Change-Id: Idef8426a93b34a6a7415fe63a25084160ece9eb6
(cherry picked from commit 112f218ab7)
2021-09-08 13:27:48 +08:00
Ye ShanShan 72358fbff7 fix: 修复DSearchComboBox内存泄露问题。
搜索框proxyModel对象未释放,添加this作为父对象,
在setModel(d->proxyModel)调用里,会判断并是否析构上一次的proxyModel。

Log: 
Change-Id: I5aaa4825d19df1c93dcbf84fe33600f6c29198a0
(cherry picked from commit 2901df31b0)
2021-09-08 13:09:41 +08:00
ck 32d334cdba fix(tests): remove gmock link
单元测试没有用到gmock,这里去掉链接gmock

Log:
Change-Id: If91d3ffa9ead5698b2cb78bb811a76ff0af30bed
(cherry picked from commit 4a3b38a5e0)
2021-09-08 10:51:51 +08:00
wangfei 5359e3800c fix: 根据编译警告修改代码,去除warning警告
1.未使用变量加上Q_UNUSED宏;
2.增加一条返回控制流,去除返回类型不匹配警告;
3.调整初始化列表顺序,保持和变量声明顺序一致;
4.增加override关键字;

Log: 修改相关代码,去除编译警告
Change-Id: I7f48d3f04dadf59d2963fabf406143bb331ec927
2021-09-06 16:03:15 +08:00
wangfei 354a11136e chore: 补充dclipeffectwidget、dipv4lineedit等widget单元测试
补充dclipeffectwidget、dipv4lineedit、dprogressbar
dsearchcombobox、dspinner、dstyleditemdelegate、
textedit和waterprogress单元测试,提高覆盖率。

Log:
Change-Id: Ib2a73c33d3b9866fc9ef87858fb4f07d1023bbff
(cherry picked from commit 50ae968ba3)
2021-09-03 13:38:33 +08:00
Ye ShanShan 7efd5d2f03 fix: 修改内存泄露问题
修改DAnchors和单元测试DListView的内存泄露问题。

Log: 
Change-Id: Ia1fde9a55fd37c2df080ea8e142ab6d1127c6628
(cherry picked from commit 95eb7a4218f43dd5c11cbaace4e1e30e3c52b2b5)
2021-08-26 10:20:22 +08:00
Ye ShanShan a1c10c2e07 chore: 添加单元测试
新增widgets简单接口的单元测试,以增加覆盖率
DToolButton单元测试适配maintain/5.4分支
去掉test.pro中链接libdtkwidget,因为已经以源码形式嵌入到test中,
否则make check时,运行会加载libdtkwidget.so,报Shadow 错误。
剩余未添加到接口类在testcases/widget.pri文件里以`#`注释来提示,之后继续添加。

Log: 
Change-Id: I0821b57b67f4636c3179e89a2f74ff2cbb60b588
(cherry picked from commit 3413572383da384df27be9d68a27ceb2d5604b20)
(cherry picked from commit eb952dc08f)
2021-08-26 09:50:33 +08:00
ck 84013a5876 fix: 重复的判断条件
此处应该是手误,判断条件应该是两种模式。

Log:
Change-Id: I52a715b2dddb350745132429d1a1aac2afba50ab
2021-08-26 09:47:25 +08:00
ut003691 a6c08332ce fix: slider例子左按钮和右按钮点击都是增加slider的值
修改slider左按钮功能为减少slider的值

Log: 修改slider例子中slider左按钮功能为减少slider的值
Change-Id: I7f936d12464aeb78c26a14f711571ee9bd90e907
2021-08-24 16:58:09 +08:00
Ye ShanShan f89fe57b11 fix: 修复DTabBar的insertTab接口递归调用问题
应该是调用具体实现(QTabBar)的insertTab接口,而不是调用自己的接口。

Log:
Change-Id: I6ce2d6e4216e8206933f8f0256193afb51885c83
(cherry picked from commit 5d7f306d22e1120cd6e5aad31fa19555c1408909)
2021-08-24 16:56:12 +08:00
Ye ShanShan 1e1470e3cf fix: 修复打印Paint device警告信息的问题
在Paint Event事件中执行绘制动作,

Log: 修复DTabbar引起的警告信息。
Change-Id: Ifefeec67e81c9692e21830939df26b7970a90d40
(cherry picked from commit a6a3e3384b)
2021-08-24 14:23:50 +08:00
Chen Bin 6f74c6e92f chore: 废弃类预处理宏增加项目名称
对用于防止重复包含的预处理宏增加项目名称的唯一性
标识,多项目同时编译是会出现某一项目文件无法参与
编译的情况。由于有命名空间作为不同类作用域的限定
,因此删除预处理宏不会对作用域产生影响。

Log:
Change-Id: I6dabbbf8f5434ebcc5499a96f34d0b2f083d1470
2021-08-24 13:20:17 +08:00
Ye ShanShan 58a5e78498 fix: 修复DTabBar拖动窗口时Tab显示不全的bug
DTabBar在布局时,横向布局和纵向布局都为居中对齐,导致QSpacerItem占用空余空间。
在横向布局时,控件垂直居中,在垂直布局时,控件水平居中。
这会影响所有使用了DTabBar控件的setExpanding和setShape接口的应用。

Log: 修复文档查看器的中档标题展示不全的问题
Bug: https://pms.uniontech.com/zentao/bug-view-90731.html
Change-Id: Iab9cd7b7e5c079aaa15a1f7af23169c647b44e72
(cherry picked from commit 22d66ea7c3)
(cherry picked from commit 2c17a414b797218153211fbe5abfa47952cffe7f)
2021-08-19 13:13:08 +08:00
Chen Bin 7984981527 docs: 更新dtkwidget项目注释信息
1. 增加QDoc注释识别配置文件
2. 修改项目注释信息,使QDoc能够正确识别
3. 修改一些不规范的注释,调整部分注释内容
4. 将部分.h文件的注释信息迁移到.cpp文件中

Log: 更新项目注释信息
Change-Id: Ic653a9ea7109adcf3df73e0c4c228790b4b058ae
2021-08-19 10:15:07 +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 1b2cdb2175 feat: 添加 libqt5widget5 版本限制
新增libqt5widget5的版本限制,防止应用出现符号缺失的报错 (QListView的触屏接口)

Log:
Change-Id: I84ea43cbac6027e78f02aba3df7b53314feaad27
2021-08-13 13:52:20 +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
Chen Bin 8c08c3aaa5 feat: 新增自动化名称检测类
新增对自动化名称检测的类,目前该类实现对控件
的AccessibleName和ViewItem的AccessibleText进
行检测。
不存在名称程序将退出,并提示具体位置。

Log:
Change-Id: I5813a0a5389201d37a8ffede76895d394691f5a1
2021-08-05 11:29:11 +08:00
Chen Bin 7413b914a2 fix(打印预览): 图片水印点击清除按钮水印不消失
未响应清除按钮点击的信号,点击清除按钮或修改水印路径后
需要更新预览的水印情况。一些错误路径或空路径预览应该取
消图片水印。
修复并打重复清除添加水印出现的卡顿问题,具体原因为并打
会处理多个水印项,如果重复处理灰度图,将出现性能问题,
解决办法为,只处理一次灰度图,其他水印项直接拿取已经处
理好的数据。将在高版本dtk下添加新接口来处理这种属性处
理问题。目前只是简单的属性复制。

Log: 修复清除图片水印路径的异常预览问题并提高稳定性
Bug: https://pms.uniontech.com/zentao/bug-view-89084.html
Change-Id: I2bb2452aa03e46256b9977d644aca1a43914404f
(cherry picked from commit c5f80ab69a)
2021-08-04 18:12:27 +08:00
Chen Bin cedbe540bd fix(打印预览): 内部控件的遮盖导致对话框无内容
打印预览为了隐藏对话框的模糊效果,使用一个不透明控件
遮挡。由于平板项目调整了DDialog控件布局,添加了一个背
景控件,导致打印预览的背景控件全部遮盖住所有内容。
将打印预览的背景控件调整到所有控件最底端解决此问题

调整打印预览部分布局代码,原代码使用背景控件遮盖标题栏
形成标题栏背景。这种做法不太妥当,这里调整为直接修改标
题栏调色板。

修复预览页面背景色不一致的问题:由于多种颜色有不透明度
的叠加,导致源颜色较深,这里调整目标颜色使背景颜色保持
一致。

Log: 打印预览UI问题修复
Change-Id: I3792a87cc3f8f56c163751d9e42d094e054a240b
2021-08-04 14:20:30 +08:00
wangfei a81b2eb463 fix: 水平进度条左对齐的时候,文字显示在左上角,垂直方向未居中
左对齐时,文字的位置是(0,0)。
添加进度条Label的相对位置,垂直方向居中显示。

Log: 进度条非居中显示时,水平进度条文字垂直居中
Change-Id: I4fe816c4cf9c896a532b097c4c38f749a24f30d0
(cherry picked from commit 9ad6fea870)
2021-08-03 11:23:02 +08:00
Wang Penga 294315b71d chore: add unit test
添加:
    DSlider
    DTipLabel
    DTitleBar
    DPushButton
    DWindowMaxButton
    DWindowMinButton
    DWindowCloseButton
    DWindowOptionButton
    DWindowQuitFullButton
    DArrowLineExpand
    DArrowLineDrawer
    DPageIndicator
    DIpv4LineEdit
    DShadowLine
    DTextEdit
    DSpinner

Log: 添加单元测试
Change-Id: Ibcec3471bffee9e9455e08543e082919c02265dc
(cherry picked from commit 3131d9900e)
2021-08-02 13:08:06 +08:00
Wang Penga d0d896d073 fix: 修复dlistview 背景绘制的 Bug
当设置了 DStyledItemDelegate::BackgroundType::ClipCornerBackground 的
时候,dlistview 不能正确绘制背景。经排查发现 qt 移除了相关代码,导致
绘制的时候获取不到正确的 list item 的索引,所以就没有绘制出来。Qt 在
这个提交进行了Revert:https://bugreports.qt.io/browse/QTBUG-72748

Log: 修复dlistview 背景绘制的 bug
Change-Id: Ifbd16ac8fd91e13d4bf2787d1133054a10bc926b
2021-08-02 10:09:22 +08:00
wangpeng 85316cfaea fix(tablet): DTitleBar更多菜单项在屏幕旋转90度后显示错位
监测屏幕翻转信号,更改菜单项位置

Log: 修复标题栏菜单项屏幕旋转90度后显示错位
Bug: https://pms.uniontech.com/zentao/bug-view-89291.html
Change-Id: I87e0a2b7f1059c52b7a542dfbcc190ada59599d6
2021-07-29 11:43:37 +08:00
Wang Penga dc038432be feat: Add unit tests
为以下模块添加单元测试:
    DBoxWidget
    DBlurEffectWidget
    DIconButton
    DToolButton
    DProgressBar
    DWaterProgress
    DAnchors
    DMainWindow
    DFloatingMessage
    DSwitchButton
    DWarningButton
    DSimpleListView
    DKeySequenceEdit

Log: 为部分组件添加单元测试
Change-Id: Ic2ed6be7e54101e856f286aec3a4c549e47aaac7
2021-07-26 11:06:20 +08:00
wangpenga 5147ac992c chore: asan无日志生成则添加空文件
没有任何内存泄露被检测到则添加空文件

Log: 修改脚本添加单元测试的 log report
Change-Id: I736264767a6f4734f0f22eb9d6215f67a13f2aea
2021-07-22 11:32:37 +08:00
wangpeng 1d59721f6a fix(dialog): 修复平板中getParentGeometry()返回值错误
屏幕翻转后getParentGeometry()返回值错误
解决:平板下应用全屏,故直接返回屏幕信息

Log: 修复屏幕翻转Dialog不居中问题
Bug: https://pms.uniontech.com/zentao/bug-view-88079.html
Change-Id: Iad2deeae220d88b6aa29f0f813c80bbf77f42d51
2021-07-20 16:28:12 +08:00
wangpeng e16cd9a4d7 fix(DAboutDialog): 设置平板模式关于对话框为模态窗口
根据要求设置平板模式下关于对话框为模态窗口。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-83083.html
Change-Id: Ib6db6d64526cc9fc19e803d691bf55d995af83fc
2021-07-20 13:45:22 +08:00
Chen Bin 30c8a0b3f6 fix: 打印预览修复水印类型不匹配问题
切换水印类型后,关闭水印重新打开,水印类型和预览类型不一致。是由于重新打开后
会将默认水印类型修改为文字类型(第一项)。变量未正确使用,导致仍用的第一个索
引值。

将该索引值修改为当前选择的变量以解决此问题。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-72701.html
Change-Id: I9761ed60679b38a12ecec4781b3530741ca03ec0
(cherry picked from commit 74bd62ca8e)
2021-07-19 18:18:03 +08:00
Chen Bin 33f201de66 fix: 打印预览修复默认字体非系统字体
重复打开打印预览对话框,水印的默认字体并非系统字体。由于初始化变量为
static,重复打开打印预览对话框不会清空这个变量的值,导致不会进入到选
择默认字体的函数中,出现此bug。

将变量修改为类的属性值,来解决此问题。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-73184.html
Change-Id: I1464ba8c3d0de709f14032d51d17bc730b3eb515
(cherry picked from commit 76caa95251)
2021-07-19 18:17:29 +08:00
Chen Bin 8b9ee360f4 fix: 打印预览修复页边距无法删除整数位
由于正则表达式限定了字符样式为整数位最少有一个字符,导致出现此问题。
重新调整正则表达式,让整数位可以在备选数中出现0-1次,以解决此问题。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-72831.html
Change-Id: I9a9c357a1956e82e131f57d7ce89c673b18e4eda
(cherry picked from commit 2bd2344857)
2021-07-16 17:14:37 +08:00
wangpeng 63850a077d fix(DLineedit): 点击清除按钮虚拟键盘隐藏
lineedit失去焦点时点击清除按钮,焦点存在虚拟键盘隐藏
故lineedit获取焦点,手动拉起虚拟键盘

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-87043.html
Change-Id: I3597fa03d317781f74efb8b955294c57c80affa6
2021-07-16 14:15:31 +08:00
wangpeng e2b65e25b6 fix: 修复setAttribute(Qt::WA_Hover,false)后调色板颜色获取错误
设置Attribute(Qt::WA_Hover,false)后,
依旧会根据State_MouseOver获取更改后的调色板颜色

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-84798.html
Change-Id: I5094f4d5de4861170ea94030578507104154d6b6
2021-07-15 13:30:51 +08:00
wangpenga c5ede2564d fix: designer 中控件名称显示带命名控件
添加属性去除带命名空间的名称显示。

Log:
Change-Id: I1d4a51c876c6e4e2f69cb9ffa70e36ab97f66cbf
2021-07-14 17:45:38 +08:00
wangpenga 88611951e1 chore: 添加 plugin 中的 DSearchEdit 控件
前面没有加上这个,虽然示例里面写的有,现在加上。

Log:
Change-Id: I7565401c9244c17a2bf260c56f3c9097aa53623d
2021-07-14 14:08:59 +08:00
wangfei fc212a371f feat: 添加插件的图标资源
1.添加designer 插件的控件类的图标资源
2.修改图标资源绝对路径为fromTheme调用

Log:
Change-Id: I5176b6fdc1f18a3e460f3ae269c0ea7a61b1ba85
2021-07-14 13:18:35 +08:00
wangpenga 79e87ab79b fix: 单元测试不能生成config文件编译失败
在单元测试中因为少加了 make qmake_all 的执行步骤导致未生成 config,编译失败。
将单元测试脚本的最新修改同步进来,添加了参数生成测试数据。

Log:
Change-Id: I62d304d138873bfd43dd50db0df4a24d1cf80cf6
2021-07-14 11:06:18 +08:00
wangpeng c024dc061c fix: 输入控件被虚拟键盘顶起,文本选择handle位置错误
handle获取了mapToGlobal()位置,
虚拟键盘顶起时handle位置不变。
handle位置显示错误

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-84384.html
Change-Id: I27c7925c2eefaa502adf69f23735475ed2bd6789
2021-07-13 10:18:19 +08:00
wangpenga 5f5ff85a8d feat: 使用 designer 插件方式创建 ui 布局
添加插件代码使 dtk 的ui控件在 qt designer 里面能够被拖拽布局。
编译出来的插件要安装到 /usr/lib/x86_64-linux-gnu/qt5/plugins/designer 目录下。

Log:
Change-Id: I13264255de86943d821db3436f049bc7b7aa1ea5
2021-07-09 15:25:59 +08:00
wangpeng ddbe9d509f fix(DDialog): exec()返回值错误
如果设置了WA_DeleteOnClose属性,
那么在QDialog::exec()中将直接delete this,
成员变量中记录的数据失效,返回值错误

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-86010.html
Change-Id: I5b6a416ae632bc8cab550dd6b38cecf90ebae8da
2021-07-08 17:25:09 +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
wangpeng 5f87a2f66f fix: 修复设置NoHover状态控件颜色错误
设置setAttribute(Qt::WA_Hover, false)后
按钮按下时依旧会存在State_MouseOver状态,
此时generatedBrush()获取的是mouseOver的调色板
颜色错误

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-84798.html
Change-Id: I9fc9b4c0f11d73670ec3d62cf9f87dffc189641c
2021-07-08 14:12:32 +08:00
Chen Bin a4b65a9253 fix: disable下的DStandardItem项Checked状态没效果
DStyle中未处理disable下DStandardItem的调色板,因此Checked图标
只有高亮色。重新添加对icon状态的判断解决此问题

Log:
Change-Id: I0557d8d523d0d35100d09022ddf5de77817c8be4
(cherry picked from commit e2d124525f)
2021-07-06 11:43:46 +08:00
wangpeng 5a2283b959 fix: 添加Dtextedit类控件适配虚拟键盘
重新修改自适应规则,使Dtextedit适配虚拟键盘显示

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-72019.html
Change-Id: I5cdd5631cdd54a71c5cdc6762edc0e16f130943a
2021-07-06 09:26:55 +08:00
wangfei 6df82679bf fix: buttonbox的按钮之间有分割线
将buttonbox中按钮border的颜色设置为背景色
NoPen不会绘制边框,会留下间隙,似分割线

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-84144.html
Change-Id: I3247c3f72d97ef5da63ab585dbd630e0886e0ef6
2021-07-05 09:56:37 +08:00
wangpeng 7def9b706b fix: qapplication中使用DDialog崩溃
qapplication中无acclimatizeVirtualKeyboard()函数,
程序崩溃

Log:
Change-Id: I0372b1a814049386ede22bebba6fb2245011183a
2021-06-30 18:52:09 +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
chenbin b736f66962 Merge "feat: Merge branch 'maintain/5.5' into master" 2021-06-29 15:38:27 +08:00
wangpeng 3c75e13c8a fix: DTextEdit光标点偏移
DTextEdit绘制圆角setViewportMargins导致光标点漂移。
更新ImAnchorRectangle位置

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-79676.html
Change-Id: Ib48f4ba592adee585f4c33b48dd41c6411ac534b
2021-06-29 14:11:42 +08:00
wangpeng f50d6bb999 fix(Dialog): 使该类中输入控件不受虚拟键盘遮挡
对DDialog DsettingsDialog控件添加不受虚拟键盘遮挡.

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-80052.html
Change-Id: I983e950305bea304ccc45e60b161e1b8879e281d
2021-06-29 11:18:19 +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
wangpeng fb4f6c37bb fix: DTextEdit光标点偏移
DTextEdit绘制圆角setViewportMargins导致光标点漂移。
更新ImAnchorRectangle位置

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-79676.html
Change-Id: Ib48f4ba592adee585f4c33b48dd41c6411ac534b
2021-06-28 10:58:53 +08:00
MobeiSiran 93c513c0c7 fix: 修正关闭对话框时,返回的不是-1,而是前一点击按钮索引的问题
当onButtonClickedClose为false时,不应当保存当前点击按钮索引于clickedButtonIndex。
这会导致点击对话框的windowCloseButton时,exec()返回记录于clickedButtonIndex中的值,而非-1。
这是一个从Dtk 2时代遗留下来的问题,需要修复。

Log: 修正DDialog::exec()返回值错误的问题
Change-Id: If0c0842b1231abdeab6835a573bee34d7ca76000
(cherry picked from commit ee4d949a30)
(cherry picked from commit 436f52b21f)
2021-06-25 14:33:02 +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
wangpeng b71aa5332e fix: 修复平板中全屏退出按钮闪动问题
平板模式下不加载退出全屏按钮

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-84506.html
Change-Id: I5b24355d17f537d98333434e3eb97f2a4ecee88b
2021-06-25 09:11:54 +08:00
wangpeng f838e3bb11 fix: 修复平板中全屏退出按钮闪动问题
平板模式下不加载退出全屏按钮

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-84506.html
Change-Id: I5b24355d17f537d98333434e3eb97f2a4ecee88b
2021-06-25 09:11:44 +08:00
wangpeng 9e6c75518f fix: 去除api.json中的冲突代码
去除api.json中的冲突代码

Log:
Change-Id: If3357e69d3509d80684a7db9cdab9e88cd3175f9
2021-06-24 16:48:50 +08:00
wangpeng f00010ce02 fix: 去除api.json中的冲突代码
去除api.json中的冲突代码

Log:
Change-Id: Ibd9d4ab4f5d76e8554168c74a5d33b3067d135b1
2021-06-24 13:16:22 +08:00
wangpenga 5ed88eabc1 chore: After call setSingleInstance should return.
使用完 setSingleInstance 接口后应该返回。
消除collections示例中重复添加布局的警告错。

Log:
Change-Id: I9620d2ebf46ee6703a03a5a2118f201d651f6844
2021-06-24 11:43:26 +08:00
wangfei f3eb0a1a22 fix: buttonbox的按钮之间有分割线
将buttonbox中按钮border的颜色设置为透明

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-84144.html
Change-Id: Ic3211ca4d1a15a3023d3d97a51afc78952c981b2
(cherry picked from commit f1047ae456)
2021-06-23 16:02:49 +08:00
wangfei d2f7283325 fix: buttonbox的按钮之间有分割线
将buttonbox中按钮border的颜色设置为透明

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-84144.html
Change-Id: Ic3211ca4d1a15a3023d3d97a51afc78952c981b2
(cherry picked from commit f1047ae456)
2021-06-23 16:02:34 +08:00
wangpenga 8fb7b54555 chore: update abi json file
按照新的规则要求更新abi文件。

Log:
Change-Id: Ib75ac668d845ba572deef886ae808e285e759b24
2021-06-22 16:55:30 +08:00
wangpenga be3861f45f chore: deprecated message modify.
修改不恰当的deprecated 提示信息。

Log:
Change-Id: Ia7ff60b48116719cdec30e06076447abe7a6112f
2021-06-22 15:11:19 +08:00
MobeiSiran ee4d949a30 fix: 修正关闭对话框时,返回的不是-1,而是前一点击按钮索引的问题
当onButtonClickedClose为false时,不应当保存当前点击按钮索引于clickedButtonIndex。
这会导致点击对话框的windowCloseButton时,exec()返回记录于clickedButtonIndex中的值,而非-1。
这是一个从Dtk 2时代遗留下来的问题,需要修复。

Log: 修正DDialog::exec()返回值错误的问题
Change-Id: If0c0842b1231abdeab6835a573bee34d7ca76000
2021-06-22 13:39:00 +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
wangpeng 86f8d63d37 fix(DTitlebar): 修复setWindowTitle()函数在平板中使用失效问题
原因:错误的将title屏蔽

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-83929.html
Change-Id: If60e9b3f6a19e8d0b708851d110b388738e736f4
2021-06-21 14:35:32 +08:00
wangpeng c2e89c6a2c fix(DTitlebar): 修复setWindowTitle()函数在平板中使用失效问题
原因:错误的将title屏蔽

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-83929.html
Change-Id: If60e9b3f6a19e8d0b708851d110b388738e736f4
2021-06-21 14:35:26 +08:00
Chen Bin 93d64e6262 fix: DApplicationHelper类5.5分支失效
DApplicationHelper类在5.5分支上废弃,推荐使用DPaletteHelper。
由于5.5分支绘制时全都已经修改为DPaletteHelper类,导致应用使用
DApplicationHelper失效。

将DApplicationHelper的内部实现修改为DPaletteHelper的方法,来兼
容原来的接口。

Log: 5.5分支兼容5.4分支接口的使用
Change-Id: Ib551cc218bb9adfbd7f3f710d1d2d09c4d02ebd1
(cherry picked from commit 3a2a1241f0)
2021-06-21 14:34:31 +08:00
wangpenga 4ebefc9151 feat: install dtkwidget example application.
把 dtkwidget 的示例程序打包安装到指定路径。

Log:
Change-Id: I20061429633f61ae7c363b5b7407f812778d8a12
2021-06-21 14:25:14 +08:00
Chen Bin 3a2a1241f0 fix: DApplicationHelper类5.5分支失效
DApplicationHelper类在5.5分支上废弃,推荐使用DPaletteHelper。
由于5.5分支绘制时全都已经修改为DPaletteHelper类,导致应用使用
DApplicationHelper失效。

将DApplicationHelper的内部实现修改为DPaletteHelper的方法,来兼
容原来的接口。

Log: 5.5分支兼容5.4分支接口的使用
Change-Id: Ib551cc218bb9adfbd7f3f710d1d2d09c4d02ebd1
2021-06-21 14:07:07 +08:00
wangpenga 4051544291 feat: Add unit tests
为以下模块添加单元测试:
    DBoxWidget
    DBlurEffectWidget
    DIconButton
    DToolButton
    DProgressBar
    DWaterProgress
    DAnchors
    DMainWindow
    DFloatingMessage
    DSwitchButton
    DWarningButton
    DSimpleListView
    DKeySequenceEdit

Log:
Change-Id: I75af5e673a0a7e56cfc1f22d9f41ffb03207ca65
2021-06-18 14:15:53 +08:00
wangpeng 9d8f39f2f4 feat: 隐藏平板下主题菜单的分割线
根据需求隐藏平板下主题菜单的分割线

Log:
Change-Id: I7955914c00efd53ce0a78bab0eeae4cd8e664500
(cherry picked from commit d26dbd3017)
2021-06-17 17:05:35 +08:00
wangpeng d26dbd3017 feat: 隐藏平板下主题菜单的分割线
根据需求隐藏平板下主题菜单的分割线

Log:
Change-Id: I7955914c00efd53ce0a78bab0eeae4cd8e664500
2021-06-16 11:16:01 +08:00
wangpenga fe3b63fd1c feat: Add AlertMessage unit test
添加单元测试对 AlertMessage、LineEidt 的功能进行测试。

Log:
Change-Id: I166108a0d350b4e3aa64e3d24015532016512c60
2021-06-16 09:19:18 +08:00
ck 2b1eaf5b27 chore: add cppcheck suppressions
添加 cppcheck 的注释来禁止错误警告

Log: 
Change-Id: I929d10bc3110b9a63c70d89abf941e179752ea11
(cherry picked from commit 9b440b83d3)
2021-06-15 14:52:21 +08:00
wangpenga 79031178f5 fix: Add LineEdit AlertMessage shift width
LineEdit 添加 showAlertMessage 后 AlertMessage 内容超出 widget 的边框, 对其进行缩进处理

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-82040.html
Change-Id: I4ecab5b92edb23893a5044c8086d4dced764c3a9
(cherry picked from commit 3afb918a69)
2021-06-15 13:58:07 +08:00
wangpeng e424e15852 fix: 修复平板中调用DTitlebar退出菜单崩溃问题
问题:调用DTitleBar 控件setQuitMenuDisabled()函数崩溃
原因:未对指针判空处理

Log:
Change-Id: Icc7829b1e36accaef26d9c734ea4fa9a8f498242
(cherry picked from commit 76273a4ae7)
2021-06-09 16:44:27 +08:00
wangpeng 76273a4ae7 fix: 修复平板中调用DTitlebar退出菜单崩溃问题
问题:调用DTitleBar 控件setQuitMenuDisabled()函数崩溃
原因:未对指针判空处理

Log:
Change-Id: Icc7829b1e36accaef26d9c734ea4fa9a8f498242
2021-06-09 14:46:52 +08:00
wangpenga 5ddf19d1db feat: Add API to solve the shortcut problem
添加接口处理快捷键被拦截的问题
添加用户自定义处理接口:
    handleHelpAction
    handleAboutAction
    handleQuitAction

Log:
Change-Id: I194d4a6ca8b93dd000ed34ac32e99bd4cf5d3953
2021-06-09 13:25:14 +08:00
wangpeng 20106d8779 fix: 修复DArrowRectangle在平板中背景透明问题
控件的模糊效果由窗管提供
同时开启窗口WA_TranslucentBackground属性,
而在平板中窗管屏蔽了模糊效果,窗口背景透明。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-78255.html
Change-Id: I47b2d0c13cad6cd8760f93315b944c88a94fdf2b
(cherry picked from commit 0bf0fdd124)
2021-06-08 14:45:05 +08:00
wangpeng 0bf0fdd124 fix: 修复DArrowRectangle在平板中背景透明问题
控件的模糊效果由窗管提供
同时开启窗口WA_TranslucentBackground属性,
而在平板中窗管屏蔽了模糊效果,窗口背景透明。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-78255.html
Change-Id: I47b2d0c13cad6cd8760f93315b944c88a94fdf2b
2021-06-08 14:24:47 +08:00
wangpenga 3afb918a69 fix: Add LineEdit AlertMessage shift width
LineEdit 添加 showAlertMessage 后 AlertMessage 内容超出 widget 的边框, 对其进行缩进处理

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-82040.html
Change-Id: I4ecab5b92edb23893a5044c8086d4dced764c3a9
2021-06-08 09:03:39 +08:00
wangpeng 68dc8d8237 fix: 修复Dialog在平板中背景透明问题
控件的模糊效果由窗管提供
同时开启窗口WA_TranslucentBackground属性,
而在平板中窗管屏蔽了模糊效果,窗口背景透明。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-79258.html

Change-Id: Iaa060bedb642b77fe8f1db9e54ab92b722db23dd
2021-06-04 17:05:15 +08:00
wangpeng 75c8f5bfa5 fix: 修复Dialog在平板中背景透明问题
控件的模糊效果由窗管提供
同时开启窗口WA_TranslucentBackground属性,
而在平板中窗管屏蔽了模糊效果,窗口背景透明。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-79258.html

Change-Id: Iaa060bedb642b77fe8f1db9e54ab92b722db23dd
2021-06-04 09:26:24 +08:00
Chen Bin 0b5260bf1e fix: 更新dtkwidget翻译文件
两字按钮中间需要添加空格,重新调整翻译文件保证
文字正常。

Log:
Change-Id: I8990dc8c61cd517b996c12a7743e2a102f350e35
(cherry picked from commit 6973b95857)
2021-06-02 14:48:00 +08:00
wangpeng 18baf9b334 fix: 对QStandardItem设置文字居中文字靠右问题
错误的增加了间距,导致文字绘制偏右

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-73179.html
Change-Id: I46423aac20ee3810fa972391dfd1bce9a8b74b4a
(cherry picked from commit eefb871cb9)
2021-06-01 15:23:21 +08:00
wangpeng eefb871cb9 fix: 对QStandardItem设置文字居中文字靠右问题
错误的增加了间距,导致文字绘制偏右

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-73179.html
Change-Id: I46423aac20ee3810fa972391dfd1bce9a8b74b4a
2021-06-01 13:53:59 +08:00
wangpenga b6e01ec19c fix: eliminate cppchecked errors/warnings
消除cppcheck测试的错误、警告

Log:
Change-Id: I66c82ea542fa5aa3d862c68150d3d3ef167a4d76
(cherry picked from commit 31e921dd81)
2021-05-31 16:49:23 +08:00
wangpenga 31e921dd81 fix: Unit test error eliminate
消除单元测试的错误、警告

Log: 
Change-Id: I66c82ea542fa5aa3d862c68150d3d3ef167a4d76
2021-05-31 13:32:13 +08:00
ck 9b859b0065 fix: 帮助菜单是否显示逻辑调整
当dbus不存在时,搜索本地文件的逻辑去掉dde的判断。dde的应用没有默认帮助菜单。
控制中心是自身添加的帮助菜单,如果此处默认再判断一次会导致「双帮助」

Bug: https://pms.uniontech.com/zentao/bug-view-81825.html
Log: 修复注销后控制中心两个帮助菜单的问题
Change-Id: I17a36a26b0f5ef4db5e54535e0043ee08ce902f5
(cherry picked from commit f4c59c74e7)
2021-05-31 11:55:09 +08:00
ck f4c59c74e7 fix: 帮助菜单是否显示逻辑调整
当dbus不存在时,搜索本地文件的逻辑去掉dde的判断。dde的应用没有默认帮助菜单。
控制中心是自身添加的帮助菜单,如果此处默认再判断一次会导致「双帮助」

Bug: https://pms.uniontech.com/zentao/bug-view-81825.html
Log: 修复注销后控制中心两个帮助菜单的问题
Change-Id: I17a36a26b0f5ef4db5e54535e0043ee08ce902f5
2021-05-31 10:29:32 +08:00
wangfei dc974effc3 chore: 修改.gitignore文件,忽略cmake文件的追踪
增加.gitignore选项,忽略git对cmake文件的track

Log:
Change-Id: If8e9ae79e6f4947f2d4c279a4f45846a766c1e4e
(cherry picked from commit 2f28ab0f10)
2021-05-28 08:50:14 +08:00
Chen Bin d56520917a feat: 打印预览适配两个文字按钮加空格
翻译函数添加“button”字段,以适配翻译文件的两字符按钮
添加空格

Log:
Task: https://pms.uniontech.com/zentao/task-view-77600.html
Change-Id: Ia4723393f0d0c90dc0cf75aaf7b24694616962e7
(cherry picked from commit 191d4349d2)
2021-05-27 14:56:43 +08:00
wangpenga 3d35365876 fix: Qicon background blur
ListView的图标背景模糊,不符合设计要求

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-80671.html
Change-Id: Iac635f2284db023180e74499561163bb86c87863
(cherry picked from commit f923fbf4bd)
2021-05-26 14:24:08 +08:00
wangfei 2f28ab0f10 chore: 修改.gitignore文件,忽略cmake文件的追踪
增加.gitignore选项,忽略git对cmake文件的track

Log:
Change-Id: If8e9ae79e6f4947f2d4c279a4f45846a766c1e4e
2021-05-26 14:11:47 +08:00
wangpeng b54a14afa3 feat: 优化DFontSizeManager::bind()
将QMap判断改为通过属性判断

Log:
Change-Id: I9d31e17407d86342f0c1aa0e67671a61629611e8
(cherry picked from commit b5feab3bd0)
2021-05-26 10:48:07 +08:00
wangpeng 8499928a11 fix: 隐藏DTitlebar菜单中的“退出”选项(平板模式)
此为遗落需求,平板模式下不显示最小化、最大化、还原、关闭

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-79809.html
Change-Id: Iae5f014ce0ea08cd7d02074d1588a42ba11c1fe4
(cherry picked from commit 35c53b7f91)
2021-05-25 14:06:47 +08:00
wangpeng 35c53b7f91 fix: 隐藏DTitlebar菜单中的“退出”选项(平板模式)
此为遗落需求,平板模式下不显示最小化、最大化、还原、关闭

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-79809.html
Change-Id: Iae5f014ce0ea08cd7d02074d1588a42ba11c1fe4
2021-05-25 13:24:16 +08:00
wangpenga f923fbf4bd fix: Qicon background blur
ListView的图标背景模糊,不符合设计要求

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-80671.html
Change-Id: Iac635f2284db023180e74499561163bb86c87863
2021-05-25 09:58:04 +08:00
Chen Bin fe49031aa5 fix: 自动化测试设置对话框标记重复
设置对话框添加并列的控件时,出现标记重复的现象。
修改标记内容解决此问题。

Log:
Change-Id: Icf41a7c88632c1641985fccfebc483d421e1aa4e
(cherry picked from commit c602b6b8a2)
2021-05-20 13:34:27 +08:00
Chen Bin 0cd46987cb fix: 修复标题栏选项菜单无法呼出问题
由于调整菜单添加默认选项策略仅在显示时添加,
但响应按钮点击事件的槽函数没有机会连接,导致
鼠标点击之后无法响应槽函数。
默认是创建一个空Menu并绑定点击事件,使直接点
击选项按钮能够响应槽函数

Log: 调整标题栏选项按钮点击信号绑定时机
Change-Id: Ibdbf10a9385ae557f2dd7eca63998d9528b325b3
(cherry picked from commit f95c34d90d)
2021-05-19 17:37:13 +08:00
Chen Bin be9ac23d19 fix: 自动化测试设置对话框标记重复
设置对话框添加并列的控件时,出现标记重复的现象。
修改标记内容解决此问题。

Log:
Change-Id: Icf41a7c88632c1641985fccfebc483d421e1aa4e
(cherry picked from commit c602b6b8a2)
2021-05-19 17:32:10 +08:00
ck 4df43a4d07 fix: qt5.15 build error
上游PM_LineEditIconSize添加到6.2之后,这里做一个适配

Bug: https://pms.uniontech.com/zentao/bug-view-80118.html
Issue: https://github.com/linuxdeepin/dtkwidget/issues/76
Log: 修复上游打包失败的问题
Change-Id: If8d57c60c91811bfde19cdec3cfcd18f75d81858
(cherry picked from commit fac86c0af0)
2021-05-19 11:03:34 +08:00
ck 95492798e5 fix: qt5.15 build error
上游PM_LineEditIconSize添加到6.2之后,这里做一个适配

Bug: https://pms.uniontech.com/zentao/bug-view-80118.html
Issue: https://github.com/linuxdeepin/dtkwidget/issues/76
Log: 修复上游打包失败的问题
Change-Id: If8d57c60c91811bfde19cdec3cfcd18f75d81858
(cherry picked from commit fac86c0af0)
2021-05-19 11:03:23 +08:00
Chen Bin 937f75dd7a fix: 修复标题栏选项菜单无法呼出问题
由于调整菜单添加默认选项策略仅在显示时添加,
但响应按钮点击事件的槽函数没有机会连接,导致
鼠标点击之后无法响应槽函数。
默认是创建一个空Menu并绑定点击事件,使直接点
击选项按钮能够响应槽函数

Log: 调整标题栏选项按钮点击信号绑定时机
Change-Id: Ibdbf10a9385ae557f2dd7eca63998d9528b325b3
(cherry picked from commit f95c34d90d)
2021-05-18 15:43:16 +08:00
ck f0944b7658 fix: DTExtEdit cursorRectangle 偏移
由于DTextEdit需要绘制圆角setViewportMargins,导致光标位置异常。此处在QInputMethodQueryEvent时同步一下

Bug: https://pms.uniontech.com/zentao/bug-view-79676.html
Log: 修复DTextEdit光标点偏移的问题
Change-Id: If8c0c9d4aef4746ad0e6b7eb3134881cccb09699
(cherry picked from commit 2a4337645b)
2021-05-17 20:03:38 +08:00
ck b7d7807f91 fix: DTExtEdit cursorRectangle 偏移
由于DTextEdit需要绘制圆角setViewportMargins,导致光标位置异常。此处在QInputMethodQueryEvent时同步一下

Bug: https://pms.uniontech.com/zentao/bug-view-79676.html
Log: 修复DTextEdit光标点偏移的问题
Change-Id: If8c0c9d4aef4746ad0e6b7eb3134881cccb09699
(cherry picked from commit 2a4337645b)
2021-05-17 20:03:31 +08:00
ck 26f1e02c35 fix: 帮助手册文件资源目录调整
由于帮助手册的资源文件目录调整过,之前的文件路径判断一定返回false。改成搜索子目录,非dde的应用都有应用名的目录,dde的都是在dde目录下。

Log: 调整帮助手册资源文件查找的策略
Change-Id: I02d9347083c167f3f41208ca573ef5bb379d09e5
(cherry picked from commit 544ed24558)
2021-05-17 18:13:49 +08:00
ck 28d21b4159 fix: 帮助手册文件资源目录调整
由于帮助手册的资源文件目录调整过,之前的文件路径判断一定返回false。改成搜索子目录,非dde的应用都有应用名的目录,dde的都是在dde目录下。

Log: 调整帮助手册资源文件查找的策略
Change-Id: I02d9347083c167f3f41208ca573ef5bb379d09e5
(cherry picked from commit 544ed24558)
2021-05-17 18:10:27 +08:00
ck 592925072d fix: 禁用打印预览的单元测试
打印预览ut 慢且容易出现崩溃,暂时禁用

Log:
Change-Id: I00eacfb40e5ecd6877d4ddeb3cfb22d33322aaa3
(cherry picked from commit 6069ca60fa)
2021-05-17 17:02:24 +08:00
ck fcb16122aa fix: 调整菜单和dmainwindow检测帮助手册服务的时机
1. 默认菜单添加菜单项放到显示菜单前做,防止出现类似启动器窗口 show 的时候去请求dbus判断帮助手册服务导致一些麻烦
2. 检测 isUserManualExists 的时期延后

Log: 优化titlebar添加默认菜单项的时机
Change-Id: I2f73d65c49c8ff967297e98702fc923217986a3f
(cherry picked from commit 43de4d2d7a)
2021-05-13 17:44:50 +08:00
ck 43de4d2d7a fix: 调整菜单和dmainwindow检测帮助手册服务的时机
1. 默认菜单添加菜单项放到显示菜单前做,防止出现类似启动器窗口 show 的时候去请求dbus判断帮助手册服务导致一些麻烦
2. 检测 isUserManualExists 的时期延后

Log: 优化titlebar添加默认菜单项的时机
Change-Id: I2f73d65c49c8ff967297e98702fc923217986a3f
2021-05-13 17:44:31 +08:00
ck 6eb9894dab chore: 头文件调整及添加前置声明
1.将头文件中的include方式改为前置声明
2.调整部分头文件引用的位置,删除未用到的头文件引用
1.添加namespace

Log:
Change-Id: Idd3176d43a86a7f39b0f88b348172432c38dfb96
(cherry picked from commit f467cd1aa8)
2021-05-13 13:39:30 +08:00
ck f467cd1aa8 chore: 头文件调整及添加前置声明
1.将头文件中的include方式改为前置声明
2.调整部分头文件引用的位置,删除未用到的头文件引用
1.添加namespace

Log:
Change-Id: Idd3176d43a86a7f39b0f88b348172432c38dfb96
2021-05-13 09:51:24 +08:00
Chen Bin 3fa5032acb fix: 优化线程加载Manual服务的代码
删除无用变量,仅在使用时开始线程
线程结束无需阻塞等待。

Log:
Change-Id: I29699f8b0811234620fa4f3c506987743937aa1a
(cherry picked from commit a1467d2a05)
(cherry picked from commit 3ad1782ebb)
2021-05-12 20:09:38 +08:00
wangpeng c6682fdaf0 fix: 更正函数注释
函数注释信息错误

Log:
Change-Id: I43fa201432713fd82cbe5d63ddaa4b91f8b4dcc9
(cherry picked from commit 12416701cd)
2021-05-12 19:30:39 +08:00
wangpeng 12416701cd fix: 更正函数注释
函数注释信息错误

Log:
Change-Id: I43fa201432713fd82cbe5d63ddaa4b91f8b4dcc9
2021-05-12 19:30:19 +08:00
xiehui f97ff660f8 fix: DLineEdit中提示timer使用错误
DLineEdit中使用的timer没有设置SingleShot,导致showAlertMessage中传入时间后,会一直被定时隐藏

Log: DLineEdit中提示timer使用错误
Bug: https://pms.uniontech.com/zentao/bug-view-76410.html
Change-Id: I8e86cdc070a67b51a9aaa478afba0302688cd5c4
(cherry picked from commit 40cc8df8b4)
2021-05-12 09:57:57 +08:00
xiehui c75259bf4a fix: DLineEdit中提示timer使用错误
DLineEdit中使用的timer没有设置SingleShot,导致showAlertMessage中传入时间后,会一直被定时隐藏

Log: DLineEdit中提示timer使用错误
Bug: https://pms.uniontech.com/zentao/bug-view-76410.html
Change-Id: I8e86cdc070a67b51a9aaa478afba0302688cd5c4
(cherry picked from commit 40cc8df8b4)
2021-05-12 09:57:50 +08:00
wangpeng b5feab3bd0 feat: 优化DFontSizeManager::bind()
将QMap判断改为通过属性判断

Log:
Change-Id: I9d31e17407d86342f0c1aa0e67671a61629611e8
2021-05-11 15:09:55 +08:00
wangpeng cafa9ed2c2 fix: 修复平板中'关于对话框'问题
将关于对话框提升到父级窗口顶部。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-76820.html
Change-Id: I28d28bae3fa3ee3c2956d20430669a515c63c0ec
2021-05-11 14:41:25 +08:00
wangpeng fe4e36be9c fix: 修改examples图标
使DToolButtonExamples例子中Dtoolbutton按钮的按下动作跟随活动色改变

Log:
Change-Id: I21d220b22c462b409d38f5c1f948c61c973a4921
2021-05-11 11:01:48 +08:00
wangpeng b6bed1f5ba fix: 修复平板中'关于对话框'问题
将关于对话框提升到父级窗口顶部。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-76820.html
Change-Id: I28d28bae3fa3ee3c2956d20430669a515c63c0ec
2021-05-11 09:57:07 +08:00
Chen Bin 0697e9d673 chore: 单元测试文件增加copyright
补上单元测试文件遗漏的copyright。修改错误的copyright信息,
并添加部分文件遗漏的copyright

Log:
Change-Id: Ie64f70f4a1267190cae0b828b58d8a539f3c43b0
(cherry picked from commit 07a5558082047f9e7c5005ecf27c58fb027b8c96)
2021-05-08 09:55:52 +08:00
AlexOne 3c96efc274 fix: eliminate warnings
消除警告,未使用的变量,匹配的枚举类型未在定义中

Log:
Change-Id: I671dadbcfb683ce9344573554b30fa6b7bef3ec8
2021-05-07 15:57:06 +08:00
Chen Bin 48dedef22a fix: DStandardItem纯文本时无边距
由BUG:67587引入的问题,直接在绘制文本时将间距设置为0
会出现文本太靠前的问题。
撤回修复此bug的提交,仍使用原方案,并针对此bug提供另
一种解决思路(使用DListView::setItemMargins方法)。

Log: 修复UI中纯文本列表项无边框问题
Bug: https://pms.uniontech.com/zentao/bug-view-77455.html
Change-Id: I3ff49811c10ff6bf2f0287e373c8a2662fec6ecf
(cherry picked from commit bea63d80aee44d31e8bb50a75f17047519bc1e8b)
2021-05-06 15:16:39 +08:00
ck 2ab80273b0 fix: set target dtkwidget5.5
编译生成名和例子依赖改成dtkwidget5.5

Log:
Change-Id: I7d65ded1ca75261256ed97380bc6183bf0185a3a
2021-04-28 14:26:15 +08:00
Chen Bin 8a7765e53d fix: 修复龙芯机器安装器界面退出对话框加载时间过长
任何使用DTitleBar的控件,在Linux机器中没有Manual手册应用
时都会尝试连接manual的dbus服务并进行超时等待。造成界面延
时显示并卡顿。
如果当前manual服务未启动则将连接dbus服务的操作放在单独的
线程中完成,以此避免连接时的界面卡死现象。

Log: 修复龙芯安装器界面和主窗口界面显示卡顿
Bug: https://pms.uniontech.com/zentao/bug-view-66718.html,https://pms.uniontech.com/zentao/bug-view-67904.html
Change-Id: Idbd003f83704b9c58e65ebabfb21e02c7f824b4c
(cherry picked from commit 30af80e0b9)
2021-04-26 10:34:59 +08:00
Chen Bin 0183afcd39 fix: 修复DWaterProgress控件藏语文字显示不全
藏语类型的字体文字普遍比一般文字大,且上间隙大于下间隙
居中绘制时无法正常显示文本,因此此种字体下文字会显示截
断。微调字体绘制时的逻辑,保证原来字体模式文字显示正
常的情况下,使藏语字体能够正常显示出来且差异不大

Log: 微调绘制逻辑使DWaterProgress在藏语字体下能正常显示
Bug: https://pms.uniontech.com/zentao/bug-view-68991.html
Change-Id: Iac5c0d673cac1cb915f97d269b54230bf713ddb8
(cherry picked from commit 6f84366542)
2021-04-21 14:51:25 +08:00
Chen Bin 4dea8b6df4 fix: 修复藏语下DArrowLineDrawer标题头部截断
藏语下的字体格式普遍偏高,但DArrowLineDrawer控件使用
限高的Title(30px),导致当藏语字体增大高度超过这个值
时文字出现截断。添加一个监听字体改变的事件,当字体大小
或者类型发生变化时,重新设置一下Title的高度。

Log: 修复文管控件出现藏语下文字截断问题
Bug: https://pms.uniontech.com/zentao/bug-view-72288.html
Change-Id: I608e088c2ac424ce59d87133c5898a6f69adabdd
(cherry picked from commit cb9f705d6c)
2021-04-20 10:14:33 +08:00
AlexOne 1f1b0d92f9 fix: dwidget-examples runtime warning
运行 dtkwidget 示例程序 collections 的时候,因为重复添加了 QLayout,会报 which already has a layout 的 警告信息

Log: 未影响现有的内存托管关系,不会对产品功能造成影响
Change-Id: Icce866b5214c24ad64470c3986674a8c9a661f45
(cherry picked from commit 249c3153c4)
2021-04-19 14:49:15 +08:00
AlexOne 82bbc6fb20 fix: Compiler warning due to missing keyword "override"
missing keyword "override"

Log:
Issue: https://github.com/linuxdeepin/dtkwidget/issues/71
Change-Id: I3edf76890126bb81977d03f2600670a230f7f367
2021-04-16 17:08:30 +08:00
Chen Bin 3ad1782ebb fix: 优化线程加载Manual服务的代码
删除无用变量,仅在使用时开始线程
线程结束无需阻塞等待。

Log:
Change-Id: I29699f8b0811234620fa4f3c506987743937aa1a
(cherry picked from commit a1467d2a05)
2021-04-15 10:13:21 +08:00
Chen Bin 6cf134473a fix: 修复龙芯机器安装器界面退出对话框加载时间过长
任何使用DTitleBar的控件,在Linux机器中没有Manual手册应用
时都会尝试连接manual的dbus服务并进行超时等待。造成界面延
时显示并卡顿。
如果当前manual服务未启动则将连接dbus服务的操作放在单独的
线程中完成,以此避免连接时的界面卡死现象。

Log: 修复龙芯安装器界面和主窗口界面显示卡顿
Bug: https://pms.uniontech.com/zentao/bug-view-66718.html,https://pms.uniontech.com/zentao/bug-view-67904.html
Change-Id: Idbd003f83704b9c58e65ebabfb21e02c7f824b4c
(cherry picked from commit 30af80e0b9)
2021-04-14 13:54:38 +08:00
wangpeng 87defc08e5 fix: DFontSizeManager::instance()->bind()接口优化
问题:多次调用该函数会使内存增涨.
原因:每次调用都会增加一个Connection对象.

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-71078.html
Change-Id: I6e5cdebafb7211de4a56e90956fc4ecfa0d866c0
(cherry picked from commit 0c6bf9af4a)
2021-04-14 09:17:42 +08:00
wangpeng 0c6bf9af4a fix: DFontSizeManager::instance()->bind()接口优化
问题:多次调用该函数会使内存增涨.
原因:每次调用都会增加一个Connection对象.

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-71078.html
Change-Id: I6e5cdebafb7211de4a56e90956fc4ecfa0d866c0
2021-04-14 09:17:24 +08:00
justforlxz f8318f89d1 fix: hide switch theme menu on titlebar
not support switch on other desktop environment

Log:
Change-Id: I0cb8b167db32b6c0850c528b0f827b804f2456fc
2021-04-12 16:14:32 +08:00
Chen Bin 87b9dac6f6 fix: 修复对话框仅标题不断切换文字大小高度异常问题
之前提交仅修复title和message同时存在,但仅title时
的情况未涉及,导致此bug仍存在。
将切换字体大小后的高度替换成sizeHint的高度进行比较
解决此问题。

Log: 修复不断切换字体大小对话框高度不断增加
Bug: https://pms.uniontech.com/zentao/bug-view-67050.html
Change-Id: Ic36db4808f14b6a689d7485b8be307f0aebc49f4
(cherry picked from commit 8b07bebb6b)
2021-04-12 15:12:14 +08:00
Robin Lee 934e1d2952 fix: rpm BuildRequires make
Fedora no longer installs make in the default build environment.

Log:
Signed-off-by: Robin Lee <cheeselee@fedoraproject.org>
Change-Id: I684cb85e4985a8548844a4ec39c6b6edc8b795c5
(cherry picked from commit 249cc99f49)
2021-04-12 09:37:45 +08:00
Chen Bin 6cc45c2f2d fix: 打印预览修复藏语部分控件大小异常
藏语文字普遍高于其他文字,因此整体高度会比其他
文字高,但由于内部逻辑设置了固定高度只能通过判
断当前系统语言来手动调整整体高度。
此方案已于UI设计沟通通过。

Log: 藏语下微调窗口控件大小以适应高度
Bug: https://pms.uniontech.com/zentao/bug-view-70267.html
Change-Id: I2c9cdbc7a159cd69d18713aa9c0a3b9dca6ee299
(cherry picked from commit 0e8c60697d)
2021-04-08 16:51:42 +08:00
Chen Bin b169d1276e fix: 打印预览修复切换水印类型后字体类型切换的问题
仅处理初始化时字体选择逻辑,因此每次切换水印类型都会
切换字体到系统默认字体。
在处理时做初始化判断,仅初始化时选择默认字体,初始化
完成后字体类型保留不变。

Log: 打印预览水印切换类型文字字体类型保留上一次操作
Bug: https://pms.uniontech.com/zentao/bug-view-70095.html
Change-Id: I01ed505c4e78edc3ca3d0595c28cb70bd4afc9c3
(cherry picked from commit e690c1e300)
2021-04-08 16:51:16 +08:00
Chen Bin afa1dffead fix: 修复qt5.12下DCrumbEdit基线对齐失效的问题
qt5.12删除了基线对齐,使用Bottom对齐方式代替。
低于此版本的qt仍使用基线对齐的方式。

Log: 修复社区班DCrumbEdit文字较标签位置偏下
Bug: https://pms.uniontech.com/zentao/bug-view-65685.html
Change-Id: I870436552b11cda8df9154b706646495e606067a
(cherry picked from commit 5d295e727e)
2021-04-08 16:10:59 +08:00
Robin Lee 249cc99f49 fix: rpm BuildRequires make
Fedora no longer installs make in the default build environment.

Log:
Signed-off-by: Robin Lee <cheeselee@fedoraproject.org>
Change-Id: I684cb85e4985a8548844a4ec39c6b6edc8b795c5
2021-04-08 15:03:57 +08:00
niezixuan 9e15bbc5a8 feat: 重新编写打印预览单元测试
为 dprintpreviewdialog.cpp 添加单元测试。编译报错修复

Log: 添加打印预览单元测试
Change-Id: I2d3b5a7fbbd8553c99cfa8481920561d5eea9fa7
(cherry picked from commit 91a54430e4)
2021-04-08 11:09:02 +08:00
wangpeng f91e7ccad0 fix: 修复dbackgroundgroup子控件设置背景色无效
dbackgroundgroup控件内设置了setBackgroundRole()函数,
此函数会将dbackgroundgroup的调色板传递给所有子控件.

Log:
Change-Id: Idc4e68fd846e2c1be9f68503bef35502fbaf724b
2021-04-07 17:44:55 +08:00
Chen Bin 59a1c10019 fix: 修复DDialog不断调整字体窗口大小会增大的问题
由于title中的QLabel和message中的QLabel都是expanding的
大小策略,且两者的扩大层级一致,导致修改minHeight时me
ssage的Label大小变化会导致title大小不不断增加。通过设
置title和message的布局因子此问题消失

Log: 修复影响DDialog窗口大小不断增加的问题
Bug: https://pms.uniontech.com/zentao/bug-view-67050.html
Change-Id: I1baf9590f3c66b4b833a6c7e9ad0a52356ff7c96
(cherry picked from commit c7388c9952)
2021-04-07 09:29:08 +08:00
Chen Bin 47a5b92dff fix: 修复打印预览打开直接进入deepin-picker界面
deepin-picker高版本下创建dbus接口会直接进去deepin-picker的
界面。因此选择用到取色器功能是才创建dbus接口。

Log: 仅用到取色器时才创建dbus接口
Bug: https://pms.uniontech.com/zentao/bug-view-68135.html
Change-Id: Ic4231d1fdc52e77bd45cd7ee2efee55fec51e7fd
(cherry picked from commit d1e60ef728)
2021-04-07 09:28:56 +08:00
刘阳 75caa0918e feat: DSettingsDialog界面上控件背景样式修改
设置对话框内容区域,控件的背景使用DBackgroundGroup,间隙设置为1

Log: 根据设计要求修改设置对话框背景样式为间隙1的条目
Task: https://pms.uniontech.com/zentao/task-view-65090.html
Change-Id: I28ea3f2ec0bed798526999b466c6610d4b3ff2f7
(cherry picked from commit 5033add329)
2021-04-06 11:04:51 +08:00
刘阳 5033add329 feat: DSettingsDialog界面上控件背景样式修改
设置对话框内容区域,控件的背景使用DBackgroundGroup,间隙设置为1

Log: 根据设计要求修改设置对话框背景样式为间隙1的条目
Task: https://pms.uniontech.com/zentao/task-view-65090.html
Change-Id: I28ea3f2ec0bed798526999b466c6610d4b3ff2f7
2021-04-06 11:00:54 +08:00
ck 4ee2d08050 fix: setitemamargin not work
spacing在左侧没有图标时不应该添加,不然setitemmargin会始终多一个spacing的距离,只有左侧有这个问题。

Log: 修复设置margin和预期不一致的问题
Bug: https://pms.uniontech.com/zentao/bug-view-67587.html
Change-Id: I56b96fe69a8e3d13077e0a565335d05ae3a2fc3e
2021-03-30 16:31:30 +08:00
niezixuan e96f6545a1 fix: DToolButton改为以默认的方式计算sizeHint
原sizeHint的大小包含了两倍文字大小,导致显示时比较宽,现修改为一倍文字大小

Log: 修改dToolButton的SizeHint的计算方式
Change-Id: I79766f5e1ff7931cc93b31f332d73c93994a97a2
2021-03-25 17:53:41 +08:00
Chen Bin 4c3d0aa7b8 feat: 适配社区版qt5.15环境下DStyle新枚举
qt5.15环境下添加了PM_LineEditIconSize枚举指定QLineEdit中
的Action图标大小。适配新的枚举值并与5.11对齐,使对外风格
不会发生太大改变

Log: dtkwidget适配qt5.15新枚举PM_LineEditIconSize
Bug: https://pms.uniontech.com/zentao/bug-view-65068.html
Change-Id: I9a7096dfcf018017ee26f9e678627764e903af89
(cherry picked from commit eba1b25303)
2021-03-22 15:19:58 +08:00
刘阳 22055f0efe chore: master分支依赖5.5版本
因为widget依赖core和gui的一些新功能在maintain/5.5分支,需要master分支保持和5.5分支的兼容,如果以后dtk有了5.6分支,同样需要和5.6保持兼容,依次类推。

Log:
Change-Id: I8759390077cb722954463d18a3fd7ddc6550ef15
2021-03-19 11:48:53 +08:00
wangpeng e6719c191f fix: 修复DFloatingmessage在某种情况下文字显示截断
复现:文字信息正好显示到第二行开头。
原因:Labeld高度计算完成后并没有设置成功

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-65019.html
Change-Id: I071dd54eac8c74eff959c5b7cff378b94b4e4f64
(cherry picked from commit 1c4e78867c)
2021-03-19 10:25:58 +08:00
Chen Bin c89ad0f7ec fix: 打印预览并打指定页面页码异常当前页打印输出异常问题修复
1. 指定页面并打时总页码异常原因为,某些情况下异步需要更新总页码的值
因此无法固定,但未考虑到指定页码时的总页码情况,重新调整逻辑解决此
问题。
2. 由于当前页存在歧义(原始页和并打页),产品沟通之前的讨论结果为
原始数据的当前页。但此处的打印输出逻辑未做修改导致此问题。

Log: 打印预览修复异常问题
Bug: https://pms.uniontech.com/zentao/bug-view-67345.html,
     https://pms.uniontech.com/zentao/bug-view-67361.html
Change-Id: I27df7c82c88884bd56833b6edbb91f96d76dd295
(cherry picked from commit 31543a89ac)
2021-03-18 21:25:02 +08:00
niezixuan c07cca1765 fix: 修复DSettingsDialog的item无toolTip的问题
当item的文字过长时,内容显示不全,且没有设置toolTip

Log: 为DSettingsDialog的item添加toolTip
Bug: https://pms.uniontech.com/zentao/bug-view-66841.html
Change-Id: I2be248ea6e489af4896c778e75dd4e079331fd29
2021-03-18 21:24:48 +08:00
Chen Bin f581579a47 fix: 修复标题栏切换焦点无法进入搜索框控件的问题
DSearchEdit的默认焦点策略为ClickPolicy,无法处理tab键的
焦点状态,且DLineEdit的默认焦点策略不与QLineEdit一致,
出现DTitleBar搜索焦点控件时无法找到对应控件。
重新调整控件的焦点策略解决此问题

Log: tab键可切换至DSearchEdit控件
Bug: https://pms.uniontech.com/zentao/bug-view-66659.html
Change-Id: If1ecf18523d18ffe25c2e219f947f825ed5d12cd
(cherry picked from commit e0bcaf8531)
2021-03-17 09:10:11 +08:00
Chen Bin c19396e254 fix: 打印预览修复非特效模式出现应用无法支持弹窗
由于打印预览水印颜色选择使用的deepin-picker的dbus接口,
deepin-picker仅支持特效模式下运行,故出现此弹窗。经沟通
在非特效模式下禁用其dbus接口及其信号,禁用水印的颜色选择
功能。特效模式才能开启。

Log: 非特效模式禁用颜色选择功能
Bug: https://pms.uniontech.com/zentao/bug-view-66690.html
Change-Id: I45b038093820ef51ab8bcb35a73ba47e7ca22824
(cherry picked from commit 85188a5def)
2021-03-16 15:58:48 +08:00
Chen Bin 91ccecb0a8 fix: 修复打印预览出现的内存泄露
删除未指定父类的控件和未使用的变量,添加部分没有指定的
内存释放函数。
cups动态库有QLibrary加载,且内存中仅会加载一次,供所
有应用打印预览使用,因此无需释放加载完的动态内存。

Log: 减少打印预览的内存泄露
Change-Id: I920735155f5ced13a6ce65a377957eddc5fd1ec3
(cherry picked from commit 0c18ac67cb)
2021-03-15 14:52:29 +08:00
Chen Bin 9c264e9863 fix: 打印预览修复存为pdf跳转路径非桌面
在已保存同文件名的图片文件后,再保存pdf会直接跳
转到图片文件的目录,原因由于之前pdf删除文件显示
后缀出现对话框路径直接跳转。
已与产品沟通,删除对话框的格式一栏"pdf文件格式"
提示,并添加文件名.pdf的后缀。

Log: 修复存为pdf的路径问题
Bug: https://pms.uniontech.com/zentao/bug-view-65619.html
Change-Id: I92bfc92c3783b1affbb77b7dda471ecc2a1aaa83
(cherry picked from commit c42e38bf32)
2021-03-15 14:34:56 +08:00
niezixuan c358d5348e fix: 修复可能会导致单元测试概率性崩溃的问题
可能的原因是,当操作lineEdit后,没有取消focus,导致TearDown的时候,会触发editingFinished信号,因而调用槽函数,访问已经释放的内存

Log: 修复可能造成概率性崩溃的原因
Change-Id: Ie6033a19a1f83408b01fdd552bbbd9883a984606
(cherry picked from commit 2c0c88a8c6)
2021-03-15 14:13:12 +08:00
niezixuan 3dd7f781f2 feat: 为打印预览 dprintpreviewdialog 文件添加单元测试,并修复可能导致崩溃的问题
为 dprintpreviewdialog.cpp 添加单元测试,修复可能会导致崩溃的问题

Log: 添加打印预览单元测试
Change-Id: Iaa7f06c8555d93f2c89c14f9d22fef16baa1bfed
(cherry picked from commit 2d199f60c3)
2021-03-15 10:34:17 +08:00
ck ad8fa62b06 feat: build with dtkwidget5.5
dtkwidget5.5相关文件修改,改包名版本为5.5(libdtkwidget5.5/lidtkwidget5.5-dev/libdtkwidget5.5-bin)

Log: 修改生成包名
Change-Id: Ib6300d2217c58a9a4a0bebd34424297cf00b6ecb
2021-03-09 17:58:17 +08:00
Chen Bin ad8c44a1a3 fix: 修复dtkwidget安全测试出现的内存泄漏问题
打印预览进行安全测试,提供了一分dtkwidget的安全测试报告,
针对此报告中出现的内存泄露情况进行修改,将项目中的内存泄
露问题降到最低。

Log: 针对报告中的内存泄露情况对项目中的代码进行优化修改
Change-Id: I2b0b323afd970c41c4e59168795cb90606a6adec
(cherry picked from commit 5c51e4818d)
2021-03-09 17:34:35 +08:00
Chen Bin bdb008f375 feat: 更新打印预览widget部分单元测试
增加部分之前单元测试覆盖不到的地方,提高单元测试
覆盖率到80%

Log: 提高打印预览项目单元测试覆盖率
Change-Id: Ie44d1c8d57f37eba7cfd66c46627c0c1dd7a2ade
2021-03-09 16:43:27 +08:00
Chen Bin d6bbf84ba6 fix: 打印预览异步模式重绘无法更新总页码
重绘时由于同步异步逻辑分离,并且因为之前没有
考虑过会改变总页码的大小,总页码是一个首次传
入的固定值。调试发现了异步可能会出现总页码随
页面内容更新的情况,故此处放开总页码的更新限
制。

Log: 异步重绘可以更新总页码
Change-Id: Ice42478635600314056458c342e8bf896af8fea1
2021-03-09 16:43:15 +08:00
Chen Bin 8af3f10513 feat: 调整dtkwidget单元测试目录结构
1. 调整tests项目下的目录结构,将整个源码文件添加进此项目中。
2. 调整部分文件依赖,以便通过编译。

Log: 调整tests目录结构
Change-Id: I2d99f04c5154f804979180c2e0d4095d64023e65
2021-03-09 16:41:25 +08:00
niezixuan 2c67840d98 fix: 修复DSettingsDialog提示Cannot add a null widget的bug
DSettingsDialog的QHBoxLayout *hLay添加widget.first和widget.second时没有进行判空处理,使得当为空时会提示Cannot add a null widget

Log: DSettingsDialog添加子菜单会提示Cannot add a null widget
Change-Id: I9653fa57c455a2955f282ee9bd39354b256c04be
2021-03-09 16:26:59 +08:00
ck 2e45544064 fix: rpm build failed(add cups buildrequires)
缺少cups依赖,编译报错

Log: rpm打包添加cups依赖
Change-Id: I6c15139843a602b9de91d84228896cd9b5e38339
2021-03-09 16:03:52 +08:00
chenbin 6cb767f408 feat: DMPRISControl增加属性CanShowInUI对全局播放的控制
部分应用在某些情况下需要防止DMPRISControl对其功能的控制,添加一个dbus属性
使应用能够通过此属性判断是否需要全局控制应用播放等功能。

Log: DMPRISControl添加忽略全局控制的属性
Change-Id: I72b351c2d2d48c47c923766b01e475bb997d37d9
2021-03-09 16:03:39 +08:00
lxz c361623c21 fix: enable styles under non-dde
force enable style for non-dde

Log:
Issue: Closes https://github.com/linuxdeepin/developer-center/issues/1845
Change-Id: I22f4e3547e6e6cfd51189863dd2da201b36500b0
2021-03-09 16:02:37 +08:00
niezixuan 65bedd0312 feat: DIconButton添加小红点
实现当有新版本或有新信息时,在DIconButton上按图标大小50x50时,小红点大小6x6,距离右边和上面8个像素的比例添加小红点的功能

Log: 在DIconButton右上角添加小红点
Task: https://pms.uniontech.com/zentao/task-view-53850.html
Change-Id: Ic7fb9f4fb52feecb494992add36e616ee1c84f0e
2021-03-09 15:50:42 +08:00
niezixuan 99f403a9a1 feat: 为DToolButton添加设置对齐方式的接口
通过setAlignment接口将DToolButton的对齐方式设置为左对齐、居中或右对齐,默认为左对齐
增加alignment接口,如果setAlignment设置成功则返回当前对齐方式,否则返回Qt::AlignLeft

Log: DToolButton添加设置对齐方式的接口
Bug: https://pms.uniontech.com/zentao/bug-view-58410.html
Change-Id: I670f4e6d3d44fe3d2f893e39e26117d40ee52a14
2021-03-09 15:21:13 +08:00
sunkang 7bd1bb6b80 fix: 修复在平板模式下,DDialog没有关闭窗口的按钮的bug
修复平板模式下DDialog没有正常的关闭窗口的按钮的问题,
之前在DTitleBar中隐藏按钮的实现方式,导致关于对话框
出现了没有关闭按钮的问题,这里采用修改DMainWindow的
windowFlags的方式实现

Log:

Change-Id: I3f2edbe1083cf5fca5bf28ff0430e4ec917dfa47
2021-03-09 15:14:01 +08:00
sunkang a1cecc05b7 fix: 在平板模式下屏蔽掉搜索框右键菜单
按照需求,在平板模式下屏蔽掉搜索框的右键菜单

Log: 平板模式下,搜索框屏蔽右键菜单
Task: https://pms.uniontech.com/zentao/story-view-7784.html

Change-Id: Ia4e53d8964c2ebd30e124dddec99ab9b551ec993
2021-03-09 15:04:26 +08:00
sunkang 9d956a0a64 feat: 新增对DTitleBar和DMainWindow的平板模式处理
平板模式下,DMainWindow没有最大,最小,关闭按钮

Log: 平板模式下主窗口显示"更多"按钮,去掉最大,最小,以及关闭按钮
Task: https://pms.uniontech.com/zentao/story-view-7782.html

Change-Id: I450e98e88f228e292f20d6d20f0c5fb66f87dbee
2021-03-09 14:40:06 +08:00
pengwenhao ecb18f71f6 add: set window wallpaper interface
添加设置窗口壁纸接口
log: 添加设置窗口壁纸接口

Change-Id: Ie4bcb8fd857c295f797a73752462d8e5ac2df107
Signed-off-by: pengwenhao <pengwenhao@uniontech.com>
2021-03-09 13:46:15 +08:00
zccrs c69cf239df feat: 在DApplication中增加适配虚拟键盘的接口
1. 更改DStyle的策略,开启在点击输入框后就主动调起虚拟键盘的策略
2. 修复DMainWindow在自适应虚拟键盘时标题栏的阴影控件位置错误
3. 为DMainWindow默认开启对虚拟键盘的支持
4. 在DApplication中增加几个用于为窗口自动适配虚拟键盘区域的接口

Log: DTK程序支持自动调起虚拟键盘、输入控件自适应虚拟键盘的区域
Change-Id: I9aeb2b03db2959960932203277b7c9c6094ba0df
2021-03-09 13:03:56 +08:00
sunkang 115aeb028f fix: DApplicationHelper已经废弃,使用DPaletteHelper替换DApplicationHelper类
1.在代码中使用DPaletteHelper类替换了DApplicationHelper类
2.修复响应系统字体改变信号无效的问题

Log:

Change-Id: Ibb80718a57baba388f7122c41e984f7fcc63e872
2021-03-09 12:11:20 +08:00
sunkang 48d669cdbf feat: 新增DPaletteHelper类, 用于代替DApplicationHelper
1.实现上DPaletteHelper和DApplicationHelper的接口保持了一致,
基类改为了QObject
2.优化实现 init_createHelper 函数

Log:

Change-Id: Ib7864a991f311fc7341775f89da9b40f94bee759
2021-03-09 10:00:16 +08:00
wangpeng 1c4e78867c fix: 修复DFloatingmessage在某种情况下文字显示截断
复现:文字信息正好显示到第二行开头。
原因:Labeld高度计算完成后并没有设置成功

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-65019.html
Change-Id: I071dd54eac8c74eff959c5b7cff378b94b4e4f64
2021-03-08 17:05:06 +08:00
niezixuan ed54052bb4 fix: 修复DSettingsDialog提示Cannot add a null widget的bug
DSettingsDialog的QHBoxLayout *hLay添加widget.first和widget.second时没有进行判空处理,使得当为空时会提示Cannot add a null widget

Log: DSettingsDialog添加子菜单会提示Cannot add a null widget
Change-Id: I9653fa57c455a2955f282ee9bd39354b256c04be
2021-03-03 16:02:30 +08:00
sunkang 91886f836c feat: 适配dtkwidget的多版本共存
1. 添加libdtkcommon安装包依赖,适配dtkwidget的多版本共存

Log:

Change-Id: Ia1436cb6a3f9e5a837a45d9b02e41daa0fb11ded
(cherry picked from commit 8b0b405e21d34cc3107a5610b0c261c7053bd4dc)
2021-03-02 11:17:20 +08:00
niezixuan 63decf46ac feat: 为打印预览 dprintpreviewdialog 文件添加单元测试
为 dprintpreviewdialog.cpp 添加单元测试

Log: 添加打印预览单元测试
Change-Id: If6dd004a90a7f35b9b7e0032f143313bd97fa86d
2021-03-02 09:41:24 +08:00
niezixuan bcdf2c2c47 fix: 修复当PrintPreviewDialog的total为0时,firstBtn和prevPageBtn依然可以点击的问题
当totalPage == 0时,会满足currentPage == totalPage的条件,从而使得firstBtn和prevPageBtn变成Enabled状态

Log: 当totalPage == 0时,firstBtn和prevPageBtn依然可以点击的问题
Change-Id: Ieb24fc67c61f34660f2c52116720d69b0fd9698b
2021-03-02 09:18:26 +08:00
chenbin 76c9960479 feat: 打印预览添加widget部分单元测试
1.添加widget和pickcolor部分gtest单元测试
2.修改部分源码提高代码安全性覆盖更多范围

Log: 提供widget部分文件的单元测试
Change-Id: I3c13b0c014bd473fe0f68c2d8f92d4a877737c15
2021-02-26 18:00:54 +08:00
ck 21c7c51a7d fix: rpm build failed(add cups buildrequires)
缺少cups依赖,编译报错

Log: rpm打包添加cups依赖
Change-Id: I6c15139843a602b9de91d84228896cd9b5e38339
2021-02-25 11:13:01 +08:00
刘阳 cd034ce387 fix: previewSystemSoundEffect接口中interface去掉isValid判断
SoundEffect服务会一段时间后会自己退出,如果加上isValid判断,就无法通过调用dbus接口的方式把SoundEffect服务启动;关于isValid函数,文档中有说明"when dealing with remote objects, it is not always possible to determine if it exists when creating a QDBusInterface"

Log: 截图通知没有音效输出
Bug: https://pms.uniontech.com/zentao/bug-view-64043.html
Change-Id: Ie4cba8db1fbb7f437d55f4f05687793f6a5e9bce
2021-02-24 13:39:17 +08:00
chenbin 898f23e104 fix: 修复应用打开关于对话框出现崩溃问题
步骤:应用打开关于对话框后直接退出,再次打开程序并打开
关于对话框程序崩溃。
原因:DApplication在直接销毁关于对话框时没有触发
aboutToClose信号,导致指针没有置空再次打开出现访问野指
针的情况。

Log: 修改信号解决应用打开关于对话框出现崩溃问题
Change-Id: I75a9865e158cecff820fd829d29bb5aba0e87f31
2021-02-24 13:20:38 +08:00
ck b40b43cdcd fix: nullptr crashed
当style不是dtyle时qobject_cast为空,会崩溃。

Log: 修复设置其他风格后示例出现崩溃的问题
Change-Id: I998bf308edaad64cfa91b01f3e1e031fc9f6e239
2021-02-24 10:26:16 +08:00
刘阳 37eaaaa5cb fix: previewSystemSoundEffect接口中interface去掉isValid判断
SoundEffect服务会一段时间后会自己退出,如果加上isValid判断,就无法通过调用dbus接口的方式把SoundEffect服务启动;关于isValid函数,文档中有说明"when dealing with remote objects, it is not always possible to determine if it exists when creating a QDBusInterface"

Log: 截图通知没有音效输出
Bug: https://pms.uniontech.com/zentao/bug-view-64043.html
Change-Id: Ie4cba8db1fbb7f437d55f4f05687793f6a5e9bce
2021-02-23 13:22:28 +08:00
chenbin 88f33c9a80 feat: DMPRISControl增加属性CanShowInUI对全局播放的控制
部分应用在某些情况下需要防止DMPRISControl对其功能的控制,添加一个dbus属性
使应用能够通过此属性判断是否需要全局控制应用播放等功能。

Log: DMPRISControl添加忽略全局控制的属性
Change-Id: I72b351c2d2d48c47c923766b01e475bb997d37d9
2021-02-23 09:39:58 +08:00
chenbin 7de0aa7f02 feat: 打印预览初始化添加单元测试文件
1. 初始化打印预览单元测试项目目录,添加部分
单元测试函数
2. 修改源码中未进行的判断引起的测试失败问题

Log: 初始化添加打印预览单元测试项目目录
Change-Id: I99b52907f136ea77bfea63e98cb2db2dffef73e9
2021-02-23 09:21:34 +08:00
chenbin 792ed313df fix: 修复应用打开关于对话框出现崩溃问题
步骤:应用打开关于对话框后直接退出,再次打开程序并打开
关于对话框程序崩溃。
原因:DApplication在直接销毁关于对话框时没有触发
aboutToClose信号,导致指针没有置空再次打开出现访问野指
针的情况。

Log: 修改信号解决应用打开关于对话框出现崩溃问题
Change-Id: I75a9865e158cecff820fd829d29bb5aba0e87f31
2021-02-22 15:39:38 +08:00
lxz 0b09a19b68
fix: enable styles under non-dde
force enable style for non-dde

Log:
Issue: Closes https://github.com/linuxdeepin/developer-center/issues/1845
Change-Id: I22f4e3547e6e6cfd51189863dd2da201b36500b0
2021-02-22 11:17:44 +08:00
chengyulong 1af64912d1 feat: 打印预览增加维语、藏语、繁体中文翻译
增加增加维语、藏语、繁体中文翻译。

Log: 打印预览增加维语、藏语、繁体中文翻译
Task: https://pms.uniontech.com/zentao/task-view-57559.html
Change-Id: Ief6ce62712f75b5e41b84aec8ff05657a8af5b08
2021-02-20 12:03:54 +08:00
chenbin 626e1e970f fix: 打印预览修复某些打印机无法打印彩色问题
打印预览无法手动修改打印机的默认色彩模式,之前处理是
直接指定的彩色模式为RGB,但某些打印机不支持RGB的模式
就会打印失败。修改方式为:读取打印驱动中的ppd文件,找
到支持的色彩模式并读取出来设置到打印机中。

Log: 支持打印非RGB色彩模式的打印机
Change-Id: I239432e1d9ce12b1c1ca4bdd1d7c54a1fc03d24f
2021-02-18 15:57:01 +08:00
ck 2a21bf8b59 fix: nullptr crashed
当style不是dtyle时qobject_cast为空,会崩溃。

Log: 修复设置其他风格后示例出现崩溃的问题
Change-Id: I998bf308edaad64cfa91b01f3e1e031fc9f6e239
2021-02-18 14:23:01 +08:00
chenbin 4cdf94ff30 fix: 打印预览修复彩色打印机默认水印颜色未标注
彩色模式下切换打印机会保留上一次设置过的颜色,但初始颜色未标注。
修改方式为初始打印机为彩色打印机添加默认的灰色初始化颜色。

Log: 修复打印机预览初始化彩色打印机默认水印颜色未标注
Bug: https://pms.uniontech.com/zentao/bug-view-63190.html
Change-Id: Ib5b7f0fecb35732e9310590ebd2be12ea5a11054
2021-02-18 10:42:17 +08:00
chenbin 697204e392 fix: 打印预览按照文件路径禁用逐份打印
按照文件路径打印,由于没有属性操作逐份打印
,打印出来的效果只能根据打印机的默认行为走
。因此是否逐份打印取决于打印机,将此功能禁
用掉。

Log: 禁用按照文件路径中的逐份打印
Bug: https://pms.uniontech.com/zentao/bug-view-62941.html
Change-Id: I7cbd7d676b4349694381339c1ea6fa4be3a87864
2021-02-08 09:03:25 +08:00
ck 613421fd14 feat: merge print 1040
Merge branch 'maintain/5.4.3+print1040' into maintain/print1040/5.4

Log: 合并打印预览1040
Change-Id: Ia1722f0382145cdb8191351145fdbc8db8932be9
2021-02-05 15:22:49 +08:00
chenbin bd37f8e783 fix: 打印预览修复按照文件路径模式下某些禁用属性值能打开
按照文件路径打印,打印预览的某些高级操作需要禁用,但由于逻辑
错误或者缺失,导致某些操作下仍能够打开一些属性,这里统一修改
并禁用。

Log: 打印预览修复某些操作导致禁用属性开启
Bug: https://pms.uniontech.com/zentao/bug-view-63000.html
Change-Id: Ib24c12cf0027526bea679285d8673c84fa12dd2e
2021-02-05 14:17:55 +08:00
chenbin 5e55ea5405 fix: 打印预览另存为图片对话框内容与另存为pdf对齐
与产品沟通,另存为图片对话框内容需要显示所有文件
并不可点击,另存为pdf中添加过滤pdf文件且文件名不
包含后缀。

Log: 另存为图片对话框显示所有文件
Bug: https://pms.uniontech.com/zentao/bug-view-63127.html
Change-Id: I5dcb60c2ecfd6a097d09210f8d4aa5c16bcefc4a
2021-02-05 11:16:40 +08:00
chenbin 6a36d27f26 fix: 打印预览水印角度输入框全选删除和逐个删除统一
1.水印角度输入框统一使用失焦或者回车预览才生效
2.全选删除和逐个删除未键入值时统一为输入前状态

Log: 统一水印角度输入框的权限删除和逐个删除未键入新值的行为
Bug: https://pms.uniontech.com/zentao/bug-view-62560.html
Change-Id: I454af1180d934a3091caf7b7c43e8ccc1f656019
2021-02-02 11:21:21 +08:00
chenbin 40cac7a04d fix: 打印预览修复pdf和图片打印可以选择顺序打印模式
设置并打时会禁用顺序打印模式,但取消并打时会恢复,没加判断
导致恢复单页后切换当前pdf或者图片打印机仍能选择顺序打印

Log: 修复并打和顺序打印的交叉禁用导致切换打印机可以选择顺序打印的问题
Bug: https://pms.uniontech.com/zentao/bug-view-60709.html
Change-Id: I306118af8842226afd374794d9ae99137023a2c3
2021-02-01 14:41:44 +08:00
chenbin adb3e9fe1e fix: 打印预览修复SpinBox全选删除和逐个删除不一致问题
SpinBox全选删除和逐个删除到空白后,失焦后恢复的字符不一致。
问题主要原因在于:逐个删除时默认保存的值发生改变,只会记住
最后一次修改的值,因此返回最高位数字。但全选最后一次修改的
字符就是原数字,导致两者返回时不一致。解决办法为:针对空白
失焦后对控件重新设置默认值,默认设置修改前的字符。

Log: 修复SpinBox不同删除操作导致默认值不一致问题。
Bug: https://pms.uniontech.com/zentao/bug-view-62560.html,
     https://pms.uniontech.com/zentao/bug-view-62501.html
Change-Id: Ib76bc986170ae03b0cb12b86cbaabf00a83bc3b4
2021-01-31 11:20:47 +08:00
chenbin e747a7c438 fix: 打印预览修复打印数据不清晰问题
由于之前调整页边距某些情况会不生效,解决时通过将最后的
数据写入QImage中,但QImage存在打印不清晰问题。现在的解
决方式为:当缩放比不大于1时,仍走原来的打印输出逻辑。在
缩放比大于1时,将原始数据画入缩放后的QImage大小中,再直
接输出到打印机。直接缩放原始数据比缩放QImage导致的失真要
少的多。

Log: 解决打印预览打印数据模糊问题
Bug: https://pms.uniontech.com/zentao/bug-view-62414.html
Change-Id: I57799d85e3960e20de625b7dedab533696f770fd
2021-01-29 17:47:14 +08:00
chengyulong a835887efe fix: 修复打印预览指定页面时提示错误、无法纠正页面范围的问题
打印预览选择指定页面时,去掉当输入范围大-小(如4-2)出错误提示“超出页码范围”,将页码范围改为小-大(如2-4)。

Log: 修复打印预览指定页面时错误提示的问题
Bug: https://pms.uniontech.com/zentao/bug-view-62369.html
Change-Id: Id44cd42af73fa294356460c4fd537f39eb401d66
2021-01-29 09:43:51 +08:00
chenbin cd6a2c3f89 fix: 修复DCrumbEdit编辑状态复制不生效问题
之前的逻辑,DCrumbEdit在选中时未处理仍在编辑的状态。
编辑的状态有两种:重复标签不会生成Crumb导致处于正在
编辑、正在编辑时光标移到最后有文本没有生成Crumb。修
改方式为:添加正在编辑文本的逻辑复制的逻辑,删除之前
复制未选中编辑文本的逻辑。
并添加此bug的单元测试案例。

Log: 修复DCrumbEdit复制问题
Bug: https://pms.uniontech.com/zentao/bug-view-61562.html
Change-Id: I6b847c17bfcb6890097cf9e020965f04ca85780f
(cherry picked from commit 78565cd278)
2021-01-27 13:50:35 +08:00
chenbin 78565cd278 fix: 修复DCrumbEdit编辑状态复制不生效问题
之前的逻辑,DCrumbEdit在选中时未处理仍在编辑的状态。
编辑的状态有两种:重复标签不会生成Crumb导致处于正在
编辑、正在编辑时光标移到最后有文本没有生成Crumb。修
改方式为:添加正在编辑文本的逻辑复制的逻辑,删除之前
复制未选中编辑文本的逻辑。
并添加此bug的单元测试案例。

Log: 修复DCrumbEdit复制问题
Bug: https://pms.uniontech.com/zentao/bug-view-61562.html
Change-Id: I6b847c17bfcb6890097cf9e020965f04ca85780f
2021-01-27 10:57:30 +08:00
chenbin 534ff945a5 fix: 打印预览修复同时设置左下边距和打印缩放打印数据异常的问题
同时设置左下边距和打印缩放进行打印,左下边距未生效。追踪到Qt
本身也有此问题,极大概率为Qt的bug,这里暂时用临时方法解决一下
。解决方法为:最后打印输出时,将QPicture数据画入一个大小限定死
的QImage中,且此Image的大小不包含页边距。再将此Image画入打印机
中进行打印。

Log: 临时方案解决左下边距和打印缩放同时启用,左下边距未生效的问题
Bug: https://pms.uniontech.com/zentao/bug-view-61709.html
Change-Id: I9651e6cd05d297cc91e081891d71fd9580614513
2021-01-25 18:12:10 +08:00
chenbin 2ed0358364 fix: 打印预览修复页边距在预览界面无效果
之前的逻辑是预览界面显示的内容大小为PageRect,
此大小包含了页边距的大小,因此设置页边距时,预
览界面的大小未包含页边距。修改方式为将PageRect
调整为PaperSize大小,使页面底部item与纸张大小对
齐。

Log: 设置页边距后预览界面需要能够看到页边距效果
Bug: https://pms.uniontech.com/zentao/bug-view-61704.html
Change-Id: Ic9e87ef9eade6c984e3321fbbe895dccc48c3321
2021-01-25 10:10:16 +08:00
chengyulong 24be558caf fix: 打印预览指定页为空时增加提示框
根据需求增加指定页为空时的提示信息。

Log: 打印预览指定页为空时失去焦点增加提示信息
Bug: https://pms.uniontech.com/zentao/bug-view-61498.html
Change-Id: I40da454635345bde7bff02968fbd957bc4f52f82
2021-01-19 18:04:16 +08:00
chengyulong bec8454dab fix: 修复打印预览指定页码超出范围崩溃的问题
打印预览在选择指定页时,页码超出范围会导致崩溃,原因是在当页码超出int的取值
范围是转换失败没有做判断,导致直接使用转换失败后的结果0去做页面选择导致崩溃。
修改为在转换时对结果做判断,当转换后的数值不在页码范围内就提示页码超出范围

Log: 修复打印预览指定页码超出范围崩溃的问题
Bug: https://pms.uniontech.com/zentao/bug-view-61512.html
Change-Id: I384d396c2b72c7ff9d86089fce9efdcc001714a6
2021-01-19 16:52:27 +08:00
chengyulong 402bb858c1 fix: 修改页码标签长度为显示四位数字的长度
修复打印预览页码标签太短显示页码不全的问题。

Log: 修改打印预览页码标签的长度为显示四位数字的长度
Bug: https://pms.uniontech.com/zentao/bug-view-60778.html
Change-Id: Iaaaba62d66cda9f30d7c94d275300b7ec20cc88a
2021-01-19 10:34:34 +08:00
chengyulong 43d5a6bc7d fix: 非打印状态禁用设置打印顺序
根据需求,修改为非打印状态禁用打印顺序设置功能,默认选择“逐份打印”

Log: 非打印状态禁用打印顺序
Bug: https://pms.uniontech.com/zentao/bug-view-60709.html
Change-Id: Icb5e8d0875e44c88f232cc75b8b30fa8919f0e83
2021-01-19 10:06:40 +08:00
chenbin fa6249f901 fix: 打印预览按照文件路径打印禁用逐页打印功能
由于按照文件路径打印直接打印本地文件,预览无法拿到
页面数据,也无法通过打印机属性操作逐页打印+打印多份
的情况。通过产品沟通,决定在此方式下禁用此功能。

Log: 按照文件路径打印禁用逐页打印功能
Bug: https://pms.uniontech.com/zentao/bug-view-60880.html
Change-Id: Ie3b9443a381b2ad4855034707dc20a9f2b8f82f8
2021-01-15 10:40:52 +08:00
chenbin 0112e35699 fix: 打印预览修复指定页码能输入多个-号
需求指定不能连续输入多个-符号,之前的正则表达式
出现错误匹配,重新编写正则表达式适应需求。

Log: 重新编写指定页码的正则表达式规则
Bug: https://pms.uniontech.com/zentao/bug-view-60737.html
Change-Id: I64ffd6064ed7440aab5bf99415be421b5d90e044
2021-01-13 11:18:44 +08:00
chenbin b3c3ee8185 fix: 修复打印预览按照文件路径多份打印失败
setNumCopies函数已弃用,出现未更新打印份数的情况。
已全部替换成setCopyCount函数。

Log: 修复已弃用函数导致的问题
Bug: https://pms.uniontech.com/zentao/bug-view-60878.html
Change-Id: I9a898a3a9676a56609e5c4e6dbb8bd7ab733a30c
2021-01-13 11:03:36 +08:00
chenbin 2d341a096d fix: 打印预览选择按顺序打印后并打选项未置灰
打开按顺序打印选项后需要将并打选项置灰,打开逐份
打印后需要将并打选项打开。

Log: 打印预览解决按顺序打印和并打选项可选问题
Bug: https://pms.uniontech.com/zentao/bug-view-60908.html
Change-Id: I5e847c94bf64eab32c388ebb69576f67a74ed9a5
2021-01-13 11:02:55 +08:00
chengyulong 7c75092eee fix: 修复打印预览编辑框显示不全的问题
修改打印预览编辑框长度,使内容显示完整

Log: 修复打印预览编辑框显示不全
Bug: https://pms.uniontech.com/zentao/bug-view-60772.html
Change-Id: I5c382c66b79dad26f05fbe2b2d5794ba2a9e8d32
2021-01-12 17:56:23 +08:00
niezixuan 58832f32b2 feat: DIconButton添加小红点
实现当有新版本或有新信息时,在DIconButton上按图标大小50x50时,小红点大小6x6,距离右边和上面8个像素的比例添加小红点的功能

Log: 在DIconButton右上角添加小红点
Task: https://pms.uniontech.com/zentao/task-view-53850.html
Change-Id: Ic7fb9f4fb52feecb494992add36e616ee1c84f0e
2021-01-12 13:54:46 +08:00
ck f449b2fa33 fix: update abi.json
abi工具升级, gerrit需要更新这个才可打包成功

Log: 更新abi.json文件
Change-Id: I4df6635047604f12f5b8ca49b8a15b8bf50b03a6
2021-01-12 13:37:39 +08:00
chengyulong a7e76834ba fix: 打印预览另存图片时禁用打印顺序
根据需求,禁用打印预览在另存为图片时的打印顺序设置

Log: 禁用打印预览中另存为图片时的打印顺序功能
Bug: https://pms.uniontech.com/zentao/bug-view-60709.html
Change-Id: I1a834c2c61029aa1b2e1df1abce80c8288827cd0
2021-01-12 10:33:58 +08:00
niezixuan 207e8c6c6d feat: 为DToolButton添加设置对齐方式的接口
通过setAlignment接口将DToolButton的对齐方式设置为左对齐、居中或右对齐,默认为左对齐
增加alignment接口,如果setAlignment设置成功则返回当前对齐方式,否则返回Qt::AlignLeft

Log: DToolButton添加设置对齐方式的接口
Bug: https://pms.uniontech.com/zentao/bug-view-58410.html
Change-Id: I670f4e6d3d44fe3d2f893e39e26117d40ee52a14
2021-01-11 19:35:01 +08:00
ck e06b9bdbb1 fix: remove libdframeworkdbus2 dependcy
去除 libdframeworkdbus2 依赖

Log: 去掉无效的依赖
Change-Id: Ie37d686a431e29e230c25737d6b542acec2ed24d
2021-01-08 13:28:03 +08:00
ck bb6668f54f fix: remove libdframeworkdbus2 dependcy
去除 libdframeworkdbus2 依赖

Log: 去掉无效的依赖
Change-Id: Ie37d686a431e29e230c25737d6b542acec2ed24d
2021-01-08 11:20:43 +08:00
chengyulong d62baad0e2 fix: 界面添加显示原文档页码标签
界面添加显示原文档页码标签

Log: 界面添加显示原文档页码标签
Bug: https://pms.uniontech.com/zentao/bug-view-60024.html
Change-Id: I8bbdaa9dbf9f6dc1511081a5b60d82fcafe6e63d
(cherry picked from commit 94f39c03f7194d6efb96371ef1dfc8d22af07efc)
2021-01-08 09:50:58 +08:00
sunkang 8261d03294 fix: 修复在平板模式下,DDialog没有关闭窗口的按钮的bug
修复平板模式下DDialog没有正常的关闭窗口的按钮的问题,
之前在DTitleBar中隐藏按钮的实现方式,导致关于对话框
出现了没有关闭按钮的问题,这里采用修改DMainWindow的
windowFlags的方式实现

Log:

Change-Id: I3f2edbe1083cf5fca5bf28ff0430e4ec917dfa47
2021-01-07 13:26:56 +08:00
sunkang d3f18f3153 fix: 在平板模式下屏蔽掉搜索框右键菜单
按照需求,在平板模式下屏蔽掉搜索框的右键菜单

Log: 平板模式下,搜索框屏蔽右键菜单
Task: https://pms.uniontech.com/zentao/story-view-7784.html

Change-Id: Ia4e53d8964c2ebd30e124dddec99ab9b551ec993
2021-01-06 16:43:57 +08:00
lvpeilong 88e3ec9008 chore: Merge branch 'dev/print1040' into maintain/5.4.3+print1040
合并打印预览分支

Log: 合并打印预览1040到maintain临时分支
Change-Id: I11cc81a02baf1b4ffbe5e65a07322711a5c182bb
2021-01-06 11:17:11 +08:00
ck a72d9af1c7 fix: dsearchedit点击清除按钮时,还有焦点
DLineEdit设置了focusProxy,清除文本时之前的做法是将焦点设置给DLineEdit本身(无法输入)抢占QLineEdit的焦点达到clearFocus目的,应该是QLineEdit去clearFocus才对。出现的现象是点叉叉后iconWidget【搜索】显示了同时也有焦点光标再闪烁。

Log: 修复DSearchEdit点击清除按钮后还有焦点
Change-Id: Id0a134e9cd8c8fe1cf2687d488ea298d2b7b4f18
2021-01-05 17:27:50 +08:00
RigoLigoRLC 68c898464f Chore: DApplication::loadTranslator doc update
Updated English documentation to match Chinese one, and also added specs
of APPNAME in the document.

Log: chore: Update DApplication::loadTranslator documentation
Change-Id: I04b8abc16ce2808ab7c6b28d1bd1cc123b961cca
2021-01-05 17:15:36 +08:00
ck 48356e393e fix: wayland下diable的rgb图片导致窗口半透明
由于wayland下RGB的图片和ARGB的图片处理方式不一样, 如果RGB图片修改Alpha通道会导致父窗口的透明通道被一起改变,因此处理RGB图片的alpha通道需要将图片格式转成ARGB

Log: 修复wayland下日志工具选择文件对话框禁用的图片有穿透效果
Bug: https://pms.uniontech.com/zentao/bug-view-57474.html
Change-Id: I6d911b0962e6226c3948e336ab8542c888db0008
2021-01-05 17:13:24 +08:00
sunkang 84e0159921 fix: 修复函数调用错误的问题
DMainWindow::enableSystemMove函数内部错误的调用了handle的enableSystemResize

Log:

Change-Id: I94d19425a7fd57868317276706bba2f61cc18898
2021-01-05 17:00:30 +08:00
ck 620c5b77b7 fix: build lintian error on mips
仅在龙芯架构上添加,默认时mips的编译器未指定相关参数
导致deb包构建时对libdtkgui动态库检查失败

Log: 修复龙芯gerrit构建失败的林田错误
Change-Id: I180591b4e15d6699496bcd7403d6bcd1be89b3b2
2021-01-05 16:38:10 +08:00
ck 1a1807a3eb fix: DLineEdit cannot edit with focus
DLineEdit::setFocus后还是无法输入,包含的QLineEdit子对象没有获取焦点, 此处将QLineEdit设置焦点代理。

Log: 修复DLineEdit设置焦点后无法输入文字的问题
Bug:
Change-Id: Icaa2ad03c8e4a9726303ad8fb32ec3551eb2c548
2021-01-05 16:06:16 +08:00
ck ed248bfa47 fix: radiobuttonn圈圈不居中
由于之前吧select_indicator改成16(外圈),内圈没改,导致绘制时大小不一

Log: 修复焦点在radio按钮时中间圆圈未居中显示
Bug: https://pms.uniontech.com/zentao/bug-view-56991.html
Change-Id: I7fe4da541ca57715ca1d523d5f3a436ca2b96901
(cherry picked from commit d678ffe23c)
2021-01-05 15:54:27 +08:00
chenbin ed452fef11 fix: 打印预览修复并打当前页错误问题
并打当前页时结果仅为第一页,由于打印输出的页码计算
错误,导致当前页仅表示为第一页。将此情况单独判断以
解决此问题。

Log: 打印预览修复并打当前页结果错误问题
Bug: https://pms.uniontech.com/zentao/bug-view-60166.html
Change-Id: I68a3ac9c13b92fa870818e5f224fa6a5cd6c5b3d
2021-01-05 13:14:19 +08:00
chenbin b379a8f6c4 fix: 打印预览按照路径打印置灰并打选项
由于按照路径打印走的打印机属性,打印预览在并打上的
处理并不会生效,为了防止通过打印机属性设置的并打效
果与预览不一致。这里需要禁用调并打功能。

Log: 禁用不一致的功能
Bug: https://pms.uniontech.com/zentao/bug-view-60018.html
Change-Id: I2ceb49d1c0774f3b16ff81d3d220e12da78f26c0
2021-01-05 13:13:23 +08:00
sunkang 989bad31b0 feat: 新增对DTitleBar和DMainWindow的平板模式处理
平板模式下,DMainWindow没有最大,最小,关闭按钮

Log: 平板模式下主窗口显示"更多"按钮,去掉最大,最小,以及关闭按钮
Task: https://pms.uniontech.com/zentao/story-view-7782.html

Change-Id: I450e98e88f228e292f20d6d20f0c5fb66f87dbee
2021-01-04 16:13:31 +08:00
chenbin 0330bba3af fix: 修复klu平台DSettingDialog出现死循环
klu下使用setWindowIcon设置窗口图标会调用DTitlebar中的setIcon函数,
此时会重新回调回自身的setWindowIcon函数,导致发出windowIconChanged
信号调用DTitlebar中的setIcon函数,出现死循环。发现在klu下并不需要这
两个信号因为此时就是对这两个函数本身进行的操作。

Log: 修复klu下DSettingDialog设置图标出现死循环
Bug: https://pms.uniontech.com/zentao/bug-view-55484.html
Change-Id: Ic9de5479d07a6e5d48b44277f933584726983a79
(cherry picked from commit eac7ed298a)
2020-12-31 09:47:21 +08:00
chenbin fcacf7129a refactor: 打印预览重新梳理打印函数代码
由于需求不断增多原本打印部分的函数变得冗杂且不易观看,
重新梳理打印中的不同种情况,对代码进行分类梳理易于观看
,减少了不必要的变量创建。

Log:
Change-Id: Ibf7d018721604429302fb5a008be01eb199b9dc2
2020-12-30 10:30:55 +08:00
chengyulong 550ccc0031 feat: 并打模式翻页功能
实现并打下的翻页功能。

Log: 并打模式下的翻页功能
Task: https://pms.uniontech.com/zentao/task-view-49589.html
Change-Id: Idf509388924d91ed142ff4c516c6ceb609a3aa80
2020-12-30 09:19:15 +08:00
chengyulong b38427b526 feat: 并打添加翻译
并打添加翻译。

Log: 添加翻译
Change-Id: Ie131755725034bd2980e3ce4f1c92068b4105908
2020-12-29 10:09:47 +08:00
chenbin 9869795d8b feat: 打印预览添加并打需求代码
打印预览新增并打功能,通过多页拼接的形式实现,同时
修改了水印,缩放,页边距,方向功能的适配。

Log: 新增并打功能
Task: https://pms.uniontech.com/zentao/task-view-49591.html,
      https://pms.uniontech.com/zentao/task-view-49215.html
Change-Id: I90a9fdd46551e47d39ba314c7e2cf5bcbbcd19c4
2020-12-28 09:31:19 +08:00
ck 79752c39f6 fix: dsearchedit点击清除按钮时,还有焦点
DLineEdit设置了focusProxy,清除文本时之前的做法是将焦点设置给DLineEdit本身(无法输入)抢占QLineEdit的焦点达到clearFocus目的,应该是QLineEdit去clearFocus才对。出现的现象是点叉叉后iconWidget【搜索】显示了同时也有焦点光标再闪烁。

Log: 修复DSearchEdit点击清除按钮后还有焦点
Change-Id: Id0a134e9cd8c8fe1cf2687d488ea298d2b7b4f18
2020-12-25 18:16:38 +08:00
pengwenhao 439ddce862 add: set window wallpaper interface
添加设置窗口壁纸接口
log: 添加设置窗口壁纸接口

Change-Id: Ie4bcb8fd857c295f797a73752462d8e5ac2df107
Signed-off-by: pengwenhao <pengwenhao@uniontech.com>
2020-12-25 14:03:06 +08:00
zccrs c3876a7a0e feat: 在DApplication中增加适配虚拟键盘的接口
1. 更改DStyle的策略,开启在点击输入框后就主动调起虚拟键盘的策略
2. 修复DMainWindow在自适应虚拟键盘时标题栏的阴影控件位置错误
3. 为DMainWindow默认开启对虚拟键盘的支持
4. 在DApplication中增加几个用于为窗口自动适配虚拟键盘区域的接口

Log: DTK程序支持自动调起虚拟键盘、输入控件自适应虚拟键盘的区域
Change-Id: I9aeb2b03db2959960932203277b7c9c6094ba0df
2020-12-25 13:35:27 +08:00
sunkang 68bfcae201 fix: DApplicationHelper已经废弃,使用DPaletteHelper替换DApplicationHelper类
1.在代码中使用DPaletteHelper类替换了DApplicationHelper类
2.修复响应系统字体改变信号无效的问题

Log:

Change-Id: Ibb80718a57baba388f7122c41e984f7fcc63e872
2020-12-25 13:31:41 +08:00
RigoLigoRLC e68472eaca Chore: DApplication::loadTranslator doc update
Updated English documentation to match Chinese one, and also added specs
of APPNAME in the document.

Log: chore: Update DApplication::loadTranslator documentation
Change-Id: I04b8abc16ce2808ab7c6b28d1bd1cc123b961cca
2020-12-25 10:01:12 +08:00
ck 31f77f049f fix: wayland下diable的rgb图片导致窗口半透明
由于wayland下RGB的图片和ARGB的图片处理方式不一样, 如果RGB图片修改Alpha通道会导致父窗口的透明通道被一起改变,因此处理RGB图片的alpha通道需要将图片格式转成ARGB

Log: 修复wayland下日志工具选择文件对话框禁用的图片有穿透效果
Bug: https://pms.uniontech.com/zentao/bug-view-57474.html
Change-Id: I6d911b0962e6226c3948e336ab8542c888db0008
2020-12-24 18:05:11 +08:00
sunkang a1e8a1e104 fix: 修复函数调用错误的问题
DMainWindow::enableSystemMove函数内部错误的调用了handle的enableSystemResize

Log:

Change-Id: I94d19425a7fd57868317276706bba2f61cc18898
2020-12-24 16:59:02 +08:00
ck 4472d419e6 fix: build lintian error on mips
仅在龙芯架构上添加,默认时mips的编译器未指定相关参数
导致deb包构建时对libdtkgui动态库检查失败

Log: 修复龙芯gerrit构建失败的林田错误
Change-Id: I180591b4e15d6699496bcd7403d6bcd1be89b3b2
2020-12-24 10:07:29 +08:00
ck 7cebaec9d6 fix: DLineEdit cannot edit with focus
DLineEdit::setFocus后还是无法输入,包含的QLineEdit子对象没有获取焦点, 此处将QLineEdit设置焦点代理。

Log: 修复DLineEdit设置焦点后无法输入文字的问题
Bug:
Change-Id: Icaa2ad03c8e4a9726303ad8fb32ec3551eb2c548
2020-12-22 11:06:15 +08:00
sunkang ba974729be feat: 新增DPaletteHelper类, 用于代替DApplicationHelper
1.实现上DPaletteHelper和DApplicationHelper的接口保持了一致,
基类改为了QObject
2.优化实现 init_createHelper 函数

Log:

Change-Id: Ib7864a991f311fc7341775f89da9b40f94bee759
2020-12-21 15:10:10 +08:00
zhangkai 801f1ace38 fix: 并打顺序——按钮顺序错误
修改并打按钮顺序

Log: 修改并打按钮顺序
Change-Id: Iedfddd3e21ad83bf77b53e570113a9c2bc4b1d93
2020-12-17 09:57:35 +08:00
ck d678ffe23c fix: radiobuttonn圈圈不居中
由于之前吧select_indicator改成16(外圈),内圈没改,导致绘制时大小不一

Log: 修复焦点在radio按钮时中间圆圈未居中显示
Bug: https://pms.uniontech.com/zentao/bug-view-56991.html
Change-Id: I7fe4da541ca57715ca1d523d5f3a436ca2b96901
2020-12-16 09:22:08 +08:00
chenbin eac7ed298a fix: 修复klu平台DSettingDialog出现死循环
klu下使用setWindowIcon设置窗口图标会调用DTitlebar中的setIcon函数,
此时会重新回调回自身的setWindowIcon函数,导致发出windowIconChanged
信号调用DTitlebar中的setIcon函数,出现死循环。发现在klu下并不需要这
两个信号因为此时就是对这两个函数本身进行的操作。

Log: 修复klu下DSettingDialog设置图标出现死循环
Bug: https://pms.uniontech.com/zentao/bug-view-55484.html
Change-Id: Ic9de5479d07a6e5d48b44277f933584726983a79
2020-12-14 14:00:49 +08:00
linxun 3e76945c8e feat: 增加打印机逐页打印,由前向后,由后向前功能
将想要的逐页传递给打印机进行打印

Log: 增加打印机逐页打印,由前向后,由后向前功能

Task: https://pms.uniontech.com/zentao/task-view-49592.html
      https://pms.uniontech.com/zentao/task-view-49590.html
Change-Id: I5a5946484fa63534aca64d4cef82efc07b9a5c89
2020-12-11 09:37:26 +08:00
chenbin c204b0ee3c fix: 打印预览修复打印输出水印效果在应用层下方
由于上次提交未修改打印效果仅修改预览效果,导致打印效果
没有生效。重新修改打印部分代码解决此问题。

Log: 修复水印在应用层下方
Change-Id: Idc04b06acf1b28db8d0b7fdcf69c02d40ff8937c
2020-12-10 10:28:35 +08:00
zhangkai 909ee9b991 fix: 点击打开并列打印,默认初始化并列顺序,保留上一次选择的顺序
点击打开并列打印,默认初始化并列顺序,保留上一次选择的顺序

Log: 新增点击打开并列打印,默认初始化并列顺序,保留上一次选择的顺序功能
Change-Id: I7c2a6ec445b6d22aabb03be47a85068e6bb1d8f7
2020-12-10 09:49:43 +08:00
chenbin d768d8d6ef feat: 打印预览设置水印层在应用层上面
按照任务需求,需要将水印层更改为应用层上面。

Log:
Task: https://pms.uniontech.com/zentao/task-view-50028.html

Change-Id: I51a10263e67ed9236db2cac8be94c2365e058141
2020-12-09 13:00:43 +08:00
zhangkai 822d18d56b feat: 打印顺序UI
新增打印顺序UI

Log: 新增打印顺序UI

api: 新增打印顺序选择_q_printOrderComboIndexChanged接口
Change-Id: Idac9387cd2dd799fcd410079bc32fc5d265bbb6f
2020-12-08 17:47:44 +08:00
zhangkai 2af411f102 feat: 并列打印排版UI模块
新增并列打印排版UI

Log: 新增并列打印排版UI,可选择每页排版及其顺序

Task: https://pms.uniontech.com/zentao/task-view-49585.html

api: 新增setPageLayoutEnable设置控件是否可用
     新增_q_pagePersheetComboIndexChanged选择并列打印排版

Change-Id: Ibc59310a76d9044872812a1810c6c878686d26d2
2020-12-08 16:16:44 +08:00
chenbin 82ae7b5d16 feat: 打印预览异步预览实现代码
打印预览实现异步预览代码,具体需求是当预览文件页数较多时
,传统的打印预览方式加载数据时间过长,不利于用户体验。这
里的实现方式是,每次只向应用获取一页的数据,以此加快预览
时间。

Log: 打印预览异步预览实现
Task: https://pms.uniontech.com/zentao/task-view-49083.html,
      https://pms.uniontech.com/zentao/task-view-49082.html,
      https://pms.uniontech.com/zentao/task-view-49081.html
Change-Id: If3985861e840e6845ba6d5bbf7387f1fb18a6c8f
2020-12-07 11:04:27 +08:00
zhangkai ada27eb4cd chore: 英文文案修改
边距选项与单位之间加空格

Log: 英文文案修改
Change-Id: Ide8f8213fe373b47eacb6b142f0bbe84d2736345
2020-11-27 11:14:10 +08:00
chenbin 4984d4dad9 feat: 打印预览添加根据路径打印接口
增加根据路径打印接口,根据给定文件进行打印,防止大文件
压缩画质导致打印效果模糊的问题。置灰部分属性cups不能支
持的属性,并添加cups库直接打印。

Log: 打印预览添加从路径打印
Task: https://pms.uniontech.com/zentao/task-view-47171.html
      https://pms.uniontech.com/zentao/task-view-47164.html
Change-Id: I4767a477a939799ba2af5c5a76e45e1464286e4a
2020-11-25 10:58:28 +08:00
ck affb254c01 feat: 重载dh_makeshlibs
安装时依赖dtk的版本号要不小于构建时的版本,需要系统部改脚本支持

Log: 修改打包规则
Change-Id: I24cacfec43bc0093314fbfc4aa5386b37d9999c1
2020-11-24 11:22:08 +08:00
ck c6b0598587 chore: example main文件微调
去掉注释无用的代码,改成DApplication::globalApplication

Log:
Change-Id: Ic85acc4f4d045b49a02dd8862aa5c3fd00f24745
2020-11-23 17:09:39 +08:00
linxun 2fd698d886 fix: 解决在水印按钮开启之前有水印问题
将水印文字按钮选中状态更改为在水印按钮开启之后

Log: 解决在水印按钮开启之前有水印问题

Bug: https://pms.uniontech.com/zentao/bug-view-55313.html
Change-Id: I701a83a8b6006ed6549a769a535eb78038822fb9
2020-11-20 11:02:14 +08:00
linxun 657e76a6eb fix: 解决字体在app运行后时切换系统字体后字体不变的问题
在applicationEvent中检测系统字体的变化,如果系统当前字体变化,则水印字体变为系统当前字体

Log: 解决字体在app运行后时切换系统字体后字体不变的问题

Bug: https://pms.uniontech.com/zentao/bug-view-54337.html
Change-Id: I545401134884c5f5b134cdab01ff0069a3f8f8a0
2020-11-19 18:05:52 +08:00
chenbin 52e9bb7734 fix: 打印预览修复大文件保存图片程序卡顿问题
原逻辑使用单线程模式,导致文件页数过大保存文件就会花费很长
时间。使用多线程的方式解决此问题。

Log: 多线程方式解决打印预览保存图片卡顿问题
Bug: https://pms.uniontech.com/zentao/bug-view-55194.html
Change-Id: Iaed82619a9bd80f60a1fd48620ac2dac78fe6662
2020-11-19 17:51:11 +08:00
chenbin 7b1c665049 fix: 打印预览打开水印功能默认选择文本水印
判断是否为初次打开水印功能,若是则默认设置文本水印,不是则保留之前的设置
关闭水印按钮时,清除已添加的水印

Log: 解决水印开启后,文字水印默认未勾选问题

api: 新增waterMarkBtnClicked,判断开启关闭水印

Bug: https://pms.uniontech.com/zentao/bug-view-54373.html
Change-Id: I96b516996035ad6903fc58d24265b39de6b26b60
2020-11-18 16:11:18 +08:00
chenbin 29cce374f0 fix: 打印预览修复大图片水印切换属性卡顿问题
卡顿的主要原因是将绘图操作写入QPicture的耗时,写入QPicture是为了
打印输出和预览保持一致,但没想到会有耗时操作。解决办法是将打印输
出的耗时操作拿出到打印时进行,并使用QImage取代QPicture进行绘制,
明显能够提高加载大图片的速度。

Log: 修复打印预览添加大图片水印切换属性时卡顿问题
Bug: https://pms.uniontech.com/zentao/bug-view-53970.html
Change-Id: I5a24a8ff08e64bf6ecfd8b449d63ee27f4097e8b
2020-11-18 11:17:44 +08:00
chenbin 54e0f1a636 fix: 打印预览修复切换水印类型文字缩放失效问题
由于之前的逻辑,设置文字和设置文字缩放是单独的操作,
因此需要界面做对应调整才会生效。本次修改对应逻辑,将
设置文字和缩放调整到绘制的时候生效以解决此问题。

Log: 打印预览修复切换水印类型文字水印缩放失效的问题
Bug: https://pms.uniontech.com/zentao/bug-view-54381.html
Change-Id: Icf1905d95a24e35d3b3a8fc055381912ac0650cc
2020-11-18 11:11:57 +08:00
linxun ee6f428c03 fix: 水印字体与系统字体不匹配的问题
判断水印字体与系统字体相等的字体,选中当前字体

Log: 解决水印字体与系统字体不匹配的问题

Bug: https://pms.uniontech.com/zentao/bug-view-54337.html
Change-Id: Ib7895e803345a10b0e0753c854b0e95c4f848cc3
2020-11-16 17:26:31 +08:00
zhangkai c20e0068aa fix: 水印大小和透明度的数值框设置数据未生效
绑定信号,设置与滑动条进行联动

Log: 修复水印大小和透明度的数值框设置数据未生效问题

Bug: https://pms.uniontech.com/zentao/bug-view-54183.html
Change-Id: Icbc780fe1b1e5bae77ed881deed3ad801e3eb6cf
2020-11-12 16:55:11 +08:00
chenbin 137590bedd fix: 修复打印预览设置缩放后打印输出水印位置错误
由于输出打印时水印不受打印输出缩放的影响,应正常显示,
但因为没有处理这个逻辑导致水印仍进行缩放并且位置坐标也
出现异常。

Log: 打印预览设置打印缩放后输出数据中水印显示异常
Bug: https://pms.uniontech.com/zentao/bug-view-54109.html
Change-Id: I12304d7f375be70b197963eca09b8b160b47791c
2020-11-12 10:40:49 +08:00
chenbin b635d519c4 fix: 打印预览修复设置异常文件名保存图片失败的问题
设置与后缀类似的文件名时,保存的文件名路径会出现异常的现象,
问题主要出自于计算文件后缀时,直接删除了原路径的后缀字符,导
致出现路径缺失,保存失败。

Log: 修复打印预览设置异常文件名保存图片失败的问题
Bug: https://pms.uniontech.com/zentao/bug-view-54039.html
Change-Id: Ie4875e4e557d47365b3e18686c2b370983cf8e53
2020-11-11 14:50:04 +08:00
zhangkai 745cb1bcee chore: 属性名称翻译错误
英文文案修改,文案修改后,需重新上传翻译

Log: 水印设置的可选项属性显示有误

Bug: https://pms.uniontech.com/zentao/bug-view-53912.html
Change-Id: I5eaa3013d6238843df9aba951417d8102c4f6c7d
2020-11-11 09:47:45 +08:00
linxun 1f6d5e94aa fix: 修改打印机颜色模式切换导致水印颜色不配对的问题
增加对打印颜色模式的判断,灰色模式下默认使用灰色水印,彩色模式下使用其他颜色水印

Log: 打印机颜色模式的切换,水印颜色对齐

Bug: https://pms.uniontech.com/zentao/bug-view-53936.html
Change-Id: I6e72d104f91b7b8281e73e0a6669855431550168
2020-11-10 17:37:04 +08:00
zhangkai 9a171245df fix: 字体默认和系统默认字体不一致
获取系统默认字体

Log: 字体默认和系统默认字体不一致

Bug: https://pms.uniontech.com/zentao/bug-view-53911.html
Change-Id: Ie5ffba820baa3860b6dfc1a5a9ba243dc4b30714
2020-11-10 17:19:23 +08:00
chenbin 0782afc38b fix: 修复打印预览另存为图片保存页面点击取消程序退出
修复预览程序点击保存图片弹出保存对话框点击取消或者关闭按钮
打印预览程序退出的问题。主要由于未正确的对保存的路径做判断

Log: 修复打印预览另存为图片取消后程序退出
Bug: https://pms.uniontech.com/zentao/bug-view-53904.html
Change-Id: I28033dd8f78e1598f8a517c6f5417ffb116b3fbd
2020-11-10 17:01:09 +08:00
linxun 7991a15e4a fix: 修改水印大小范围
修改水印大小slider的范围为10~200

Log: 水印大小-范围为10~200%

Bug: https://pms.uniontech.com/zentao/bug-view-53931.html
Change-Id: I7fac99c7f2cea4e99408d3e02a654225d1a63f10
2020-11-10 16:19:30 +08:00
chengyulong 554cdf6c28 fix: 修改水印角度改变预览刷新截断的问题
水印旋转角度改变后,会概率性出现刷新截断的问题,是因为设置的GraphicsView刷新模式为智能刷新,而WaterMark在旋转以后返回的boundingRect是旋转前的rect,返回旋转后重新计算的boundingRect解决问题

Log: 修改水印角度改变预览刷新截断的问题
Task: https://pms.uniontech.com/zentao/task-view-43955.html
Change-Id: I13b3e45f6c78437906c0c7632ce5c9eafcabbeb3
2020-11-10 09:59:12 +08:00
linxun da5a186535 fix: 水印大小,透明度,旋转,颜色接口的调用
调用预览提供的接口,设置水印大小,透明度,旋转,颜色

Log: 调用预览提供的接口,设置水印大小,透明度,旋转,颜色

Task: https://pms.uniontech.com/zentao/task-view-43541.html
      https://pms.uniontech.com/zentao/task-view-43534.html
      https://pms.uniontech.com/zentao/task-view-43533.html
Change-Id: I4150977dc8dd9af7afcb934c2c3d39d968abb0ab
2020-11-09 17:18:55 +08:00
chenbin 4ec6b66c17 fix: 打印预览水印部分提供统一设置接口方式
打印预览水印提供多次修改水印参数属性只做一次刷新预览的功能,
由于多次修改参数,每次修改都会调用刷新重绘,导致页面可能在多
此刷新之后出现卡顿现象。

Log: 打印预览多次修改属性只刷新一次
Task: https://pms.uniontech.com/zentao/task-view-43956.html
Change-Id: Ia730a69470fa4c190dbb8905ad2411e3144491e1
2020-11-09 16:30:59 +08:00
chenbin 74a97dc4e7 fix: 修复预览水印设置缩放对文字水印无效的问题
单独对文字水印进行判断,按照默认值65点大小进行设置;
并添加灰色打印下字体颜色仅为灰色,修复文字水印旋转后字体
位置异常.

Log: 水印缩放对水印文字生效,并解决文字水印旋转后位置异常的问题
Task: https://pms.uniontech.com/zentao/task-view-43956.html
Change-Id: I04c0266036620552db3331c0a0d86f7f1fd29e7d
2020-11-09 16:00:14 +08:00
wangpeng 42b9b07910 fix: 修复鼠标拖动标签页与右方向键间的距离
标签移动区域过大,将sizeHint()调整为size()

Log: 修复鼠标拖动标签页与右方向键间的距离
Bug: https://pms.uniontech.com/zentao/bug-view-53578.html
Change-Id: Iecb9bc58680b6e4942cf3922983d4e7e27dc6a19
2020-11-09 15:49:48 +08:00
chengyulong 50ce0baa93 fix: 修改水印类型更改时不能及时刷新的问题
当文字水印和图片水印相互切换更改水印类型后,调用一次update

Log: 修改水印类型更改时不能及时刷新的问题
Task: https://pms.uniontech.com/zentao/task-view-43955.html
Change-Id: I6f27eafa7aaa6422d661e82ebe73e011d99f8f44
2020-11-09 15:23:57 +08:00
chenbin b5d4e282d8 fix: 打印预览修复切换页码预览缩放不还原
切换页码时未做预览还原的处理产生此问题。具体做法是
在切换页码的对应函数内进行一次重置处理。

Log: 修复切换页码预览缩放未还原
Bug: https://pms.uniontech.com/zentao/bug-view-53092.html
Change-Id: I6d1ce83ac349519e990ed7e7b799778b3b488001
2020-11-09 15:02:39 +08:00
liuyang 9b7481a101 fix: QDBusInterface不使用静态方式生成
QDBusInterface使用静态方式会导致在wayland平台会出现一个QtPulseaudio无法释放的问题

Log: 调用接口previewSystemSoundEffect在klu上出现QtPulseaudio

Bug: https://pms.uniontech.com/zentao/task-view-42132.html

Change-Id: Ia6a5d5fae079b54d2b905dd6cfca94388d2f4a1d
2020-11-09 11:01:32 +08:00
chenbin 1538f09aa8 fix: 打印预览黑白显示优化鼠标滚轮和拖拽
由于预览缩放和预览拖拽会触发PageItem的paint事件,
因此当预览黑白效果时,每一次触发鼠标事件都会执行一
次置灰操作.这里是去掉不必要的置灰.仅在打印属性发生
变化时进行置灰.

Log: 优化打印预览缩放和拖拽对黑白效果的卡顿的问题
Task: https://pms.uniontech.com/zentao/task-view-43956.html
Change-Id: I5c0b1e2742765497e7ab46c16b3b5ce55487d60a
2020-11-06 17:59:08 +08:00
chengyulong 681ef727e4 feat: 增加取色窗口,获取颜色.
增加取色窗口,传给预览水印所需要的颜色.

Log: 水印文字图片取色,全色板取色.

Task: https://pms.uniontech.com/zentao/task-view-43540.html
      https://pms.uniontech.com/zentao/task-view-43539.html
Change-Id: Icbb2be380c358ea8558b02a3d7cfd5f4cc3167fc
2020-11-06 17:57:33 +08:00
chengyulong 4b2919e73c fix: 修改图片水印和文字切换时导致的水印绘制区域错误的问题
在生成页面后根据页面大小设置水印的boundingRect,设置完成后再将水印旋转角度还原设置。在更新设置时,调用update进行水印的重绘。添加水印布局设置

Log: 修改图片水印和文字切换时导致的水印绘制区域错误的问题,并实时更新
Task: https://pms.uniontech.com/zentao/task-view-43955.html
Change-Id: I3cd6f451b83698490cce0866ee7f1e630b86d447
2020-11-06 14:45:21 +08:00
chenbin ea8783d583 fix: 打印预览水印数据绘图优化
由于预览缩放和预览拖拽会触发水印的paint事件,因此每次
进行鼠标拖拽和缩放的时候都会进行一次绘图,导致页面出现
不流畅的现象.主要的处理办法是将生成的效果拿出paint函数
内不进行多余的绘图操作,效果仅在属性发生变化是改变.

Log: 优化打印预览水印绘制进行鼠标拖拽和缩放导致的卡顿
Task: https://pms.uniontech.com/zentao/task-view-43956.html
Change-Id: Ifa7a8ccc186c2b3f82b6756b232f54c716a2624c
2020-11-05 17:57:10 +08:00
chenbin 9be0f060e7 fix: 修改添加水印导致缩放错误的问题,使图片水印跟随打印色彩
由于GraphicsView的缩放会根据场景中的item自适应,但水印在旋转后
的大小超过了页面大小,导致页面的预览效果会小于100%缩放大小,修
复此问题并添加使图片水印跟随打印色彩.

Log: 修改添加水印导致缩放错误的问题
Task: https://pms.uniontech.com/zentao/task-view-43547.html
Change-Id: Id5d9117eaf0f4d963f2913b85b4ae71b421f7556
2020-11-05 16:49:41 +08:00
zhangkai d13c89d991 feat: 水印字体添加
添加水印可选字体

Log: 水印字体添加

Task: https://pms.uniontech.com/zentao/task-view-43538.html
Change-Id: I25ff303e1d0e37f6be4e552e999d5b22814fb3a8
2020-11-05 10:27:12 +08:00
chenbin 8cd1f29653 feat: 预览打印水印数据融合原始数据打印
添加打印机打印、生成PDF、生成图片功能中水印数据融合原始数据
进行打印,生成具有水印效果的数据.

Log: 打印原始数据与水印数据的融合
Task: https://pms.uniontech.com/zentao/task-view-43547.html
Change-Id: Ie8793a4606c13a661e5dddf87e43d39f2777c003
2020-11-04 15:28:47 +08:00
zhangkai 6302fb38ed feat: 打印预览图片水印
增加打印预览图片水印,根据图片路径传所选图片

Log: 打印预览图片水印

api: 新增选择图片接口customPictureWatermarkChoosed

Task: https://pms.uniontech.com/zentao/task-view-43532.html
Change-Id: I0932983cf5f3a95d49bd70d64099a0edfeea398d
2020-11-04 11:30:39 +08:00
zhangkai e57ce7ead3 Merge "feat: 打印预览文本水印内容选择" into dev/print1040 2020-11-03 17:36:22 +08:00
chenbin e43932c635 feat: 添加打印预览文字水印实现
实现文字水印图层逻辑,添加文字水印的平铺模式和居中模式的实现.

Log: 添加文字水印绘图逻辑代码实现
Task: https://pms.uniontech.com/zentao/task-view-43547.html
Change-Id: I8986cb6aa73b456617cb3313de3a6b615e3e21e1
2020-11-03 16:49:29 +08:00
zhangkai c0c1cac3a4 feat: 打印预览文本水印内容选择
新增文本水印内容选择功能

Log: 打印预览文本水印内容选择

api: 新增文本水印内容选择函数_q_textWaterMarkModeChanged
        自定义文本水印函数_q_customTextWatermarkFinished
        预览设置水印文本setTextWaterMark

Task: https://pms.uniontech.com/zentao/task-view-43545.html
Change-Id: Ia4ad96deabfa7790b5f9c87343e7f2438e8c7b30
2020-11-03 14:33:08 +08:00
zccrs 229b84efed refactor: 为已存在的DApplication对象重设命令行参数
globalApplication的argc参数和DApplication的构造保持
一致,改为使用int引用传参数。

当实例已经存在时则根据传入的argc、argv更新QCoreApplication
中保存的进程参数信息

Log:

Change-Id: I10e8b9e3bc42b2c61bfa3b0d023c770218885d83
2020-11-03 12:30:58 +08:00
chengyulong 62e5a7b3d3 feat: 新增水印功能
打印预览项目增加图片水印功能,文字水印完成部分接口

Log: 打印预览项目增加图片水印功能
Task: https://pms.uniontech.com/zentao/task-view-42935.html
Change-Id: If042979e2058213f001c5d3ec8afdf10985a76c8
2020-11-03 09:38:08 +08:00
zhangkai 9e2e55c955 feat: 打印预览添加水印UI
添加水印模块的UI

Log: 打印预览添加水印的UI模块

Task: https://pms.uniontech.com/zentao/task-view-43536.html

Change-Id: Ib9a7ebc848a6b3c430fb6d2ff83638ee5d7f0b86
2020-11-02 17:26:18 +08:00
zhangkai c2f76bbf51 Merge "fix: 中文状态下,页边距处UI与设计不符" into dev/print1040 2020-10-29 09:36:43 +08:00
chenbin 8e5c53af07 fix: 修复切换色彩选项后预览缩放未还原初始大小
由于切换色彩选项未触发预览重绘,因此预览缩放无法还原
初始大小.具体方式是切换色彩选项是重新执行一次还原预
览缩放为初始值

Log: 解决打印预览缩放问题
Bug: https://pms.uniontech.com/zentao/bug-view-52540.html
Change-Id: Ib5a41bf55bbcb33096f7720635acf13f1b1c786a
2020-10-29 09:06:37 +08:00
zhangkai 9022c5fe18 fix: 中文状态下,页边距处UI与设计不符
设置spinbox宽度自适应,空白处增加spaceritem
将固定的值全部修改为自适应

Log: 中文状态下,页边距处UI与设计不符

Bug: https://pms.uniontech.com/zentao/bug-view-52518.html
Change-Id: I04d6998495cb1a23020056ed82ba7160a96b2d78
2020-10-28 18:07:23 +08:00
chenbin 663b5e6d3a fix: 修复切换色彩选项后预览缩放未还原初始大小
由于切换色彩选项未触发预览重绘,因此预览缩放无法还原
初始大小.具体方式是切换色彩选项是重新执行一次还原预
览缩放为初始值

Log: 解决打印预览缩放问题
Bug: https://pms.uniontech.com/zentao/bug-view-52540.html
Change-Id: I0f7c276ef8dacee761de5c612c948ba3f51fa77b
2020-10-28 17:26:09 +08:00
zhangkai 7ae041790c Merge "fix: 打印预览窗口最大化后翻页按钮位置有误" into dev/print1040 2020-10-28 15:29:55 +08:00
zccrs 0feec2de98 feat: add DApplication::globalApplication
添加一个用于生成DApplication的接口,主要是为了跟deepin-trubo
配合使用,避免程序自身再创建DApplication对象,使用globalApplication
将支持共享deepin-turbo已创建的实例。

Log:

Change-Id: I8699f522599334f10ba870bdfe6d84c8079287d8
2020-10-28 15:29:50 +08:00
linxun 6186a2a982 Merge "fix: 自定义页码切换问题" into dev/print1040 2020-10-28 15:21:08 +08:00
zhangkai 399ff71d05 fix: 打印预览窗口最大化后翻页按钮位置有误
增加弹簧调整位置

Log: 窗口-最大化后,预览显示下面的翻页按钮位置显示有误

Bug: https://pms.uniontech.com/zentao/bug-view-52461.html
Change-Id: Ib24051657dbf4343abe7bb2149fb30c424128b11
2020-10-28 15:14:44 +08:00
chenbin 79a7fc6788 fix: 修复打印缩放后预览缩放不返回初始大小
由于打印缩放不触发重绘,因此预览缩放在重绘时的统一处理
在打印缩放功能中不适用,需要在打印缩放后重新执行一次预
览返回初始大小的逻辑.

Log: 修复打印缩放后预览缩放不返回初始值
Bug: https://pms.uniontech.com/zentao/bug-view-52495.html
Change-Id: Ic1e33e40039ebf4c66bfd2946c23f2fc017bb909
2020-10-28 15:08:20 +08:00
linxun f53dfffb63 fix: 自定义页码切换问题
只要页码内容变化,自动跳转为1/全部页面

Log: 打印范围-指定页面,打印预览显示内容有变化时,页码应该自动变为“1/全部页面”

Bug: https://pms.uniontech.com/zentao/bug-view-52353.html
Change-Id: Ida1c90f17ab2cbbbf1bf6fba3bd4fb3019ee7f3a
2020-10-28 13:53:06 +08:00
wangpeng 8f8bcf0b19 fix: 修复DArrowRectangle在wayland平台下位置错误问题
将鼠标放在dock驻留的应用上,DArrowRectangle控件箭头上浮了20px左右

Log: 修复DArrowRectangle在wayland平台下位置问题
Bug: https://pms.uniontech.com/zentao/task-view-41644.html
Change-Id: I185deb29cd9d51c21f655447d2f38cac68763c5d
2020-10-28 13:27:12 +08:00
zhangkai b1348585e3 feat: 高级设置显示后,不隐藏基本设置,且按钮显示收起
高级设置显示,按钮变为收起

Log: 高级设置-点击时,不隐藏基本设置
Change-Id: Ic75955d25aa013ca3738be2b0111a11c197773d4
2020-10-27 09:20:48 +08:00
Robin Lee fd221786d1 fix: Initial packit setup
rpm 打包优化

Log:
Change-Id: Id12f43499463c651d23b9b4d5abd03e3299839e0
2020-10-23 13:16:29 +08:00
chenbin 1ba28661aa feat: 打印预览添加另存为图片的功能
新增另存为图片的功能,图片默认存到桌面,创建一个新
文件夹,文件夹名按照默认名称递增,文件名按照文件夹名
称进行递增。图片格式包括png和jpeg,具体格式通过外部
接口进行定义。

Log: 打印预览添加另存为图片功能
Task: https://pms.uniontech.com/zentao/task-view-41443.html
Change-Id: I56f1ad31426e8a0259d7398f169d46f1d5784e03
2020-10-23 09:05:10 +08:00
zhangkai b5772f0cb2 fix: 自定义页时,切换打印设备、打印方向、纸张大小等操作时,会给出提示
设置参数,在其他操作调用时,屏蔽提示,保留输入框置红

Log: 自定义页时,切换打印设备、打印方向、纸张大小等操作时,会给出提示
Change-Id: Iff02a724d490e5db0baa161de1d448772b5a3b43
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/8178
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-22 20:49:35 +08:00
chengyulong_cm dc5b954e3b fix: 修改选择当前页导出pdf文件为所有页的问题
当选择范围为当前页时,为达到可翻页效果,pageRange内容依然为原页码,
而当打印当前页时应重新赋值,此处改为新增一个局部变量并将内容设置
为所要打印的页码

Log: 修改选择当前页导出pdf文件为所有页的问题
Change-Id: Idb61cc2fb806f9aadca68d82d78cb19a52631af9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/8204
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-22 20:49:26 +08:00
linxun 983f4a1d6a fix: 全部页码翻页后切换到当前页码后跳转到第一页
只是在全部页码的时候跳转到第一页,当前页码的时候保持不变

Log: 修复切换至当前页时跳转到第一页的问题
Change-Id: I09faef65807626c8bcc7a926e41a28c0a12d7bc5
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/8213
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-22 17:54:23 +08:00
linxun aa8757d408 feat: 保存PDF文件优化
增加外部调用设置的接口setDocname

Log: 另存为PDF时,外部应用通过接口可以设置文件名,保存PDF文件使用该文件名,优化函数名称

Task: https://pms.uniontech.com/zentao/task-view-40832.html

api: 增加api setDocname docName
Change-Id: Ib29360207fd46a874cc640083856521d05190564
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/8010
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: liuyong <liuyong@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-21 11:06:41 +08:00
liuyang 6c7d88d418 fix: 移除qt5multimedia模块
去掉对qt5multimedia模块的依赖,废弃DVideoWidget类

Log: 去掉qt5multimedia模块

Change-Id: I3c0ea8997a3fa4b8824f5ad40fd1cbc85988b050
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/8101
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-21 09:22:02 +08:00
zhangkai ba9212e2be feat: 打印预览自定义页面格式化优化、异常提示优化
当输入格式不符合要求比如5-1时,回车自动调整为1-5,若输入不符合要求,则键入或者回车时给出提示

Log: 指定页面-格式化优化、异常提示优化

Task: https://pms.uniontech.com/zentao/task-view-40841.html

api: 新增异常提示函数tipSelected(TipsNum tipNum)
Change-Id: Ie57d3cb5f2f1c8310bbc20b0506d3da60d300568
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/8020
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: yanbowen <yanbowen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-20 16:38:16 +08:00
chenbin a00b34a967 feat: 打印预览增加预览界面缩放功能
打印预览增加预览界面缩放功能,鼠标拖拽功能,增加缩放
还原按钮,增加设置缩放范围为10-200%,增加其他预览属性
改变时自动还原缩放

Log: 打印预览增加预览界面的缩放功能
Task: https://pms.uniontech.com/zentao/task-view-40839.html
Change-Id: I742077b66eb933bd8b2aebcacde6071db78ed796
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7837
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Reviewed-by: zhangyueqian <zhangyueqian@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-20 10:47:10 +08:00
linxun 59097dfeee feat: 自定义页码其他规则相关优化
选择“指定页打印”时,若其他参数设置改变引起了预览总页数变化,导致预览页面属性错误无法显示,则选项自动跳回“1/全部页面”,若切换至其他选项(比如当前页)再切回时.继续沿用输入生效的值

Log: 自定义范围下,其他规则相关优化

Task: https://pms.uniontech.com/zentao/task-view-40848.html
Change-Id: Id5998146ed36998c602f47517851aa8a3aec9c1f
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7760
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-20 09:01:24 +08:00
chengyulong_cm 10f4cb419b fix: 修改翻页功能,设置选择当前页时可翻页
去掉当前页不可翻页的限制,并增加并打翻页逻辑

Log: 修改翻页功能,设置选择当前页时可翻页
Task: https://pms.uniontech.com/zentao/task-view-40847.html
Change-Id: I9dd6e2c17ae2f4f9ec81e970e5955a222ffbb367
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7799
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-19 11:08:03 +08:00
zhangkai d105a9d988 feat: 打印预览窗口拉伸
设置预览窗口可拉伸

Log: 窗口边框支持自定义拉伸

Task: https://pms.uniontech.com/zentao/story-view-5645.html
Change-Id: I95c1e11fb9042f9156343b4c8028883604f28ecd
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7712
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-16 15:40:19 +08:00
linxun db8411ef07 feat: 打印预览页边距优化
页码参数可调整,数值变化时自动变成自定义边距选项,保留数值

Log: 页边距几个固定值选择下的参数可调整

Task: https://pms.uniontech.com/zentao/story-view-5653.html
Change-Id: Iac4696d9a5b6318ef63ae041f505a66d2beb3322
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7586
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: liuyong <liuyong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-16 10:52:37 +08:00
zhangkai c8469d4f81 feat: 打印预览窗口最大化及UI自适应修改
增加最大化按钮,修改UI自适应

Log: 界面显示-窗口最大化

Task: https://pms.uniontech.com/zentao/story-view-5645.html
Change-Id: I10c13e9e06acde7edba223aa9840eb220fd39c64
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7705
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-16 10:52:05 +08:00
ck 6c615fcb89 fix: 无法接收到dlisder两侧icon的信号
去掉忽略鼠标点击事件的属性Qt::WA_TransparentForMouseEvents

Log: 修复DSlider无法无法发出iconClicked信号的问题
Change-Id: I93232caf69c673525fe8dda61fdea1fb189de3e8
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7255
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-16 08:51:43 +08:00
zhangkai a1342f1208 feat: 打印预览高级设置显示,基础设置不隐藏
点击高级设置,基础设施不隐藏,鼠标上下滚动可以显示基础设置以及高级设置

Log: 点击高级选项后不要隐藏基本设置

Task: https://pms.uniontech.com/zentao/story-view-5652.html
Change-Id: Ia64f647bfc13e897d5ad53e0b962ce3a5e6acf13
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7595
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-15 17:09:48 +08:00
sunkang 8637a20e52 refactor: 重构DTableWidgetExample,使代码简化
重构DTableWidgetExample,使代码简化

Log: 简化DTableWidgetExample代码

Change-Id: Ia51c0fa0ee63d368e2093e360b3e6238377b4af8
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7573
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: liuyang <liuyang@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-15 15:07:01 +08:00
liuyang ded3bae048 fix: 移除QMediaPlayer的使用
去掉DDesktopServices中播放系统音频用到的QMediaPlayer,改用后端dbus接口代替;

Log: 解决某些应用被QMediaPlayer的性能影响的问题

Change-Id: I4f5b8f55aa0cb0511651b58151be2500eef33622
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7354
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-14 15:01:28 +08:00
sunkang 98b1e569a1 style: 给DKeySequenceEdit添加阴影和调整背景色
给DKeySequenceEdit添加阴影和调整背景色

Log: 快捷键编辑展示控件添加阴影和调整背景色
Task: https://pms.uniontech.com/zentao/task-view-40057.html
Change-Id: I4e69a8888693d80e4073cc4d3292b816ce9e5f3e
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7147
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-14 14:55:19 +08:00
chengyulong_cm 0f4254680c fix: 修复密码输入框可切换输入法输入的问题
添加设置DPasswordEdit的Qt::WA_InputMethodEnabled为false

Log: 修复密码输入框可切换输入法输入的问题
Bug: https://pms.uniontech.com/zentao/bug-view-50766.html
Change-Id: I3b52e4a30b19ffae531ba88d9c77cada290567c8
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7442
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-14 14:15:37 +08:00
ck 626b3e946b fix: rpm arm64 build failed
rpm打包失败,路径版本填写有误,这种方式应该可以优化,不知为何这个提交漏了,在gitlab可以通过comitid访问,但是搜索失败,导致打包过不了。重新提交一下。

Log: 修复rpm打包失败的问题
Change-Id: I9aead7557d6ef48454d1228fa41e8e5e11e005be

(cherry picked from commit bbd64229fe4c73f0f555be4a0a5ab20b1a045a03)
Change-Id: I4584e786b62dd3f8b8793a40d42b28f482174d98
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7197
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-13 13:54:49 +08:00
ck e0283b2cfa fix: listview的对勾action图标缩放后截断
默认大小14x14在1.25缩放后是17.5(非整),拖动宽度变化后绘制出现截断,现改成16x16(图标大小本就是16x16)和设计沟通过。example中加上一个action的图标显示。

Log: 修复1.25倍缩放下listview的对勾action图标显示异常的问题
Bug: https://pms.uniontech.com/zentao/bug-view-50461.html,https://pms.uniontech.com/zentao/bug-view-50470.html,https://pms.uniontech.com/zentao/bug-view-50457.html
Change-Id: I5e06064cef97100ab55476b31a7ced3a80c8b0b1
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7137
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: liuyang <liuyang@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-12 17:34:38 +08:00
chenbin 8bd2f350fa fix: 修复控制中心更改图标主题,应用图标不更新的问题
修复控制中心修改图标主题,应用标题栏图标不主动更新,具体做法是
标题栏绑定DPlatformTheme的iconThemeNameChanged信号。

Log: 修复修改图标主题应用图标不更新的问题
Bug: https://pms.uniontech.com/zentao/bug-view-50309.html
Change-Id: If05b5d70824b24ca1accdaec675492615e8df904
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/7098
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-12 14:20:42 +08:00
wangpeng d54bb3f159 feat: 添加DDialog示例
添加示例,其内包含DDialog、DFileDialog、DMessageManager

Log: 添加DDialog示例
Change-Id: I1b962b1f8b9f25a7d328ec2a8387d34b0176879d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/6369
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-12 09:36:21 +08:00
Liu Yang 13ff38370e fix: DApplication的setAutoActivateWindows接口增加触发条件
现在单例应用的窗口在设置了setAutoActivateWindows,在hide以后也会激活窗口。

Log: 修改单例应用在设置setAutoActivateWindows情况下hide后,不能激活窗口的问题。
Bug: https://pms.uniontech.com/zentao/bug-view-50252.html

Change-Id: Ida5fa561d3c9c7fb207a0ac0cb7b5039125b3839
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/6882
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: xiachengjun <xiachengjun@uniontech.com>
2020-10-09 14:39:48 +08:00
chenbin 38d651dd2c fix: 修复DDialog标题的偏下显示的问题
由于之前的添加content高度较小导致标题栏偏下的问题代码,
导致标题文本出现未居中显示的问题。通过调整titleLabel的
大小策略,使高度能够正常扩充,以解决此问题。

Log: 修复DDialog标题文本不居中的问题
Bug: https://pms.uniontech.com/zentao/bug-view-48961.html
Change-Id: I1d98f970a656d45b18d5457f8738fe9ac2ee2ccd
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/6305
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-29 13:22:50 +08:00
Liu Yang 40f4c7e525 fix: DSpinner 未在活动窗口时,颜色跟随调色板 currentColorGroup
设置 DSpinner 颜色跟随 palette 颜色组变化。

Log: 修复【手机助手】【5.1.0.33】音乐电子书加载时,加载动画为置灰效果、列表偶现为置灰效果的问题。
Bug: https://pms.uniontech.com/zentao/bug-view-48711.html

Change-Id: If6da1215820c4afc0105678dbd665a9d9bf8e772
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/6292
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-28 09:28:28 +08:00
ck b138cc305b feat: 修改example的mainwindow的一些行为
去掉菜单点击都会弹出一个dialog的行为放到子菜单,添加全屏和非全屏的子菜单

Log: example菜单行为优化
Change-Id: I9ada7f72966c91890f8c220f1412c39309cc8267
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/6012
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-27 16:18:21 +08:00
ck 61cccb440a refactor: remove cups dependency
移除cups依赖,打印预览的后期如有需要用到可以是QLibrary的方式

Log: 移除cups依赖
Change-Id: Ie0ea62653a6040e783f4735edb7b56f76f8a5a81
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5949
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-27 15:49:36 +08:00
kongyunzhen fe4845f27c fix: 修复某些特殊情况下信号槽重复连接导致按钮点击后多次触发槽引起的行为异常
使用Qt::UniqueConnection 信号槽连接方式替代连接和断开操作

Log: 修复某些特殊情况下信号槽重复连接导致按钮点击后多次触发槽引起的行为异常
Change-Id: I75809cf9a71f532d19a40fe78f6a1fffe84df6ea
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5482
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-27 14:56:11 +08:00
wangpeng 36d3e76950 feat: DSearchEdit左侧图标替换,设置子对象objectName
添加了两个图标,使其跟随主题变换,
设置子对象objectName

Log: DSearchEdit左侧图标替换,设置子对象objectName
Bug: https://pms.uniontech.com/zentao/bug-view-46625.html
Change-Id: I00f9d5b3ebaa9d6ddf777d0928bad7cd1d25327f
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/6223
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-25 16:05:00 +08:00
chenbin 79dbea4c68 fix: 调整DMenuExample代码以解决cpu使用率过高的问题
由于在paintEvent中使用setPixmap会导致函数重复调用paintEvent
导致绘图事件不断执行,程序出现cpu使用率过高的问题。调整代码
避免setPixmap在paintEvent事件中执行。

Log: 修复example程序cpu使用率过高
Change-Id: I308b7cd5d64cb0db5c868223381df09b2d84e029
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/6051
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: liuyong <liuyong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-24 13:24:47 +08:00
chengyulong 6cddd78f7c feat: example添加widget类控件用例
example添加widget类控件用例

Log: example添加widget类控件用例
Change-Id: Id51cdb001f83aee51ed0982637a9a72ec9c1bde7
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5508
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-22 14:27:50 +08:00
chenbin b96694489b fix: 修复DButtonBox切换焦点状态仅左右键有效
修复竖直方向的DButtonBox切换焦点状态,仅左右键有效,
上下键无效的问题。具体修复效果为,水平方向仅左右键有
效;竖直方向仅上下键有效。

Log: 修复DButtonBox切换焦点方向键跟随其方向
Change-Id: Idd791787bf4afd0010e63a2f70a361e18827c154
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5648
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-21 14:40:19 +08:00
chenbin ee50152817 fix: 修复焦点状态下DButtonBox按钮的绘制不随位置改变
DButtonBoxButton在焦点状态下仅一种圆角状态,但是其本身
会有第一和最后一个按钮的样式不同,导致焦点状态下样式发
生改变。具体修改方式是单独修改按钮在焦点状态下的样式,
根据位置和方向进行判断

Log: 修复焦点状态DButtonBox的按钮样式不正常的问题
Change-Id: I64b94b2b89274323ad240a988e670eb69dcd861c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5637
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-21 14:39:04 +08:00
fuleyi 126b5cfb63 fix(example): 修复qt5.15 example编译失败
修复qt5.15 example编译失败

Log: 修复qt5.15 example编译失败
Change-Id: I14947cae4e290fab3233a7cfc30e4b576817d92d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5598
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: yekaisheng <yekaisheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-20 00:31:49 +08:00
chenbin 8f937964c1 fix: 修复DViewItemAction中widget可视化状态不更新
修改DViewItemAction的可视化状态为false,其添加的widget的
可视化状态不会更新,仍可能显示在界面上

Log: 修复DViewItemAction添加widget可视化状态不更新
Change-Id: Iee413e5bd186ee922bc93819eb10080cf9e7c009
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5467
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-18 16:07:53 +08:00
chenbin b809bebb14 feat: Example中添加DMenu的示例
新增DMenuExample的窗口和布局,增加DMenu的示例。

Log: Example新增DMenu的示例
Change-Id: I7f9d8f05c9abb2877aa626cf7b48cfa45eed920c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5270
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: caitongxun <caitongxun@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-18 09:48:47 +08:00
sunkang 5b249f9e95 style: 调整Example的ToolTip例子的布局和间距
调整Example的ToolTip例子的布局和间距

Log: 调整Example的ToolTip例子的布局和间距

Change-Id: Iac837dca58e50b15de4cc5f7b04ddbaf0a806ad6
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5233
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-18 09:13:57 +08:00
sunkang 401be99230 feat: 添加DRubberBand的例子
添加dtk example的DRubberBand例子

Log: 添加DRubberBand的使用示例

Change-Id: I8d5bcfbfe9b376775dcef8d0bc9c6050a14c7c3a
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5097
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: hudeng <hudeng@uniontech.com>
Reviewed-by: liuyong <liuyong@uniontech.com>
Tested-by: hudeng <hudeng@uniontech.com>
2020-09-17 13:28:49 +08:00
chenbin acf29df192 fix: 修复DDialog标题信息多行显示显示不全的问题
DDialog中的标题和信息,设置文本换行后,切换字体大小,窗口不随
字体大小自适应增大,出现文字显示不全.具体做法是切换字体大小时,
手动判断当前文本的高度,并手动更新控件高度

Log: 修复DDialog标题信息文字显示不全
Change-Id: I60ab21f39c64bbae458cb5c025ff174e020fe6c8
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4940
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: liuyong <liuyong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-17 09:47:44 +08:00
chenbin a182427797 fix: 修复DBackGroundGroup背景色消失的问题
由于之前的bug问题,需要删除未显示的widget,导致此控件
在初始化显示前,不显示所有控件.在Show事件时重复判断
一次已解决此问题

Log: 修复DBackGroundGroup背景色消失
Bug: https://pms.uniontech.com/zentao/bug-view-48171.html
Change-Id: Ie9a39852a287be474bc30fef3c0dfbfc99b47f43
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/5084
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: liuyong <liuyong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-16 16:57:52 +08:00
wangpeng 75dc61ecdc feat: 添加Example的window示例模块
内部包括 DTabBar DSizegrip DStatusBar DMainWindow DTitleBar控件

Log: 添加Example的window示例模块
Change-Id: I480b5bb2dfd00c22c2640be41a727128abc5e1f0
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4874
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: liuyong <liuyong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-16 16:34:28 +08:00
sunkang ca2fc7e126 feat: 添加Example的ToolTip,Spinner,LCDNumber模块
1.添加dtk Example的ToolTip,Spinner,LCDNumber模块,添加相关资源文件
2.模块描述信息的QLabel添加鼠标选中文本的功能

Log: 添加dtk Example的ToolTip,Spinner,LCDNumber使用例子

Change-Id: I818415ae3e03294639272a1d6d2432d3d26ee26c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4382
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: zhangyueqian <zhangyueqian@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-16 10:23:57 +08:00
chengyulong_cm 9af4a1d233 fix: 修改翻译ts文件与代码cpp文件context不匹配的问题
修改翻译ts文件与代码cpp文件context不匹配的问题

Log: 修改翻译ts文件与代码cpp文件context不匹配的问题
Bug: https://pms.uniontech.com/zentao/bug-view-47093.html

Change-Id: I008851ef99c14ff63a7cdf93fbb966dbd4d340a5
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4843
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-15 17:44:38 +08:00
linxun 5509fb9929 fix: 移除打印边距和缩放等待1s刷新
去除边距和缩放的定时器

Log: 移除打印边距和缩放等待1s刷新

Bug: https://pms.uniontech.com/zentao/bug-view-47160.html
Change-Id: If6a9fd9fdd2ffed911c9f30b506de4d11359bd01
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4823
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-15 17:06:26 +08:00
linxun 1500d555ce fix: 修复自定义页码警告问题
当页码为空选项切换为自定义页码添加警告

Log: 修复自定义页码警告问题

Bug: https://pms.uniontech.com/zentao/bug-view-46597.html
Change-Id: Ie10a4a031e596fe11894f27ecaacc1c9124919b4
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4704
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: liuyong <liuyong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-15 15:00:54 +08:00
Liu Yang 5d1f5ce459 feat: 补充 ProgressBar 例子
完成 DProgressBar、DWaterProgress 和DColoredProgressBar 示例

Log: 完成 ProgressBar 示例

Change-Id: If43b92f85b3381501d6f6d293fb62efad203eec4
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4360
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: liuyong <liuyong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-15 14:38:03 +08:00
chenbin d01e8727e2 feat: 添加example中Layout页面控件和布局
添加example中Layout页面的整体布局和资源文件,并调整部分ListView
示例中的资源文件和控件布局.

Log: 添加example中layout界面
Change-Id: Ic54e1305d91f764869d8110d141eddba727a3d45
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4425
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-15 13:25:21 +08:00
ck 95b5d09ea4 fix: 隐藏item后backgroundgroup样式不对
隐藏最后一个item触发layout更新后,重新计算过滤掉隐藏的widget

Log: 修复隐藏最后一个item后background失去圆角的问题
Bug: https://pms.uniontech.com/zentao/bug-view-36867.html
Change-Id: Ic2cad29f7252314c4eb84f0d878cc10f2d9f8dcc
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4681
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-15 09:52:52 +08:00
chengyulong 959807ce28 fix: example添加LineEdit
增加LineEdit类控件用例

Log: 增加LineEdit类控件用例
Change-Id: Ia845bd9953e3488341e01a2bcca39bddf5f1c93b
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4319
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-14 18:17:59 +08:00
zhangjinqiang d83c1278a4 fix: desktop-entry-editor build failed
DLineEdit 缺少 setPlaceholderText() 函数

Log: 添加了 DLineEdit::setPlaceholderText() 函数
Change-Id: I63a35ae27cd4e92fc65387d1e5adc9b7ab9f1219
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4554
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: huangjiawei <huangjiawei@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-12 14:20:09 +08:00
wangpeng 3c13ef1059 fix: 修复DSlider尖箭头滑块刻度不对齐
绘制滑块焦点框缩小了绘制区域,
在DSlider绘制刻度时没有更新

Log: 修复DSlider尖箭头滑块刻度不对齐
Change-Id: I5cabc2ac897326f487a64fbbff31368fefa17ff9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4022
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-11 10:37:06 +08:00
chenbin bdf5490016 feat: 为dtkwidget内部使用到的控件添加accessibleName
添加dtkwidget基础控件的accessibleName,在使用某些控件的时候添加,
以便自动化测试使用。

Log: 为dtkwidget部分控件添加自动化测试的accessibleName
Change-Id: I8e8712d0b8830511b7b6d99ec1d7601d5600079c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3168
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-11 10:03:44 +08:00
chenbin c526f86782 feat: Example中添加ListView页面的布局
添加Example中的ListView界面的布局和相关资源文件,
根据设计的样式,实现布局.

Log: 添加Example中ListView页面的布局和资源
Change-Id: If247ba2fc4ff4ee47a3457ca7c3d15a69eda69c9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4280
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: zhangyueqian <zhangyueqian@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-10 17:35:36 +08:00
linxun fb0569306a fix: 解决打印预览的默认页边距过宽的问题
修改默认为打印机可支持的最小页边距

Log: 解决打印预览的默认页边距过宽的问题

Bug: https://pms.uniontech.com/zentao/bug-view-44636.html
Change-Id: I1b39c52b98f41ac8b4418b4eaf7ab63dd574029d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4268
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-10 16:29:29 +08:00
ck f23f03e93f feat: add scrollbar example
添加dscrollbar的示例,由于scrollbar会自动隐藏,这里只是将图放到一个scrollarea中

Log: 添加scrollbar的示例
Change-Id: Ie077a2a0098384dcbca78bb508707936829a7f6d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4226
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-10 15:53:29 +08:00
wangpeng b9c0ae8f6a feat: 添加DSliderExample示例
添加DSliderExample示例

Log: 添加DSliderExample示例
Change-Id: I56dbc0336e7639c7df7c78c8c1ea2f6b2f23ea28
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4012
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-10 15:14:10 +08:00
chengyulong d5bbc71faf fix: 加DFileChooserEdit包含文件
加DFileChooserEdit包含文件

Log: 加DFileChooserEdit包含文件
Change-Id: I46a7f278c94a9584de9e557ca0185e771c1ec4b7
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4251
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-10 14:32:22 +08:00
chengyulong be340864a2 fix: 加DIpv4LineEdit包含文件
加DIpv4LineEdit包含文件

Log: 加DIpv4LineEdit包含文件
Change-Id: Icdaafbc5938dd823834d863c493882329913f85f
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4222
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-10 11:19:05 +08:00
linxun a8bd796649 fix: 解决页码为空时警告显示问题
当页码为空时,只在失去焦点时改变警告状态,其他设置改变保存上一次的警告状态

Log: 解决页码为空时警告显示问题

Bug: https://pms.uniontech.com/zentao/bug-view-46597.html
Change-Id: I335b43f615ee3503cfcb707890eea89ad56de629
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4167
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-10 11:02:05 +08:00
zhangkai b48fc14515 fix: 打印预览页边框显示有误
设置背景及标题栏大小跟随控件大小变化而变化

Log: 修复打印预览页边框显示有误的问题

Bug: https://pms.uniontech.com/zentao/bug-view-46386.html
Change-Id: Ibec4968685364a6d12dc210d589f8e32c426c696
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4154
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: zhangyueqian <zhangyueqian@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-10 10:47:06 +08:00
kongyunzhen 7f364a9036 fix: 修复DDialog添加content高度教小是关闭按钮与顶部之间存在间隙
将titlebar设置顶部对齐

Log: 修复DDialog添加content高度教小是关闭按钮与顶部之间存在间隙
Change-Id: I32e63ef28f421289a08c099fba256f0c4e0fa378
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3515
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-10 10:09:08 +08:00
sunkang 840db7f7b8 feat: 添加example button的例子,给example添加icon
1.添加button的例子
2.给example添加icon

Log: 添加button的例子,给example添加icon

Change-Id: I9a76a3a41052b2cb98a58dedbb08e497c4e48f90
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4088
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: zhangyueqian <zhangyueqian@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-09 16:37:59 +08:00
chengyulong c04572b4bc fix: 修改界面使用翻译方式,更新翻译源文件
修改界面使用翻译方式,更新翻译源文件

Log: 修改界面使用翻译方式,更新翻译源文件
Change-Id: I84f495344f73df993cf27eaaba863f6bd290c8d1
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4143
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-09 16:17:24 +08:00
ck 8b714d11e8 fix: 控件销毁后没有清空缓存
控件销毁后没有清空缓存,在下次相同的内存地址上的控件再次获取palette可能出错。如栈上同一个对象创建销毁在创建可能地址相同,如果销毁后切换了主题,此时已经销毁的对象不会再去设置新的主题调色板,当前次显示时,使用的调色板将是之前的主题的调色板,导致颜色不对。同理还有控制中心的slider绘制问题。

Bug: https://pms.uniontech.com/zentao/bug-view-46447.html
Log: 修复控制中心电源管理切换主题后控件背景色不显示的问题
Change-Id: If2e0976be06e127f320d9b35db08d538870ded58
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4099
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-09 14:10:36 +08:00
zhangkai c65fd60701 fix: (打印预览)判断翻页按钮是否可用的接口重复
删除绑定了翻页按钮是否可用的重复信号槽

Log: 判断翻页按钮是否可用的接口重复;切换打印范围时,调用新接口
Change-Id: Iedda30522be212c77f1d05486ac13ccb86629761
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3825
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-08 15:30:36 +08:00
linxun 56abfc8d6e fix: 优化关于页码超出范围时的操作
增加页码超出时打印按钮置灰的效果,修改预览关于预览总页码不刷新的问题

Log: 优化关于页码超出范围时的操作

Bug: https://pms.uniontech.com/zentao/bug-view-45316.html
Change-Id: I89caad52dee6d7c25d2145a32c305b641bb9b8b9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3985
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-08 15:30:21 +08:00
sunkang eb5ed8b0dc docs: 添加example资源图片
添加dtk的example的资源图片

Log: 添加dtk的example的资源图片

Change-Id: I0eff0eaa023c994fe0ee436b278a1373fc138c2a
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/4007
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-08 13:53:05 +08:00
chengyulong cd4acad65e fix: 优化翻页功能
优化翻页功能,只设置pageRange时不需要重新处理页面

Log: 优化翻页功能
Change-Id: I314f14b362b4b23553f40436ddd358555d44884e
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3999
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-08 13:52:47 +08:00
wangpeng 571fa9fc3b fix: 修复dwindowquitfullbutton头文件问题
修复dwindowquitfullbutton头文件引入错误

Log: 修复dwindowquitfullbutton头文件问题
Change-Id: I54e0587d0ecaeb6572f520060e9127505cc394bb
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3631
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-08 09:23:38 +08:00
ck 9870649cb8 docs: 函数注释说明修改
函数注释不太明确的地方修改,使之更清晰

Log: 修改注释
Change-Id: Iaed3ea18ce9920769353906fd8e781d22b2212d8
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3789
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-07 15:04:53 +08:00
sunkang 084a6f8ee4 refactor: 调整example的UI设计,整理删除Example的部分代码
1.对Example的代码进行重构,整理删除部分代码
2.添加了部分图标资源文件

Log: 对dtk的example按照新的UI设计实现

Change-Id: I0e19db2d956d0481542736eed5a8739ee0b7c372
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3756
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: hudeng <506460991@qq.com>
Tested-by: <mailman@uniontech.com>
2020-09-07 11:35:26 +08:00
linxun 145f21ae86 fix: 解决pdf保存名字重复问题
外部保存名字并进行设置,保存并判断加上对相同名字的限制

Log: 解决pdf保存名字重复问题

Bug: https://pms.uniontech.com/zentao/bug-view-46114.html
Change-Id: I48d39b2e8c4afe19d961ea4e0c6af8062070ec24
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3554
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-07 09:49:04 +08:00
Lvpeilong c4932fb374 fix: 修复当没有预览数据时切换缩放导致程序异常退出的问题
加入当没有预览数据时对页面数据对象进行非空判断

Log: 修复当没有预览数据时切换缩放导致程序异常退出的问题
Bug: https://pms.uniontech.com/zentao/bug-view-46374.html
Change-Id: Ibb1f5fb77f2e2f8933fb6c70ae4fab373bd0526e
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3699
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: wangwei <wangwei@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-04 18:44:03 +08:00
sunkang 582a2db24c feat: 添加Button的使用例子
添加了DPushButton,DWarningButton,DSuggestButton的使用例子

Log: 添加Button的使用例子,简单展示用法

Change-Id: I9b6de9fc40bd1fa06155f7b112d6fd8502b7cb15
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3416
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-03 09:59:34 +08:00
sunkang 62ec5e0d7f refactor: 重构example代码
重构example的代码,采用两级菜单实现,并整理相关代码

Log: 重构example代码,使dtk的控件展示更清晰

Change-Id: Ib5a98936446f284f820533528bfe8d33611f4217
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3273
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-02 15:38:24 +08:00
chengyulong_cm f5ee748ad2 fix: 更新翻译文件
更新翻译文件

Log: 更新翻译文件
Change-Id: Ib085b66b433e9ffe236d388ea1785729792fd088
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3310
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-02 15:23:32 +08:00
ck 6cb35182fb fix: 触摸屏按住滚动条上下跳动
设置对话框支持触屏滑动,按住滚动条来滑动会出现上下跳动

Log: 修复设置页面滑动滚动条页面会跳的问题
Bug: https://pms.uniontech.com/zentao/bug-view-44480.html
Change-Id: I0f4bff05c13704b092eeeafe844edcdceda105fa
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3142
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-02 10:12:55 +08:00
ck ae68950404 fix: 触屏滑动时出现大片空白
触屏滑动是子控件(快捷键)收到鼠标消息,发生layout变动导致viewport位置异常,现在滑动中屏蔽子控件鼠标消息来解决。

Log: 修复设置页面滑动出现空白
Bug: https://pms.uniontech.com/zentao/bug-view-44587.html
Change-Id: Id0cd2d14daf9edf2d1083c691751d7fe33c8295d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3181
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-02 10:12:33 +08:00
chenbin fcd09ac98d fix: 修改DSlider刻度文字的样式为不超过刻度线
修改DSlider中第一个和最后一个刻度文字的样式,将样式
由居中刻度线修改为不超过刻度线。

Log: 修改DSlider刻度文字的样式
Bug: https://pms.uniontech.com/zentao/bug-view-44984.html
Change-Id: I9f34e118281e1daaaed7b0ef5714c713761b2e37
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3176
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-02 09:57:02 +08:00
WangPeng b31b143dbb feat: 添加DArrowrectangle控件新样式
添加DArrowrectangle控件 四个方向的圆角箭头样式,
对其他功能无影响.

Log: 添加DArrowrectangle控件新样式
Bug: https://pms.uniontech.com/zentao/bug-view-42916.html
Change-Id: I2654330d6f82b70296a65b440b245bba89264c1c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2842
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-02 09:45:54 +08:00
chengyulong_cm 8ef32c3a9e fix: 修改预览页面和页码显示错误的问题
修改翻页、改变纸张\页边距\打印方向后预览页面和页码显示错误的问题。

Log: 修改预览页面和页码显示错误的问题
Bug: https://pms.uniontech.com/zentao/bug-view-45306.html
     https://pms.uniontech.com/zentao/bug-view-45310.html
     https://pms.uniontech.com/zentao/bug-view-45312.html
Change-Id: Ic89bacf3a8d571a839fa64bbaaf746b8103315e9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3113
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-02 09:31:32 +08:00
zhangkai 55db330a35 chore: 根据DDoubleSpinbox更新的接口及其属性设置,修改代码
更换DDoubleSpinbox处属性设置所用接口

Log: 根据DDoubleSpinbox更新的接口及其属性设置,修改代码
Change-Id: Ia1d90da254275edf18bf4b440c489863ac95158f
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3187
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-02 09:30:36 +08:00
chengyulong_cm acbf7b381b fix: 更新翻译文件
更新翻译文件

Log: 更新翻译文件
Change-Id: I5b352ef92ed60d13295c2c2e7fd952bb315fa425
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3253
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-02 09:21:03 +08:00
linxun e5cb5e6c9d fix: 修改打印自定义页码不合法无警示信息的问题
增加对自定义页码的判断,对不合法的页码增加警示提示

Log: 修改打印自定义页码不合法无警示信息的问题

Bug: https://pms.uniontech.com/zentao/bug-view-45316.html
Change-Id: Ib0d32a84ad22c1c575f1d13ca1a92ffcd6b7314e
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3063
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-01 18:01:03 +08:00
chengyulong_cm 4b9748c461 fix: 修改打印预览颜色错误的问题
修改打印预览颜色错误的问题

Log: 修改打印预览颜色错误的问题
Bug: https://pms.uniontech.com/zentao/bug-view-45309.html
Change-Id: I8dd187ccb01cb0296eb39fe9e8a66249753a0b0d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3222
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-01 17:59:25 +08:00
Lvpeilong 1f6a2731f5 feat: 添加DPrintPreviewDialog文件
添加DPrintPreviewDialog文件

Log: 添加DPrintPreviewDialog文件
Change-Id: I9da9bd008707721efc9595b470709bbf4a6de15c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3180
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-01 13:13:42 +08:00
zhangkai 5876e06018 fix: 打印预览文案修改
打印范围提示架空格

Log: 打印预览文案修改
Change-Id: I694160274d5531295ada056d275463c95bf87d8d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3174
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-01 10:56:30 +08:00
zhangkai ac150b604c feat: 打印范围自定义时,翻页框可输入“1-6-2-1-1-”
使用正则表达进行过滤,输入格式类似于1,1-2,3,3-5

Log: 打印范围自定义时,翻页框可输入“1-6-2-1-1-”

Task: https://pms.uniontech.com/zentao/story-view-5379.html
Change-Id: I2aa18267f7a70871ae45e840a3481a534a3f57d5
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3073
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-01 09:21:32 +08:00
kongyunzhen ae9633ee25 fix: 修复设置系统默认打印颜色为灰色时打印预览设置彩色打印无效问题
通过setCupsOption设置cups options颜色模式

Log: 修复设置系统默认打印颜色为灰色时打印预览设置彩色打印无效问题

Bug: https://pms.uniontech.com/zentao/bug-view-44561.html
Change-Id: Icafc028fa7276123b4edaf32b93aa2e8302ee1ac
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3085
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-31 17:35:48 +08:00
ck a2ffddc1cc fix: build failed on Arch
Arch build失败,去掉这一行可以

Log: 修复Arch上编译失败的问题
Issue: fix #1882 https://github.com/linuxdeepin/developer-center/issues/1882
Change-Id: I6a810a2f78db06e5d52106777ee6d6fca21b1f25
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/3056
Reviewed-by: zhangdingyuan <justforlxz@gmail.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangwengeng <zhangwengeng@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-31 15:06:43 +08:00
kongyunzhen ccaf1a6a6a fix: 修复DDialog在未设置defaultbutton时内部包含的其它控件也不响应enter和return事件
移除窗口action,从pressevent中捕获enter和return事件进行处理

Log: 修复DDialog在未设置defaultbutton时内部包含的其它控件也不响应enter和return事件

Change-Id: Ice929c7977fb4ce16070d693238a4ae6ad26bc10
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2592
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-31 14:59:39 +08:00
zhangkai 1f6c994b19 chore: 打印预览模块代码规范性清理
清理qDebug打印代码、测试代码、空格、不必要注释以及二期ui开发代码,头文件引用规范性调整、代码段新增空格

Log: 打印预览模块代码清理
Change-Id: I0a0d6cf7b82c4a607cd3f23f72c8dba5b80c9278
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2873
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-29 13:24:12 +08:00
Lvpeilong 6908ceec44 fix: 处理视图控制部分注释
处理视图控制部分注释

Log: 处理视图控制部分注释
Change-Id: Idb3fd96c5772356d40dfb5d0dde7e1e41a6e99b9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2877
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:06:30 +08:00
zhangkai f43b2a9ed3 fix: 切换主题,背景色设置及去除界面边框问题
根据当前主题,设置对应颜色,设置边框宽度为0

Log: 切换主题,背景色设置及去除边框设置
Change-Id: I0e74a2ef14a05ff713ef5015609e94a56dd6f1e9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2849
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:06:03 +08:00
chenbin 46f61b19eb fix: 增加设置预览缩放的spinbox按回车键和1秒延时后界面刷新
通过增加设置缩放的spinbox键位的事件,新增使用return(enter)
键位立刻设置界面缩放;同时增加设置缩放的spinbox 1秒未操作延时
设置界面缩放。

Log: 增加设置预览缩放回车键和1秒延时界面刷新
Bug: https://pms.uniontech.com/zentao/bug-view-44675.html
Change-Id: Iaf7d962ee5e7cea2062179351ae2bc3b91f14af4
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2825
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:05:30 +08:00
linxun 1c52e998bf fix: 修复自定义边距某一个数值为0时,其他数据失效的问题
获取打印机和纸张的最小边距,增加判断,有一个边距小于最小值,将所有边距设为最小值

Log: 修复自定义边距某一个数值为0时,其他数据失效的问题

Bug: https://pms.uniontech.com/zentao/bug-view-44560.html
Change-Id: I887b7324df6537d0fd2c4ba5854e150cf70f92e8
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2780
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:05:30 +08:00
chenbin a21a824ad7 fix: 自定义页边距后,增加失去焦点和Return按下预览界面页边距更改
设置自定义边距后,当spinbox失去焦点或者按下return(enter)键,调用外部
重绘预览界面页边距更改。同时避免1秒超时刷新界面和失去焦点界面的冲突。

Log: 自定义页边距spinbox增加失去焦点预览界面页边距更改
Bug: https://pms.uniontech.com/zentao/bug-view-44675.html
Change-Id: I956d0f4d136d70c8ccfe3e6f2340979ef0b01588
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2758
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:05:30 +08:00
chengyulong_cm f8457bcc54 fix: 修改预览显示错误的问题
修改翻页、改变纸张\页边距\打印方向后预览显示错误的问题

Log: 修改后预览显示错误的问题
Bug: bug 44569\44568\44564\44562\44551
Change-Id: I2337b80def8b87ba41824d8d14c1e3e9bf6d60f5
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2733
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:05:30 +08:00
linxun bba6a5cad9 fix: 修复缩放滚动条可以将数值设置为0%的问题
修改spinbox的范围,设置最小值为1

Log: 修复鼠标滚动条可将缩放的百分比置为:0%

Bug: https://pms.uniontech.com/zentao/bug-view-44472.html
Change-Id: Ibc0332f220f7297bb1738c33e08d8589bebbe696
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2713
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:05:27 +08:00
zhangkai 79d410bf05 fix: 再次切换自定义选项,显示上一次自定义页码的记录
自定义页码后,切换到其他选项(比如当前页),再切回来时,保留用户上次输入的值,若为空,则显示默认提示。

Log: 再次切换自定义选项,显示上一次自定义页码的记录
Change-Id: Ia9da294d8206cb96ae2363bfdb99ab3cfbb06e0c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2696
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
linxun a340a37be1 fix: 修改不匹配的文案
对照需求文档修改不匹配的文案

Log: 修改不匹配的文案
Bug: https://pms.uniontech.com/zentao/bug-view-44483.html
Change-Id: I6f7cc1c69c6334bb7bd0db8df3a9b21c35f51a54
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2700
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
zhangkai 4e53c88aa7 fix: 打印范围为当前页面或者自定义时,打印预览模块的页码按钮应该禁用;页边距最大值修改
根据页码判断,禁用翻页按钮;修改页边距正则表达

Log: 解决打印范围为当前页面或者自定义时,打印预览模块的页码按钮应该禁用及页边距最大值修改

Bug: https://pms.uniontech.com/zentao/bug-view-44253.html
Change-Id: I7357cdc2b6a319bb76be4ba8625b69aa96ebc49b
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2648
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
chengyulong_cm 9d00b5bed0 fix: 修改当前页为第一页的问题
当选择预览某页时,切换到当前页显示上一次预览页面

Log: 修改当前页为第一页的问题
Change-Id: I3f335eeaafc665dea3aabd222c4472a7f54b4da2
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2643
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
linxun 748c567414 fix: 修复打印边距不生效的问题
打印边距默认是点为单位,设置以毫米为单位使边距生效

Log: 修复打印边距不生效的问题

Bug: https://pms.uniontech.com/zentao/bug-view-43362.html
Change-Id: Ib30127815f3cb4e27233e87b53a0c695b746e295
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2630
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
linxun 50f00a5fc7 fix: 修复打印横向纵向切换排版问题
去除设置打印范围的带有特殊限制的属性

Log: 打印方向调整后排版正常

Bug: https://pms.uniontech.com/zentao/bug-view-43275.html
Change-Id: I305ab5aa47f46ca4be81ca9614dced1e5a0c9cf0
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2619
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
chengyulong_cm 08df8f5f47 fix: 将当前页和选择页修改为当前页时只显示第一页、选择页时默认显示所有
当前页和选择页修改为当前页时只显示第一页、选择页时默认显示所有

Log: 当前页和选择页修改为当前页时只显示第一页、选择页时默认显示所有
Change-Id: Ie9cc4ab157848775623a262bd6c1e42d3bca1d31
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2618
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
zhangkai 28dc74f219 fix: 解决当系统字体放大后,页边距各个方向的数据框的数据显示不完整
根据字体大小,调节页边距布局自适应;修改打印设备及属性初始化

Log: 当系统字体放大后,页边距各个方向的数据框的数据显示不完整

Bug: https://pms.uniontech.com/zentao/bug-view-43236.html
Change-Id: I15c2e7a34441dc7957e423fc845be6cdcdcaa6c4
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2594
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
zhangkai ea07b48cb9 fix: 解决初始化时实际打印与列表显示打印机不一致
修改初始化打印机默认打印机为当前打印机

Log: 初始化时实际打印与列表显示打印机不一致
Change-Id: I2a3113d4c2c93ebe2c844b2410b25bf25842ea2a
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2575
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
linxun 11e752cb22 fix: 优化打印机颜色模式打印
优化灰度和彩色模式的预览调用,解决打印机彩色和灰色打印失效问题

Log: 打印机支持彩色和灰色打印,减少调用预览灰度和彩色调用
Change-Id: Id60cee602b0115ad9b3d949ed15503e9f6c2bdec
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2577
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:57 +08:00
linxun 888049386d fix: 缩放输入框不可输入特殊符号
根据UI調整后的设计图设置过滤缩放输入过滤和输入的范围

Log: 缩放输入框限制输入,只能输入10-200中的数字

Bug: https://pms.uniontech.com/zentao/bug-view-43230.html
Change-Id: I1514beafd00c1927733b98958de16d34ef14933a
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2454
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:49 +08:00
zhangkai 39438bce5a fix: 解决页边距为“自定义”时,各个方向的边界值有误,并且可输入“+、-”特殊字符
使用正则表达进行过滤

Log: 页边距为“自定义”时,各个方向的边界值有误,并且可输入“+、-”特殊字符

Bug: https://pms.uniontech.com/zentao/bug-view-43223.html
Change-Id: Iec7b9c925de2f77feb4e9697d4cabec86970108a
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2469
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:26 +08:00
lvpeilong 43424e7aa2 feat(preview): 去掉预览边框,修改预览视图底色以满足UI设计要求
去掉预览边框,修改预览视图底色以满足UI设计要求

Log: 去掉预览边框,修改预览视图底色以满足UI设计要求
Change-Id: I42d8aae4e102e41fe43a7fe521b7079951e3e1b9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2501
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:26 +08:00
chengyulong_cm c5e1eec15d fix: 修改打印时右下两边的边距跟随打印设置
改打印时右下两边的边距跟随打印设置

Log: 改打印时右下两边的边距跟随打印设置
Bug: https://pms.uniontech.com/zentao/task-view-29938.html
Change-Id: I5c8dbed3612385f2381760b07c643dd4de998931
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2537
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:26 +08:00
chengyulong_cm c2ce367a79 fix: 更新debian/api.json文件
更新debian/api.json文件

Log: 更新debian/api.json文件
Change-Id: Iae2e815b9ef6c36c79414c5f614567fcfb5e1fe5
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2562
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:04:23 +08:00
lvpeilong 87a4394ece feat(preview): 添加预览页面打印数据在缩放时超出边距不显示(但在页面内)
在页面对象中添加数据容对象,绘制数据内容对象时按页面边框进行裁减显示

Log: 添加预览页面打印数据在缩放时超出边距不显示(但在页面内)
Change-Id: I0fb035247f0c62f1460c3c327424690c451459a2
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2441
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:03:35 +08:00
chengyulong_cm b616e71e97 fix: 修改打印预览视图外框圆角
修改打印预览视图外框圆角

Log: 修改打印预览视图外框圆角
Change-Id: I2f63e55e31d52be0b90de45160ee15b6d6ae27eb
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2389
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:03:35 +08:00
zhangkai a0e5b05a7a fix: 解决当系统字体放大后,页边距各个方向的数据框的数据显示不完整
修改布局,根据获取的系统字号修改

Log: 当系统字体放大后,页边距各个方向的数据框的数据显示不完整

Bug: https://pms.uniontech.com/zentao/bug-view-43236.html
Change-Id: I469fef506e0d3b155314f38fc8253394e2749630
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2386
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:03:27 +08:00
lvpeilong f241dcc3e6 fix(preview): 屏蔽预览窗鼠标滚轮缩放功能
SP3无预览效果缩放设计,暂时屏蔽

Log: 屏蔽预览窗鼠标滚轮缩放功能
Change-Id: Ibea935985d835e8fd12ebfd334cbdeb0c0b64948
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2382
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:02:58 +08:00
zhangkai 539612d627 fix: 预览显示模块翻页框可输入0和大于总页码的正整数
修改页码输入框的正则表达及处理输入值大于页码总数的情况

Log: 预览显示模块翻页框可输入0和大于总页码的正整数

Bug: https://pms.uniontech.com/zentao/bug-view-42948.html
Change-Id: I1c713f8e1f94b373d043598ac67c09bd0e205940
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2179
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:02:58 +08:00
linxun e820d0befa fix: 修复保存到pdf颜色不生效的问题
增加保存到pdf的时候的使打印色彩为彩色的判断

Log: 打印保存到pdf彩色保存
Change-Id: Id0eb2e3d77aec1d10a9000284f234a4850a6b64d
Bug: https://pms.uniontech.com/zentao/bug-view-43215.html
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2171
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:02:58 +08:00
lvpeilong f52edf8d44 fix(preview): 修改预览窗背景色与设计不符的问题
修改预览视图背景色符合设计要求

Log: 修改预览窗背景色与设计不符的问题
Change-Id: Ibb1f73a5cc6f9c62b11a84fa4876d68abbfa8d10
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2142
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:02:47 +08:00
zhangkai a87397f0f6 fix: (打印预览)减少重绘次数,优化程序
优化切换打印设备和初始化在一个函数里,减少初始化重绘和切换打印机重绘次数

Log: 减少重绘次数,优化程序
Change-Id: I1bfcd514df4ca805e399e62e832c2ec48db8fa0b
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2065
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:01:35 +08:00
zhangkai 247db8e91d fix: (打印预览)页码输入框设置了初始范围,可输入比总页数大的页
获取总页数或自定义的页码数后,设置了输入范围。

Log: 页码输入框设置了初始范围,可输入比总页数大的页
Change-Id: I17b702f5b1445da9730ba89077aeac3c34cc09ae
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1919
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:01:11 +08:00
zhangkai 84872ca480 fix: (打印预览)根据UI设计修改背景透明以及边距问题
根据UI设计修改背景透明以及UI边距问题

Log: 根据UI设计修改背景透明以及边距问题
Change-Id: I601c01ac24bf36bfc9d30841edba36df1e043b35
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1580
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:01:11 +08:00
chenbin d24980fd70 feat: 添加多次修改打印机属性时仅重绘一次的接口
当同一函数内多次修改打印机属性时,仅重绘一次,避免重复调用重绘函数导致的界面卡顿

Log: 多次修改打印机属性时仅重绘一次,避免多次调用时的卡顿
Change-Id: Ib3414e86da7c8c8fd7efcfae87de5cb6720499cb
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1700
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:01:11 +08:00
chengyulong_cm b02872ee91 feat: 实现打印跟随色彩设置
实现打印跟随色彩设置

Log: 实现打印跟随色彩设置
Task: https://pms.uniontech.com/zentao/task-view-29938.html
Change-Id: I440638a0bbb7ee57fa8b5826a8002c92ed23ef12
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1812
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:01:11 +08:00
chengyulong_cm 993fca0507 feat: 实现缩放打印
实现缩放打印

Log: 实现缩放打印
Task: https://pms.uniontech.com/zentao/task-view-29953.html
Change-Id: Ied59972ec3c687cb365d1b9a6e3201831eba186a
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1699
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:01:11 +08:00
linxun 115f15fcab fix: 解决某些打印机双面打印不生效的问题和彩色支持的判断优化
对于一些不支持自动判断双面打印类型的打印机,从需求上修改,具体对打印机支持双面打印的类型进行属性设置,对支持彩色模式的判断进行了优化

Log: 打印预览页面,开启双面打印后,打印的文档不是双面

Bug: https://pms.uniontech.com/zentao/bug-view-41618.html
Change-Id: I7cf38ee6394678cd07ae5793df9967ab69ba7996
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1553
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:55 +08:00
kongyunzhen f2f7cf9434 fix: 修复选中默认打印设备错误问题
对默认打印设备名称进行全匹配判断

Log: 修复选中默认打印设备错误问题

Bug: https://pms.uniontech.com/zentao/bug-view-41492.html
Change-Id: I22b1f0367dcb4ddd5cc99138d7a147aac0cd0916
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1477
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
zhangkai a3313fd342 fix: (打印预览)打印设备切换到打印成pdf时,打印按钮文字显示为保存
打印设备切换到打印成pdf时,打印按钮文字显示为保存

Log: 当选择“另存为PDF”时,按钮显示有误

Bug: https://pms.uniontech.com/zentao/bug-view-42144.html
Change-Id: Ic50fefe2138a74ea4d35e041b3e6945f1c11ad2b
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1545
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
chengyulong_cm 9039aa535e fix: 修改缩放基准点
实现预览跟随缩放显示

Log: 修改缩小时以中心为基准进行缩放
Task: https://pms.uniontech.com/zentao/task-view-29953.html
Change-Id: Id3c87158b7caf9b3ba05f4b60d4673c6e8263e0c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1544
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
zhangkai 6dfbfce32c fix: (打印预览)切换打印设备时,属性设置修改,Ui修改
切换打印设备时,属性不改变,需要打印机支持的属性,判断是否改变根据Ui设计需求,修改样式

Log: 切换打印机会将除双面打印和打印机范围以外的参数均恢复到默认参数

Bug: https://pms.uniontech.com/zentao/bug-view-41927.html

Change-Id: I3b8b17420feb3196bd6afc5e2f6c03f6d3e87a34
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1471
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
chengyulong_cm 39a3812356 fix: 修改翻页显示页码错误的问题
修改翻页逻辑,并修改页面选择时所对应页码输入框的内容及提示信息

Log: 修改翻页显示页码错误的问题
Bug: https://pms.uniontech.com/zentao/bug-view-41873.html
     https://pms.uniontech.com/zentao/bug-view-41879.html
Change-Id: Ibd9fc6a723aeaedba91a3c7b69f3e7a808f08716
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1445
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
linxun f1f1513d6a fix: 解决另存为PDF-默认存储的名称重复的问题
增加对pdf在默认位置的名字判断,如果存在相同名字的文件,文件名称后面加一

Log: 原文档名称重复,另存为PDF-默认存储的名称有误
Bug: https://pms.uniontech.com/zentao/bug-view-41639.html
Change-Id: Ia2780a60d2cc29df8f027325a924f6b64728f58f
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1378
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
zhangkai 746c200cca fix: (打印预览)打印份数输入格式,根据预览页码设置按钮等属性,优化打印范围输入格式
打印份数输入格式1-999,根据预览页码设置按钮等属性,优化打印范围输入格式,ui样式等

Log: 打印份数输入格式,根据预览页码设置按钮等属性,优化打印范围输入格式

Bug: https://pms.uniontech.com/zentao/bug-view-41638.html
     https://pms.uniontech.com/zentao/bug-view-41473.html
Change-Id: I6f38c6265cf9025c5eeaf4dc0501e208a6ac3b6a
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1384
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
kongyunzhen 4f2e4cfda6 fix: 打印机选择框,选中的数据不是默认打印机
获取当前默认打印机设置为默认选中

Log: 打印机选择框,选中的数据不是默认打印机

Bug: https://pms.uniontech.com/zentao/bug-view-41639.html
Change-Id: If1e9d0b886853fe7a5763cae009ed531162860a5
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1374
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
chengyulong_cm 8a308227d6 fix: 修改页面范围改变时预览总页数出错的问题
增加了DPrintPreviewWidget::pagesCountChanged信号,通过发射信号通知界面重设预览总页数

Log: 修改页面范围改变时预览总页数出错的问题
Task: https://pms.uniontech.com/zentao/task-view-29930.html
Change-Id: I493e3d1b0a880ab7d988f72cf396093a37adc20b
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1298
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
linxun 669a578d12 fix: 修改预览纸张设置和打印范围设置
解决打印机切换默认纸张设置崩溃的问题,设置打印范围当前和自定义范围生效

Log: 修改预览纸张设置和打印范围设置
Change-Id: I8914d149274d96188c7e397c4863956908fc89b0
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1287
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
chenbin d5a910c883 feat: 打印预览页面页边距功能实现
按照设置的页边距,调整预览中的页边距,自定义页边距添加QTimer,设置1秒时间,超时刷新预览页面

Log: 页边距功能实现
Change-Id: Id172f9012fab3e970e4922bc746526fc6c71da69
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1330
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
zhangkai 796bedf294 fix: (打印预览)打印范围初始化,切换设备异常,代码规范修改
打印范围初始化,切换设备异常,纸张部分冲突,代码规范修改,删除不必要qdebug

Log: 打印范围初始化,切换设备异常,代码规范修改

Change-Id: I2dad2c70e560fdca1f19c4ab28825cd7e7182950
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1285
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:26 +08:00
chengyulong_cm 1d3b9c9564 feat: 实现预览跟随缩放显示
实现预览跟随缩放显示

Log: 当设置缩放时预览跟随缩放显示
Task: https://pms.uniontech.com/zentao/task-view-29934.html
Change-Id: Iea11039c5c25853f5882954bb1add42217bc23e3
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1249
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:25 +08:00
zhangkai 8a9f4ff17d fix: (打印预览)限制页码输入格式,获取打印页码,调用接口
获取打印页码,去重,调用预览接口

Log: 限制页码输入格式,获取打印页码,调用接口
Change-Id: If17da51f32d0e7eed522a802298167ca386505ac
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1246
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:00:11 +08:00
Lvpeilong 68b8d60311 fix(preview): 修改预览页面与调用端绘制顺序,避免之前页面数据失效导致异常
提前销毁预览页面对象,避免当调用对象重绘打印页面时预览页面可能刷新绘制导致无效打印数据访问的问题

Log: 修改预览页面与调用端绘制顺序,避免之前页面数据失效导致异常
Change-Id: I88ae224789e103af145b3b2aaedd6ade17f49a0c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1244
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:59:48 +08:00
chengyulong_cm c4fcc63dac feat: 实现预览跟随纸张大小
实现预览跟随纸张大小

Log: 当选择纸张时预览跟随纸张设置显示
Task: https://pms.uniontech.com/zentao/task-view-29931.html
Change-Id: I14329b8832a72aec212f5528f78c118e31d20608
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1236
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:59:48 +08:00
chengyulong_cm c03167cabb feat: 实现页面范围选择和翻页
实现页面范围选择和翻页

Log: 实现页面范围选择和翻页
Task: https://pms.uniontech.com/zentao/task-view-29930.html
Change-Id: Ibea0fb8ce897082b343c0b4f10dd14f45662c474
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1215
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:59:35 +08:00
Lvpeilong 2d62d18692 feat(preview): 调整预览数据流程及结构,优化耗时操作,添加预览打印接口
取消预处理目标打印数据结构,改为由显示页面实时绘制预览效果及配置响应
添加预览对象打印接口,并在预览打印时进行打印数据二次处理
减少打印对话框启动耗时

Log: 调整预览数据流程及结构,优化耗时操作,添加预览打印接口
Task: https://pms.uniontech.com/zentao/task-view-29935.html
Change-Id: Iac6d082b9f53ebeb7733323962b67bd9516147e3
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1200
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: chengyulong <chengyulong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:58:33 +08:00
linxun 37b63bdb1b fix: 修改部分属性细节问题和文案问题
修改打印边距设置,解决预览窗口对于打印机不支持彩色的情况下切换色彩不生效的问题,修改pdf保存文案,删除无用变量,增加对于自定义纸张大小的设置

Log: 修改部分属性细节问题和文案问题
Change-Id: I37e901c299cc1118c789458363031f347b48590d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1203
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:58:01 +08:00
zhangkai 82f532fae8 fix:(打印预览)根据设计及功能需求修改打印预览UI,各属性设置frame去除边框,调整icon大小
根据设计及功能需求修改打印预览UI,打印范围、页边距以及缩放,去除frame边框,调整高级设置icon大小

Log: 根据设计及功能需求修改打印预览UI,去除frame边框,调整高级设置icon大小

Change-Id: Ia4ef74e408dddbe038269827279aaa89cba68488
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1126
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:58:01 +08:00
chenbin d6385511bd fix: 修改跟随色彩选项部分代码,删除无用的变量
删除PageItem中无用的指针变量,使用栈变量代替

Log: 删除无用的指针变量,避免释放内存的操作
Change-Id: I5383abeadfa75df1cfb6c316a714ec211f56d322
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1157
Reviewed-by: chenbin <chenbin@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:58:01 +08:00
linxun 58335b36d6 fix: (打印预览)解决打印机切换到pdf格式输出时的卡顿问题
Description: (打印预览)pdf设置printname为空,避免取出printinfo时的卡顿

Log: (打印预览)解决打印机切换到pdf格式输出时的卡顿问题
Change-Id: I2e4c6c3fd919a5144bd0180291aeb72b61c6314c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1042
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:58:01 +08:00
chenbin d48a5f0eae feat: 横向纵向预览功能实现
添加横向纵向预览接口,实现横向纵向预览功能

Log: 添加横向纵向预览接
Task: https://pms.uniontech.com/zentao/task-view-29929.html
Change-Id: I4a8448144a4a01277eb44df47f1c2413e11ab977
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1030
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:58:01 +08:00
kongyunzhen 0d26640fc7 feat: 打印预览移除外部传入DPrinter接口
移除打印预览带DPrinter参数构造函数

Log: 调整打印预览窗口创建方式
Change-Id: Iec4cf6fc6a246c30f86340a8dc8c340f9fa2b053
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/967
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:57:51 +08:00
chenbin 39def09834 fix: 调整黑白绘制位置,避免程序切换黑白时出现的卡顿
重新实现接口,调整黑白绘制的位置到PageItem中

Log: 调整黑白绘制的位置,重新实现接口
Change-Id: I21e23eabdc40b1e1ce4b176816ca5cdd90279680
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/996
Reviewed-by: chenbin <chenbin@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:57:04 +08:00
chengyulong_cm 2a258f88df feat: 界面连接翻页信号和槽,实现翻页功能
DPrintPreviewWidget增加setCurrentPage函数,界面连接翻页信号和槽,实现翻页功能

Log: 界面连接翻页信号和槽,实现翻页功能
Task: https://pms.uniontech.com/zentao/task-view-29930.html
Change-Id: I3a7b5c2b000410a137a1dec3606ecda5dc9162d1
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/891
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:57:04 +08:00
zhangkai 50c1d0146b fix: (打印预览)布局间隔调整
Description: 部分布局间隔调整

Log: 部分布局间隔修改

Change-Id: Ib803a40cb4136d0a9ecc7fc3758ce515ef09de09
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/822
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:57:04 +08:00
linxun 5aa15ed7c5 Parent: e130961f (fix: (打印预览)修改注释规范,删除不必要的打印)
Author:     linxun <linxun@uniontech.com>
AuthorDate: 2020-07-29 11:01:49 +0800
Commit:     linxun <linxun@uniontech.com>
CommitDate: 2020-07-29 11:01:49 +0800

fix: (打印预览)修改保存pdf窗口点击取消直接打印和修改弹出窗口的文案

Description: (打印预览)判断打印文件名是否为空

Log: (打印预览)保存pdf文件到指定路径,取消保存连接实际打印机打印

Change-Id: I5109b71d35abbf8398672a25d89c080a31f8eac2
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/819
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:57:04 +08:00
chenbin 2cdbbf71a3 feat: 预览色彩选项实现
选择黑白预览为黑白,选择彩色时预览为彩色

Log: 预览色彩选项效果实现
Change-Id: I1b1c76f02c9a53441b6efe5314660d3379e80aff
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/857
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:57:04 +08:00
Lvpeilong 615be5548b feat(preview): 添加打印10页数据输出给打印预览调试效果
添加调用方widget界面作为打印内容,提供10页打印数据与页脚编号

Log: 添加打印10页数据输出给打印预览调试效果
Task: https://pms.uniontech.com/zentao/task-view-29935.html
Change-Id: I8d9dc7aee01d3ca62e0eeb5643cf6177daacfdd9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/845
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:57:00 +08:00
linxun 8c671eb4db fix: (打印预览)修改注释规范,删除不必要的打印
(打印预览)修改注释规范,删除不必要的打印

Log: (打印预览)修改注释规范,删除不必要的打印
Change-Id: I99841283aef84abda9728c18137503a19166e312
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/766
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:56:08 +08:00
Lvpeilong 4e891bdf95 feat(preview): 添加预览窗鼠标缩放、拖动等视图操作
添加鼠标滚轮缩放视图、鼠标拖拽移动视图域功能

Log: 添加预览窗鼠标缩放、拖动等视图操作
Task: https://pms.uniontech.com/zentao/task-view-29935.html
Change-Id: I6dada205540dcc0f9ee96c5b1da697ef01a91b92
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/761
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:54:20 +08:00
kongyunzhen ad2220507c fix: 将打印预览对外公有槽改为私有
将dprintpreviewdialog中的公有槽函数调整为私有槽函数

Log: 调整打印预览对外接口
Change-Id: Idc6ea6f238381d617ff23508027e64c645d32652
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/768
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:53:28 +08:00
chengyulong_cm 0a401f8591 feat: 添加设置页面范围、翻页功能
添加DPrintPreviewWidget的setPageRange、turnPageAble、showPage、turnFront、turnBack、turnBegin、turnEnd、pagesCount函数和DPrintPreviewWidgetPrivate的setPageRangeAll

Log: 添加设置页面范围、翻页功能
Task: https://pms.uniontech.com/zentao/task-view-29930.html

Change-Id: I0a92ed9e56a541a37904c1cf245dfbfb7de20d5b
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/759
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:51:08 +08:00
zhangkai 766f291884 fix: (打印预览)页边距控件属性设置及数据初始化
(打印预览)修改页边距控件属性设置及其数据初始化

Log: 页边距控件属性设置及数据初始化
Change-Id: I6a624e0b26e5ac958ce31c8b96bf7e512d312358
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/760
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:49:38 +08:00
linxun e108c0c87b fix: (打印预览)改变数字的宏定义以及对设置打印纸张为8k
Description: (打印预览)具体数字通过宏定义,打印纸张为8k通过设置自定义设置纸张大小

Log: (打印预览)纸张大小支持8k
Change-Id: Icc25b0745497f98e8d1cc756b4a2a1ae53b9680d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/755
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:48:53 +08:00
chengyulong_cm 8632df99fa fix: 添加头文件证书申明
添加添加头文件证书申明
Log: 添加头文件证书申明

Change-Id: I030d631b6edab3e1c4d20002e87fe745f0ef05d3
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/715
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:48:53 +08:00
kongyunzhen cad5e4f39c fix: 修复设置图标失败问题
Description: 移除icons.qrc中添加的浅色图标,将浅色图标加入dtk-icon-theme.qrc,更新QIcon::fromthem调用

Log: 修复设置图标失败问题
Change-Id: I015d2e61254b7cf952eda223efe304e3ac0a8f6e
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/728
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:48:53 +08:00
Lvpeilong f260788b89 fix(debian): 修复control文件格式问题
修复control文件格式错误导致自动打包失败的问题

Log: 修复control文件格式问题
Change-Id: Ibc3f20f38bf49056d2cd07873d66349935bb6d40
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/754
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: kongyunzhen <kongyunzhen@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 17:48:53 +08:00
Lvpeilong e2260c2ac3 feat(preview): 调整预览对象架构
调整页面对象定义位置,避免无畏的对象暴露

Log: 调整预览对象架构
Task: https://pms.uniontech.com/zentao/task-view-29935.html
Change-Id: Iff21e806382eee6d102deb13de96238a4f0ddca7
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/694
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: hudeng <hudeng@uniontech.com>
2020-08-28 17:48:53 +08:00
kongyunzhen 36b3db7e2b feat: 打印预览打印功能实现(原生方式)
完成打印预览ui绘制,完成打印机相关数据初始化,完成根据打印机切换更新界面数据状态,添加点击打印后的逻辑处理,根据所选打印方式输出到打印机和输出到pdf,对于输出到pdf提供保存路径选择

Log: 实现ui绘制和打印数据输出给打印机
Change-Id: I541324dbb2660dd5465769422b9ac3c126decbbe
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/622
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: zhangjide <zhangjide@uniontech.com>
2020-08-28 17:47:09 +08:00
Lvpeilong b0cd51dcc1 feat(preview): 添加自处理打印页面对象列表
添加自处理打印页面对象列表,用于预览框架页面内容处理

Log: 添加自处理打印页面对象列表
Task: https://pms.uniontech.com/zentao/task-view-29935.html
Change-Id: I59702652901bd360101c70dbb48a4c775fe366c8
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/627
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: zhangjide <zhangjide@uniontech.com>
2020-08-28 17:41:47 +08:00
Lvpeilong 7189684b11 feat(Depends): 添加cups依赖
添加cups依赖

Log: 添加cpus编译依赖
Change-Id: Ie12efae4318ef5dc199f67f90bc255aad07f5b74
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/565
Reviewed-by: lvpeilong <lvpeilong@uniontech.com>
Tested-by: hudeng <hudeng@uniontech.com>
2020-08-28 17:41:41 +08:00
zhangkai d818d77c97 feat(打印预览): 基础属性设置以及ui修改
基础属性设置以及ui修改

Log:
Change-Id: Iaf9cfedc57b9c6139d0e846b4885a30227bc972f
2020-08-28 17:34:23 +08:00
Lvpeilong c145828f98 feat(preview): 预览图形视图框架--打印对象重写(获取预览页面)
添加预览Widget对象,添加DPrinter对象

Log: 添加部分测试代码
Task: https://pms.uniontech.com/zentao/task-view-29936.html
Change-Id: I60efb4634c1b2fadddd5aa1982e5b81d6392b41d
2020-08-28 17:32:20 +08:00
kongyunzhen 64f7b7202f chore: 使用内部保存的printer来获取打印机相关数据
使用内部保存的printer来获取打印机相关数据

Log:
Change-Id: I03a61e9bdf1fe4e20821f5b2de3f5e1adc6bb24a
2020-08-28 17:22:24 +08:00
zhangkai 1b603f6545 feat: 打印预览ui完善
打印预览ui的调整以及完善

Log: 打印预览UI调整
Change-Id: I1feaf4170fa57f5e0f174fb5584930cea8f92731
2020-08-28 17:21:02 +08:00
kongyunzhen 1237e1c3bf feat: 打印预览获取打印机设备信息,预览窗口构造方式修改
打印预览获取打印机设备信息,预览窗口构造方式修改

Log: 打预览获取设备信息
Change-Id: I773b871c1339e4f6dc2cfd755cc8945098c8bebc
2020-08-28 17:15:16 +08:00
kongyunzhen 156a4dc950 chore: 打印预览图标资源添加
打印预览图标资源添加

Log: 添加图标资源
Change-Id: I765e04c8de2dae5a041364df41e173e7882262ca
2020-08-28 17:09:11 +08:00
kongyunzhen 159e5c8afe feat: ui高级设置界面开发
高级设置界面部分UI实现

Log: 新增打印预览高级设计界面
Change-Id: Ib7aee1fef24cf2b790ff08de0556c3aab5fb9ca0
2020-08-28 17:06:00 +08:00
kongyunzhen 4ef86bc11d feat: ui主题框架创建,左侧控件添加布局调整
Description: ui主题框架创建,左侧控件添加布局调整

Log: 添加打印预览基础代码
Change-Id: Ieb7d3bb5308e569891fe5c24e293aa7abe240a90
2020-08-28 17:00:34 +08:00
ck 959f151606 fix: 将移除的dregionmonitor改成调用gui的类
由于dde-desktop使用了此类,直接移除会导致桌面低版本崩溃,因此做一个适配(调用gui中的同名类)

Log: 修复升级dtkwidget后桌面黑屏的问题
Change-Id: Ib3ef1c4b831c0f36b82c8af970f98ad5a9e1f766
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2812
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-27 17:33:50 +08:00
ck 6725bfae04 fix: wayland下dialog应用图标在两个标题栏均显示
titlebar嵌入式默认是false,加一个判断如果非dxcb则默认是true

Log: 修复音乐弹出的提示框显示两个图标的问题
Bug: https://pms.uniontech.com/zentao/task-view-35259.html
Change-Id: I6a698c5ed7ff90553dcc12c40726fdbb4a340aaa
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2785
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-27 14:25:36 +08:00
ck e02389745e fix: settingsdialog字体放大后radiobutton截断
radiobutton设置了fixedheight导致字体放大后截断,改为minimumHeight

Log: 修复设置对话框的部分控件放大字体后出现截断的问题
Bug: https://pms.uniontech.com/zentao/bug-view-36825.html
Change-Id: Icfba31d54b44b354dc596deb1dde1b5cae35c971
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2694
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-26 14:26:48 +08:00
sunkang 27ccb10293 feat: DIconButton添加设置圆形按钮的接口
添加了一个设置圆形button的接口,圆形button的属性与普通的DIconButton属性一致,
除了外观和focusRect是圆形

Log: 添加了一个设置圆形button的接口
Task: https://pms.uniontech.com/zentao/task-view-33616.html
Change-Id: I01b0e34112fba20bb2c337fc0558a8f6907bc9b9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2570
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-25 14:02:28 +08:00
chengyulong_cm 51f4581575 fix: 更新debian/api.json文件
更新debian/api.json文件

Log: 更新debian/api.json文件
Change-Id: I764696f603de0b6c9314c1f0f6334462cb57af2d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2566
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-21 10:50:45 +08:00
zccrs c0a388f560 refactor: remove DRegionMonitor
先前已经将DRegionMonitor类的实现移动到了dtkgui库
dtkwidget中的类已经被标记为废弃,此类引入了对
libdframeworkdbus2库的依赖,因此直接将其移除以减
轻dtkwidget对其他库的依赖

Log:

Change-Id: Ic4c426261d33a9620e10fc473df13a4418bd1d1f
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2406
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-19 17:05:52 +08:00
WangPeng a28fae88ca fix: 修复Dtabbar拖拽时传递了拖拽的index而不是移动后的index
QMetaObject::invokeMethod(this, "startDrag", Qt::QueuedConnection, Q_ARG(int, d->pressedIndex));
该函数于事件循环结束后调用,d->pressedIndex在事件中已经更新,然传入参数非更新后的参数,故去除此函数参数

Log: 修复Dtabbar拖拽问题
Task: https://pms.uniontech.com/zentao/task-view-34370.html
Change-Id: I2b5e988f2089e1792abab68e42305dd6dd647e61
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2246
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-19 16:05:07 +08:00
chenbin c2116686f4 fix: 修复DDialog对话框切换系统主题,标题和信息文本内容颜色不改变的问题
添加切换系统主题的信号槽,由于标题颜色和信息颜色在标准调色板上做了修改,因此切换主题后颜色修改只能手动进行

Log: 修复DDialog切换系统深浅色主题后,标题和信息文本颜色不改变的问题
Bug: https://pms.uniontech.com/zentao/bug-view-42369.html
Change-Id: I650316404c4c8f8cb5120f796158cb34c00e3ecf
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2298
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-18 17:34:40 +08:00
zccrs f38157524f refactor: remove DSvgRenderer
这个类已经迁移到了dtkgui,它本身引入了其他库的依赖
为了优化使用到这个类的应用,移除这个已经废弃的类会
带来不错的收益

Change-Id: I5cf00a254f9240426582a9c6f7169793d977e635
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2140
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-17 15:26:41 +08:00
chenbin 10a307ad88 fix: 修复DViewItemAction设置可视化状态,但是添加的widget不生效的问题
修复将DViewItem设置可视化为false的时候,通过setWidget添加的widget仍正常显示的问题

Log: 修复DListView中Action设置widget的可视化问题
Change-Id: I6fdc76ff465010b287d050f36c501458234891a2
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/2122
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-17 11:09:01 +08:00
WangPeng 374791928d feat: 调整DCommandlinkbutton控件绘制空间,绘制focus()状态
调整DCommandlinkbutton控件绘制空间,绘制focus()状态

Log: 调整DCommandlinkbutton控件空间,绘制focus()状态
Task: https://pms.uniontech.com/zentao/task-view-32423.html
Change-Id: I0922d55810a70cab5b132390dbe4f7f24e0ad03a
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1863
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-17 09:20:19 +08:00
chenbin 3623b8113a fix: DButtonBox被Tab键选中后,支持左右键选择
修改DButtonBoxButton的键盘事件,支持在焦点状态左右键切换按钮

Log: DButtonBox被Tab键选中后,支持左右键选择
Task: https://pms.uniontech.com/zentao/task-view-32423.html
Change-Id: I0c786dfb033e2fa1fa150103c9b2af5a1731b386
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1691
Reviewed-by: chenbin <chenbin@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-12 18:21:29 +08:00
sunkang 02d8a5568a fix:修复DSwitchButton无FocusRect的问题
给DSwitchButton添加FocusRect,由于之前的实现没有预留绘制focusRect的区域,
当前实现在保持控件可视区域的尺寸下,预留了绘制focusRect的区域

Log: 给SwitchButton开关按钮添加FocusRect

Change-Id: I2688a99250a173432a3ac1d32437f42527c6190e
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1293
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-12 11:22:31 +08:00
kongyunzhen 0a1ee34a9b fix: 修复DDrawer/DBaseExpand初始状态占用全部可用空间,显示正常大小后控件坐标改变问题
修改DDrawer/DBaseExpand的QSizePolicy使控件初始保持正常大小,防止控件占用全部可用空间,设置expanding恢复正常大小后由于大小改变导致位置改变

Log: 修复DDrawer/DBaseExpand初始状态占用全部可用空间,显示正常大小后控件坐标改变问题
Change-Id: Ieedef1b435bd1603542ef7d25b3ce024ec622ff5
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1391
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-11 19:13:26 +08:00
ck 52e571d829 feat: add rpm spec
行业板打rpm包需要添加spec文件

Log: 支持rpm打包构建
Change-Id: I1a4bf649733020cd7e76f907c13bf22753c49544
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1525
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-11 15:07:42 +08:00
WangPeng bdca9efd8f fix: 添加dcrumbedit渐变样式
添加dcrumbedit渐变样式,对其他功能无影响

Log: 添加dcrumbedit渐变样式
Change-Id: I10741df81d5ada6d4441038600af15feac7ca90b
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/584
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-11 14:49:06 +08:00
Liu Yang 5ba06d26d7 chore: 新增翻译文件
新增3个 ts 文件

Log: 发布新版本翻译有更新,需要拉取最新翻译

Change-Id: Ic128d34b77b1aaba329b911234bee65fbce543c8
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1427
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-11 13:11:55 +08:00
WangPeng a917f33a22 fix: DKeySequenceEdit快捷键编辑框,增加tab键选中框
DKeySequenceEdit快捷键编辑框,增加tab键选中框

Log: DKeySequenceEdit快捷键编辑框,增加tab键选中框
Task: https://pms.uniontech.com/zentao/task-view-32423.html
Change-Id: I0644711bbe53d6794df1e82c0e168178cab2596f
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1488
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-11 09:10:14 +08:00
ck 33ad113423 fix: titlebar setTitle crashed
修复某些情况下设置标题崩溃的问题,指针未判空

Log: 修复wayland下设置标题崩溃的问题
Change-Id: I9c76da3ad138a6d185150022776348fbff70cf13
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1493
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-10 20:27:06 +08:00
ck 019e9748d6 fix: wayland下控制中心searchedit不显示
由于searchedit添加到centerwidget(titleLable)中,embeMode下会导致不显示,此处改为只清空文字。

Log: 修复wayland下控制中心不显示searchedit的问题
Task: https://pms.uniontech.com/zentao/task-view-31919.html
Change-Id: I37142028c730ae4e3fbdd86730a6322d3289b37c
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1438
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-10 16:02:22 +08:00
WangPeng 71446b22fb feat: 添加了一个可搜索的ComboBox控件
添加了一个可搜索的ComboBox控件,对其他功能无影响

Log: 添加了一个可搜索的ComboBox控件
Change-Id: Ib2c4255df8b4c10a4cf50659ed18a0019df3e3c9
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1193
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-10 14:24:08 +08:00
kongyunzhen cfdfe761df fix: 修复DPageIndicator初始状态不可见问题
设置默认pagecount、currentPage、secondaryPointColor及控件最小高度,添加翻页安全检测

Log: 修复DPageIndicator初始状态不可见问题
Change-Id: If61386a6ad499925965c31685f31234144d4d805
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1416
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-10 14:04:40 +08:00
WangPeng c6ff437a8b feat: DDoubleSpinBox DSpinBox函数同步
DDoubleSpinBox DSpinBox函数同步

Log: DDoubleSpinBox DSpinBox函数同步
Change-Id: I6d87f6f0fb95306dcd893576e632b4b0fb1baca4
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/771
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-10 13:25:25 +08:00
sunkang 4750dbfeca fix: 处理在锁屏状态下可能出现的播放控件和播放状态不一致的问题
处理在锁屏界面,播放状态为暂停,实际音乐在播放的问题

Log: 处理在锁屏界面,播放状态为暂停,实际音乐在播放的问题
Task: https://pms.uniontech.com/zentao/task-view-31751.html

Change-Id: Ia28eec45286a6b08c3f1a76b779eca29653f4f64
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1324
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-07 16:29:38 +08:00
kongyunzhen ad9f1b4491 fix: 修复DDrawer/DBaseExpand设置分割线可见不生效问题
Description: 去除对分割线设置QFrame::NoFrame,分割线实际使用的是QFrame HLine设置NoFrame后不可见

Log: 修复DDrawer/DBaseExpand设置分割线可见不生效问题
Change-Id: I450f9dc9ce47dd8bb7b5daff707a6ecefac845a4
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1383
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-06 16:24:07 +08:00
ck e34f7e49e9 feat: add left/right iconbutton clicked signal
添加 DSlider 左右侧按钮点击信号

Log: DSlider两侧的iconbutton点击时发送信号
Change-Id: I08abedba3113a8a614cb6fd33650ae05a740474d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1333
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-06 10:40:16 +08:00
ck 143a41b956 chore: 移除multimediawidgets依赖
去掉multimediawidgets依赖。

Log: 移除multimediawidgets依赖
Change-Id: I0553de4c86a4bba4723d4672066585287296277a
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/722
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-04 13:24:02 +08:00
chenbin 1408b3bef8 fix: 减少example部分警告
去除未使用的头文件和已经废弃的类,减少编译警告

Log: 减少example编译警告
Change-Id: Ia990faa7b95b576b88337992b991e13e4e73de1d
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/921
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: sunkang <sunkang@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-03 10:04:01 +08:00
Felix Yan c8c558688b chore: correct a typo
注释中单词拼写错误修改

Log: 修改注释单词拼写错误
Change-Id: I331829ec25390e81809e31b2e5691774b4879eb0
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/1046
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-07-31 17:24:32 +08:00
WangPeng eae36805fe feat: 添加Dtitlebar退出全屏按钮
添加Dtitlebar退出全屏按钮

Log: 添加Dtitlebar退出全屏按钮
Change-Id: Ieb32fa493849b99e9c24a6f828f69396608cb231
Reviewed-on: http://gerrit.uniontech.com/c/dtkwidget/+/882
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-07-30 14:00:18 +08:00
ck 8e4398e976 fix: DApplication::loadDXcbPlugin 标记废弃
在DDE桌面环境下,不调用此函数也会默认使用dxcb插件,且使用此函数强制指定加载dxcb会导致在和wayland环境不兼容,综上所述,这个函数已经没有用途了

Log: 将废弃的接口标记为D_DECL_DEPRECATED
Change-Id: I4a2a5b51c80a0fd0119feb90bdfb317c3ef686cd
2020-07-22 09:29:43 +08:00
王鹏 5e11a2470d fix: 修改Dtoolbutton风格样式
修改Dtoolbutton图标文字风格样式,对其他功能无影响。

Log: 修改Dtoolbutton风格样式
2020-07-16 16:49:39 +08:00
xmuli 906ee9eb86 feat: 修改标题栏的关闭按钮 hover 的颜色
修改 ddialogCloseButton 关闭按钮的颜色

Log: 修改按钮背景颜色
Bug:https://pms.uniontech.com/zentao/bug-view-12033.html
2020-07-16 16:36:34 +08:00
xmuli 3bc70d1d62
feat: 移除已经不存在的两个类
移除已经不存在的两个类 class QHorizontalSlider, class QVerticalSlider;

Log: 移除不存在的class
2020-07-16 14:01:29 +08:00
xmuli 3c948fc237
feat: QSizeGrip 已经重绘画,在此名别名DSizeGrip
命名别名为 DSizeGrip

Log: 规范控件的名称
2020-07-16 13:48:37 +08:00
张文耕 5b125bc37f feat: 修改 ddialog 的标题和内容字体
修改标题和内容字体的大小样式

Log: 修改标题字体样式大小和粗体程度
2020-07-15 20:07:42 +08:00
ck 4439e6836c fix: QTest compile error
将 notify 方法改为为 public ,修复 QTest 会出错
Log: 修复添加单元测试报错的问题
2020-07-14 20:18:21 +08:00
sunkang 8a6f9c6a3b fix: 修复DLineEdit和DTextEdit使用快捷键ctrl+a在语音功能上异常的问题
迅飞语音在当前方式下使用语音功能,需要使用QClipboard::Selection获取选中文本,
在Qt默认方式下在ctrl+a全选是没有这个功能的,现在添加了这个处理

Log: 修复使用快捷键ctrl+a全选使用语音功能异常的问题
2020-07-14 17:28:57 +08:00
chenbin b0e6eb69e2 fix: 修复关于页面字体显示不全的bug
修复关于页面放大字体,文字和图片显示不全的bug

Log: 修复关于页面放大字体,文字和图片显示不全的bug
Bug: https://pms.uniontech.com/zentao/bug-view-21602.html
2020-07-14 15:53:54 +08:00
张文耕 91befea3a3 fix: 修复 dslider 的样式错误
修复 dslider 在有刻度的时候, 应该为尖角滑块

Log: 修复 dslider 的样式错误
2020-07-13 17:04:54 +08:00
陈斌 922d73afaa fix: 整理Examples代码,去除部分警告,增加布局
去除Exmaples中的部分警告,使用布局整理界面

Log: 去除部分代码编译警告,不影响功能
2020-07-13 17:01:00 +08:00
王鹏 9b11442c46 fix: 快捷键显示问题修复
快捷键显示问题修复,对其他功能无影响。

Log: 快捷键显示问题修复
Bug: https://pms.uniontech.com/zentao/bug-view-37328.html
2020-07-13 14:11:49 +08:00
ck bcb2c1c6aa fix: titlebar miss on wayland platform
在wayland上(非dxcbplatform)对话框无标题栏

Log: 修复在非dxcb环境下对话框无标题的问题
Task: https://pms.uniontech.com/zentao/task-view-29223.html
2020-07-09 17:21:22 +08:00
Felix Yan f8f6428e25 fix: compatibility with Qt 5.15+ 2020-07-07 18:12:49 +08:00
王鹏 b75430d02d fix: 通过属性值控制文字对齐
通过属性值控制文字对齐,对其他功能无影响

Log: 通过属性值控制文字对齐
2020-07-07 17:38:15 +08:00
王鹏 d4a33b3f96 fix: 修改darrowrectangle左右箭头绘制样式
修改darrowrectangle左右箭头绘制样式,对其他功能无影响。

Log: 修改darrowrectangle左右箭头绘制样式
Bug: https://pms.uniontech.com/zentao/bug-view-36016.html
2020-07-07 11:18:19 +08:00
王鹏 7a7a442478 fix: 添加Dtabbar圆形图标接口
添加Dtabbar圆形图标接口,对其他功能无影响

Log: 添加Dtabbar圆形图标接口
Bug: https://pms.uniontech.com/zentao/bug-view-35653.html
2020-07-06 14:33:41 +08:00
王鹏 5909b4b19f fix: 设置里的快捷键与快捷键预览不一致
文案替换后,没有将替换后的新文案返回。对其他功能无影响。

Log: 快捷键与快捷键预览不一致
Bug: https://pms.uniontech.com/zentao/bug-view-36196.html
2020-07-06 09:56:02 +08:00
王鹏 2d80d41c71 fix: 对Dtabbar函数添加const
对Dtabbar函数添加const

Log: 对Dtabbar函数添加const
2020-07-06 09:19:11 +08:00
ck ece9a2da68 fix: DSearchEdit no context menu
给安装器禁用菜单时加的判断导致DSearchEdit没有菜单了

Log: 修复DSearchEdit没有右键菜单的问题
2020-07-03 20:56:31 +08:00
HeGuolun bf52f8c62b fix: 窗口菜单栏主题设置无法改变窗口管理器主题显示
目前临时解决方案是在KelvinU中去掉主题菜单的显示。

Log: 主题菜单切换有问题,影响用户体验。
Task: https://pms.uniontech.com/zentao/task-view-28129.html
2020-07-03 20:33:45 +08:00
ck 40307c0ccf fix: 加入symbols文件后有的架构打包失败
文件名改为 symbols.amd64 只在amd64 平台检查abi兼容

Log: 修复加入symbols文件后有的平台打包失败
2020-07-02 18:26:56 +08:00
sunkang 8484fe744a fix: 屏蔽掉DSearchEdit的语音输入功能
产品经理要求去掉DSearchEdit的语音输入功能

Log: 去掉DSearchEdit的语音输入功能
Task: https://pms.uniontech.com/zentao/task-view-28420.html
2020-07-01 16:47:04 +08:00
张文耕 ba29f4d1d8 fix: 修复 dsetttingdialg 的左右两侧不同步滚动的问题
修复"设置" 左侧点击和右侧滚动对对应位置的 bug

Log: 修复一个"设置控件"滚动不同步的 bug
Bug: https://pms.uniontech.com/zentao/bug-view-35907.html
2020-07-01 11:30:14 +08:00
王鹏 26c60884d6 fix: 添加tab文字对齐接口
添加tab文字对齐接口,对其他功能无影响

Log: 添加tab文字对齐接口
Bug: https://pms.uniontech.com/zentao/bug-view-33863.html
2020-06-30 11:30:17 +08:00
张文耕 898ab78765 feat: 提供 DSettingsDialog 接口, 能够设置标题的 Icon
新添加一个接口, 用来自定义 "dsettingsdialog" 控件的标题栏的 QIcon
 Log: 添加一个接口, 用来自定义图标的样子
 Task: https://pms.uniontech.com/zentao/task-view-27640.html
2020-06-30 11:28:07 +08:00
王鹏 918bff00a6 fix: 修复数字键盘的“+” 显示成Num
字符串中有“++”,字符串分割后额外加入一个“+”,对其他功能无影响

Log: 修复数字键盘的“+” 显示成Num
Bug: https://pms.uniontech.com/zentao/bug-view-35446.html
2020-06-30 11:24:31 +08:00
lyym 2feb7c3bdf abigail: 集成dabi的json文件到包中
通过json文件来对比检查EXPORT_SYMBOL的函数是否发生改变,在debian目录加入了之
前的版本生成的json文件用来和基于当前生成的做对比

Log: 加入用以对比检查EXPORT_SYMBOL的函数是否发生改变的json文件
Task: https://pms.uniontech.com/zentao/task-view-28032.html
2020-06-28 17:48:58 +08:00
wangzhixuan 570c11f72f fix: DTabBar < 按钮添加objectName
出于上层应用使用考虑,对<>两个按钮分别添加objectName,方便上层应用使用,自定义菜单功能。

Log: 修改DTabBar <>按钮的objectName数据
Bug: https://pms.uniontech.com/zentao/bug-view-34765.html
Issue:

Description:

Log:

link:
2020-06-24 17:03:48 +08:00
刘阳 39615b9531 fix: 析构中添加判断
Description: 在DTabBarPrivate 的析构函数中添加判断,区分需要delete 和不需要 delete 的情况;
Log: 修复析构时导致的异常结束;
2020-06-24 15:49:14 +08:00
sunkang 3de7c95c0f fix: 优化DSearchEdit的初始化速度
控件内部之前处理dbus的时候没有使用异步的方式,导致控件在特定机器上初始化速度有点慢

Log: 优化了DSearchEdit控件的加载速度
Bug: https://pms.uniontech.com/zentao/bug-view-35051.html
2020-06-24 14:55:22 +08:00
xmuli 462f4aa22c feat: 修改 dsetttingdialg 的多级标题样式
修改标题栏的"设置"中间的多个标题的字体大小和宽度,以及间隔

Log: 修改"dsetttingdialg" 的样式, 变得更加美观
2020-06-23 20:12:51 +08:00
ck 07bda352a4 fix: dkeysequenceedit replace "Meta" to "Super"
Meta键界面显示改为Super

Log: 和控制中心保持一直,设置中快捷键的Meta显示为Super
Bug: https://pms.uniontech.com/zentao/bug-view-34627.html
2020-06-23 19:46:32 +08:00
刘阳 87cd6c25ae fix: 设置对话框滑块滚动时修改判断条件;
Description: 设置对话框滚动时到最上端时,value 的值为0,此时导航区域应该选中第一列;
Log: 修改归档管理器设置界面移到最下方,再次移上去,左侧导航栏没有回到上面;
Task: https://pms.uniontech.com/zentao/bug-view-34579.html
2020-06-23 14:51:00 +08:00
Felix Yan 46d58d551a
chore: correct multiple typos 2020-06-22 16:58:50 +08:00
Felix Yan c2184adac8 Fix build failures under Qt 5.15+ 2020-06-22 16:40:52 +08:00
chengyulong_cm 3fcd231382 docs: Add symbols file
增加ABI兼容符号列表文件
Log: 增加ABI兼容支持
2020-06-22 10:22:54 +08:00
刘阳 3cd5fd1023 fix: 添加析构函数释放内存
Description: 在DTabBarPrivate 中定义的变量 stretch,可能存在没有设置父类的情况,不能被 qt 的元对象系统析构,需要自己判断手动析构;
Log: 修复 deepin-reader 项目中报告的的 DTabBar 存在内存泄露问题
Task: https://pms.uniontech.com/zentao/bug-view-23174.html
2020-06-20 10:58:55 +08:00
ck 74e51664d7 fix: loadTranslator warnning when language is english
由于英语不需要翻译,所以不会存在一个xxx_en_Us.qm文件,
报错时没有加判断。

Log: 修复系统语言时英文时启动应用会打印一个找不到翻译文件的日志
Bug: https://pms.uniontech.com/zentao/bug-view-34005.html
2020-06-19 14:00:10 +08:00
sunkang f50f350c82 fix: 修复DLineEdit的右键菜单设置NoContextMenu无效的bug
因为缺少处理NoContextMenu的处理,导致应用端使用DLineEdit使用NoContextMent不能禁用菜单的bug

Log: 修复输入框右键菜单不能禁用的问题
Bug: https://pms.uniontech.com/zentao/bug-view-29618.html
2020-06-19 09:05:33 +08:00
ck f598fbf292 fix: moving-tab closeButton rect not right
上一个提交导致关闭按钮位置异常。
2020-06-18 17:06:04 +08:00
ck 4978267368 fix: moving-tab text rect not right
默认绘制标签时强制文字居中,但在拖动时没有将rightButtonSize置为0,导致文字区域计算变小向左移动

Log: 修复拖动带关闭按钮的标签,标签上的字会改变位置
Bug: https://pms.uniontech.com/zentao/bug-view-30342.html
2020-06-18 11:34:22 +08:00
孙康 c03dea5116 fix: 修复锁屏状态下音乐播放控件焦点异常的问题
原来的实现是使用两个控件,一个播放,一个暂停,这样在显示与隐藏的
时候会出现焦点异常的问题,现在在保持接口兼容的情况下,修改内部实现,
用一个按钮实现播放和暂停.

Log: 修复锁屏状态下音乐播放按钮出现的焦点异常的问题
Task: https://pms.uniontech.com/zentao/task-view-26292.html
2020-06-17 15:35:25 +08:00
ck bca7b599cb fix: ensureWindowHandle create handle failed
kdevelop Ctrl+N 打开新标签,标签右键崩溃。ensureWindowHandle时handle为空,
但是Qt::WA_NativeWindow这个标志为为true,导致无法通过setAttribute创建handle

Log: 修复kdevelop标签右键崩溃的问题
Bug: https://pms.uniontech.com/zentao/bug-view-31204.html
2020-06-16 16:08:36 +08:00
刘阳 d841b72237 fix: bug-30349 lazy init DFileChooserEdit
原来构造DFileChooserEdit时会new QFileDialog较为耗时,改成调用接口或者具体显示时再去new,
只是将耗时操作挪到后面

Log: 修复应用初始化(多个)DFileChooserEdit时造成卡顿的问题
Bug: https://pms.uniontech.com/zentao/bug-view-30349.html
2020-06-15 19:16:04 +08:00
ck fccb654d7e fix: bug-20506 DFloatingMessage close icon too small
默认关闭按钮大小时20*20,设计认为过小,特别是高分屏时,所以改成32*32

Log: 修复DFloatingMessage 常驻消息的关闭按钮图标过小的问题
Bug: https://pms.uniontech.com/zentao/bug-view-20506.html
2020-06-15 14:19:50 +08:00
与子偕臧 a19e3aecc2
fix: (bug 21577) 系统放大字体后还原,编辑器标签的边框大小未还原 (#51) 2020-06-12 20:44:43 +08:00
chengyulong_cm 7061d19e6e fix: 消除编译警告 2020-06-11 15:39:41 +08:00
chengyulong_cm 667674b1f1 fix: bug-31367 修改DSettingsDialog的DSpinBox样式为加减样式
修改DSpinBox按钮顺序,将原来“下调按钮在上调按钮之前”修改为“上调按钮在下调按钮之前”,通过修改ChameleonStyle::subControlRect返回的上下调按钮位置来实现。

Log: fix bug31367,调整DSpinBox与设计一致
Bug: https://pms.uniontech.com/zentao/bug-view-31367.html
2020-06-11 14:38:19 +08:00
王鹏 40121e45b0 fix: bug 27976 移动标签页时,会在原来的位置出现悬浮tips 2020-06-09 16:57:47 +08:00
ck 3f7c5891d2 docs: 移除造成误解的注释 2020-06-09 09:11:06 +08:00
孙康 f31137faf1 fix: task-25408,修复DMPRISControl控件的聚焦问题 2020-06-08 09:26:15 +08:00
刘阳 a56ab79520 fix: bug-30335, DTitlebar don't move when mouse press not on DTiblebar
bug-30335 【X86】【桌面专业版】【浏览器】【5.1.0.3.2-1】拖动标签页的+号,浏览器会窗口化
2020-06-04 15:32:30 +08:00
王鹏 19d4afe311 fix: bug:23312 无图标 2020-06-03 17:09:43 +08:00
ck e32be33510 fix: DIpv4LineEdit 样式和行为微调
1.ip控件里面的lineedit不显示焦点框
2.修复文字叠加的问题(this->text()会和.叠加),setAutoFillBackground/setBackgroundRole/resize
3.既然单个edit不显示菜单那么整体也不显示菜单(copy && selectall)
4.shlft+left/right 时选中当前的edit文字
5.copy/cut时只有全选才copy/cut整体文字,否则只对当前edit有效
2020-06-01 18:05:34 +08:00
chengyulong_cm b2198a5a3c fix: bug-27897 alert message hide timer not restart
重新设置警告信息时刷新timer
2020-05-30 13:00:54 +08:00
ck fc4229da7d fix: bug-26491 start app quickly cursor never restored
快速打开多个视频大概率出现所有的dtk应用光标都是waitcursor
2020-05-28 09:16:02 +08:00
刘阳 582ac9e8e5 fix: bug-28398, settingsDialog content use addRow instead of setWidget
bug-28398 属性设置对话框大小显示不对
2020-05-27 17:20:24 +08:00
刘阳 70c0c4c085 fix: bug-26172, DKeySequenceEdit use QLineEdit::keyPressEvent while DKeySequenceEdit edit finish
bug-26172 【终端】【5.2.1+r253+gf5d0d2b】自定义命令弹框中,光标在快捷键输入框,按enter键未执行保存
2020-05-27 11:09:09 +08:00
刘阳 ec0b1a7281 fix: bug-24718, DArrowRectangle exist memory leak while use the class
bug-24718 继承DArrowRectangle,导致内存泄漏
2020-05-27 09:36:47 +08:00
王鹏 7fc53ccc87 feat:目录规范 2020-05-27 09:36:21 +08:00
sunkang badd9bcb2a feat: 添加语音朗读和翻译的控制函数 2020-05-25 10:03:38 +08:00
xmuli ee2fbd8976 docs: add function comments to DMessageManager 2020-05-21 11:15:41 +08:00
xmuli 659cb9ce5a docs: add function comments to dswitchbutton 2020-05-21 11:15:18 +08:00
xmuli 317a85d448 docs: add function comments to dslider 2020-05-21 11:14:39 +08:00
xmuli 8bc37cbb63 docs: add function comments to Dlabel 2020-05-21 11:13:39 +08:00
ck e2ce84baa4 fix: bug-26491 application override cursor
task-view-22626 连续打开2个视频,鼠标形状维持圆形10秒左右
修改timer时间,析构时清空。
2020-05-20 13:04:16 +08:00
ck e93d7cf6b7 fix: bug-25253 optionButton not udpate after menu exec
部分应用如文管,终端在弹出菜单关闭后,菜单按钮是按下的状态(未重绘)
2020-05-19 17:57:06 +08:00
wangzhixuan 08c3ddc3dc fix: use DSettingsDialog. app exit, memory leak.
当程序中使用了DSettinsDialog,程序退出的时候 会有内存泄露的问题。
2020-05-18 14:43:16 +08:00
ck 944ce39e58 fix: buttons on titlebar show kwin menu
标题栏默认按钮上右键不应该显示窗口管理器菜单
2020-05-14 13:48:50 +08:00
王鹏 1392093935 fix: bug 23387 spinbox样式异常 2020-05-14 10:30:53 +08:00
ck eb438c6b55 fix: bug-17474 close button missing in wayland
wayland 上调用hide()再show()之后关闭按钮消失。
注:只暂时解决了按钮消失的问题,调用hide&show之后标题窗管菜单的关闭disbale和dock菜单无法关闭还未解决。
2020-05-12 16:52:47 +08:00
ck b5cb881222 fix: bug-17474 setMaskAlph not work if hasBlurWindow is false
17474 klu wayland 下setMaskAlpha 无效,应该判断是否支持混成而非是否支持背景模糊
2020-05-11 13:33:59 +08:00
ck 178512e612 feat: donot call qt_blurImage if blurRadius<=0 2020-05-08 15:20:09 +08:00
ck 07bd980ceb fix: bug-10473 donot call qt_blurImage if blurRadius<=0 2020-05-08 15:11:59 +08:00
chengyulong_cm d823b67616 fix: bug23577,DSettingsDialog will be reset while press 'Enter' 2020-04-29 14:36:16 +08:00
王鹏 3f3440f2f6 feat: 添加ObjectName 2020-04-29 14:27:11 +08:00
王鹏 aba4c5bce7 feat: 调整Dtabbar UI样式 2020-04-29 13:34:11 +08:00
王鹏 37c631a971 feat: 快捷键随活动色变化 2020-04-29 13:32:57 +08:00
刘阳 2f0870524b fix: bug-21741, DKeySequenceEdit DKeyWidget set DTipLabel minimun height is 24 pixmap
bug-21741 【编辑器】【5.6.6+r6+gca79531】【UI】编辑器设置页面中快捷键的显示较扁长
2020-04-29 10:55:36 +08:00
刘阳 fe6797e5e7 feat: DSettingsDialog add interface for scroll to group 2020-04-28 15:30:12 +08:00
王鹏 0f5fb5d1ab feat: 添加滑块划过位置无活动色 2020-04-27 14:30:00 +08:00
王鹏 2fccd96fe5 feat: 设置占位符文本内容 2020-04-27 13:52:44 +08:00
王鹏 ef9c21b937 feat: 添加tabbar 按钮圆角样式 2020-04-27 11:16:23 +08:00
chengyulong_cm da386d6bc7 fix: bug18561,press 'F1' can't open help window while open two dde-file-manager windows 2020-04-26 14:37:02 +08:00
zhangwengeng 3d1d83f485 license: switch to LGPLv3 license 2020-04-24 16:17:37 +08:00
ck fb0410d409 fix: bug-18362 DTabBar move tab failed
18362 【编辑器】【5.6.3+r7+g4263c5e】移动标签页到另一个窗口出现移动不过去,标签页反弹的情况
2020-04-24 10:51:03 +08:00
刘阳 a59b4a771c fix: bug-18903, settingsDialog adjust scrollArea right margin
bug-18903 【终端】【5.2.1+r0+g19a44e4】设置界面滚动条位置显示错误
2020-04-23 16:56:28 +08:00
ck 9b42bee76d fix: bug-20975 DSettingsDialog with DButtonBox reset crash
20975 【终端】【5.2.1+r114+gc156827】【终修改引入】设置光标风格为_或者|,点击恢复默认终端闪退
原因:DButtonBox::buttonToggled 和 DSettingsOption::valueChanged 相互触发。改为buttonClicked信号。
2020-04-23 11:05:39 +08:00
ck 7fda599e17 fix: disabled DlineEdit show context menu
被禁用的DlineEdit右键显示菜单。
没有添加音乐的deepin-music是禁用的顶部SearchEdit可以粘贴。。
2020-04-23 09:37:51 +08:00
chengyulong_cm 7d35a289bd fix: bug9566,dissable debug log 2020-04-21 16:11:20 +08:00
ck c7642f7d77 feat: add dalertcontrol to control alert message
1.添加控制现实警告信息的工具类,使得可输入的编辑框方便显示告警颜色和信息。如editable的combobox,添加示例
2.给dlineedit添加告警信息对齐方式,只支持左对齐,右对齐,居中
2020-04-20 12:47:27 +08:00
ck de6b2577b5 fix: bug-20770 DDialog message label palettle
1.根据设计xuzhuojun要求修改文字颜色为在BrightText
2.修改例子的弹出框为DDialog
2020-04-20 11:36:01 +08:00
刘阳 32d012dfb5 fix: 修改 updateTabOrder 导致的 coredump 问题。 2020-04-20 10:28:01 +08:00
chengyulong_cm 0b600471d6 fix: bug20868,20874 DSettingsDialog标题栏右侧滚顿鼠标轮,左侧标题栏会跳过部分标题 2020-04-18 16:16:08 +08:00
liuyang d178898c72 fix: bug-16659, set taborder for DTitlebar when add widget
bug-16659 【系统监视器】【5.6.1.+r0+gd6fc0f1】【DTK Tab Order】Tab键切换顺序有误
2020-04-17 15:56:32 +08:00
wang 232330c9f4 feat: 添加 settext() 时的焦点行为
bug 18498
2020-04-17 13:49:57 +08:00
王鹏 32ae1ae6b4 feat: 修复最大化文档后还原,右箭头按钮显示问题
bug:18477
2020-04-17 11:22:59 +08:00
王鹏 1003218a5b feat: 修复DSettings setResetVisible()无效问题 2020-04-17 11:21:33 +08:00
liuyang b5fc0e449a fix: bug-17168 【侧边栏显示】磁盘侧边栏显示不全。备注:之前修改时引入了 bug-19595 蓝牙已配对列表显示异常的问题,现重新修改。
bug-17168 【侧边栏显示】磁盘侧边栏显示不全
2020-04-16 11:11:21 +08:00
王鹏 53a75e58ae feat: spinbox 头文件 2020-04-16 09:27:59 +08:00
chengyulong_cm c8d8773f01 fix: bug19158 【音乐】【6.0.0.7】【DTK】搜索栏输入任意内容后清空字符,右键搜索栏点击撤销后搜索栏搜索字符与打底文案重叠 2020-04-15 13:39:51 +08:00
王鹏 eb7e4e817b feat: DSpinBox修改头文件 2020-04-15 13:39:29 +08:00
ck 92630ca7d6 fix: tab not slide back when dragged offset less than startDragDistance
当拖动tab小于拖动距离时,松开鼠标时tab不会自动回到原位,导致看起来tab间隔异常
正常情况下小于拖动距离应该不让拖动
2020-04-13 17:17:48 +08:00
sunkang 3a5b642748 fix:(bug 20190)修复DLineEdit在uos社区版无右键菜单的bug 2020-04-12 16:11:20 +08:00
Gary Wang 4eed358930 fix: check IAT status to decide if we need a voice button 2020-04-12 11:42:42 +08:00
Gary Wang 0819c34582 Revert "fix: DListview item spacing not iclude right action icon it's not visible"
This reverts commit 9479c612e2.
2020-04-12 10:06:50 +08:00
sunkang 684b56a8ac fix:(bug 17705 17192) 修复DLineEdit和DTextEdit右键菜单的崩溃问题 2020-04-09 18:59:50 +08:00
liuyang a87245de94 fix: bug-19060, settings dialog replace buttonGroup with buttonBox
fix: bug-19060, settings dialog replace buttonGroup with buttonBox
2020-04-09 15:30:13 +08:00
liuyang 72b13bcc42 fix: bug-18808, buttonGroup value can not save while using dsettings
18808 【终端】【5.2.1+r0+g19a44e4】设置光标风格后,退出设置界面再次进入,发现光标风格恢复默认第一个;
2020-04-09 14:25:48 +08:00
zhangwengeng ec3283f289 feat: Replaces DPasswordEdit's blocked characters in password mode.(18797) 2020-04-09 10:27:34 +08:00
liuyang ffabf9f1af fix: bug-18903, settings dialog scroll area set content margin with scroll bar height.
bug-18903 【终端】【5.2.1+r0+g19a44e4】设置界面滚动条位置显示错误
2020-04-05 18:07:46 +08:00
王鹏 d8929cd7de feat: DSpinBox 属性 2020-04-01 15:53:56 +08:00
zhangwengeng 9a0e050af8 feat: 删除多语言文件(eg: .ts 和 .qm 文件)
详细见任务:https://wikidev.uniontech.com/index.php?title=%E5%A4%9A%E8%AF%AD%E8%A8%80%E7%9B%B8%E5%85%B3%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9
2020-03-30 15:38:48 +08:00
王鹏 7cff4e7396 feat: 添加 tabbar 标签页样式切换 2020-03-26 16:39:09 +08:00
liuyang 9479c612e2 fix: DListview item spacing not iclude right action icon it's not visible
bug-17168 【侧边栏显示】磁盘侧边栏显示不全
2020-03-24 15:31:27 +08:00
王鹏 83dfc1b772 feat: 添加 DTabBar控件 自动适应大小接口 2020-03-24 15:25:59 +08:00
fanpengcheng_cm a2b61ddd32 fix: Fixed ’checkchanged’ signal of DSwitchButton class always triggering twice 2020-03-20 17:33:38 +08:00
张文耕 b1d9ea2097 feat: DSlider added a function that does not show the slider 2020-03-20 17:31:28 +08:00
张文耕 901ab1e915 feat: DSearchEdit blocks its right-click menu 2020-03-20 10:19:32 +08:00
孙康 49f419a665 fix:修复没有选中文本的情况下语音相关菜单项没有置灰的bug (bug 16039) 2020-03-17 10:56:58 +08:00
孙康 e7e1587d94 fix:DLineEdit的在Password模式下去掉语音功能 2020-03-13 16:05:23 +08:00
songwentai 2587bdefd0 chore: auto pull translation files from transifex 2020-03-13 06:27:18 +00:00
Gary Wang b57e315b16 i18n: update ts files 2020-03-13 13:34:40 +08:00
Gary Wang 59e46bed4b fix(i18n): translation not working 2020-03-13 13:33:56 +08:00
孙康 04d4c4ffe8 feat:添加语音听写菜单项显示控制 2020-03-13 10:03:38 +08:00
孙康 499d90ea8c feat:右键菜单添加语音听写功能(task 17485) 2020-03-12 15:14:53 +08:00
songwentai 7d96cdafd1 chore: auto pull translation files from transifex 2020-03-11 10:04:37 +00:00
Gary Wang 5be88cf390 i18n: update ts files 2020-03-11 17:28:04 +08:00
Gary Wang ce72e846cf fix(i18n): wrong translation 2020-03-11 17:27:43 +08:00
Gary Wang 4f3050857f i18n: update ts files 2020-03-11 15:30:15 +08:00
孙康 83e477d418 fix:修复语音朗读右键菜单的bug (bug 15531) 2020-03-11 15:28:56 +08:00
Gary Wang 10fcb71d71 i18n: update ts files 2020-03-11 09:35:14 +08:00
王鹏 501f9e0d2f feat: 修改快捷键判断条件 2020-03-05 14:30:31 +08:00
王鹏 bd0107912f fix: 修改导航列表滚动条 2020-03-03 19:03:34 +08:00
peng.wang 7fb85a2376 feat: 修复clear()不全 2020-03-03 17:56:56 +08:00
zhangwengeng_cm 2ecc73cd3c fix: 改正判断条件写反
(上一条提交:解决kelvinU中的双边框双窗口按钮)
2020-03-03 17:45:35 +08:00
longqi 6a8351a0cd feat: modify titlebar show/hide rule 2020-03-03 13:44:01 +08:00
王鹏 bc0d66d275 fix: 修复kdevelop崩溃 2020-03-02 17:57:59 +08:00
chengyulong_cm 67f608b10f fix: bug13679 【文档查看器】【5.5.5+r69+gabd442a】标题栏的标题内容过长时,显示截断 2020-03-02 17:37:17 +08:00
sunkang 3b1bbbca35 feat:添加语音朗读和翻译的功能 2020-03-02 16:29:00 +08:00
zhangwengeng_cm 30947e08e9 feat: Set DLineEdit to forward contextMenuEvent messages 2020-02-27 13:45:53 +08:00
zhangwengeng_cm 11e2955477 feat: Add a new function interface comment, eg: setMarkPositions 2020-02-18 18:57:04 +08:00
zhangwengeng_cm ff89da8b70 feat: Fix the bug that the dcrumbedit control has incomplete display under focus at the beginning 2020-02-18 17:21:15 +08:00
ck b9ef8d282f fix: dsimplelistview crashed 2020-02-14 15:34:10 +08:00
程玉龙 2b0ce28a5c fix: bug11449,【相册】【5.6.5+r0+g28ade79】导出图片时偶现选择路径下拉框与导出框分离(2/5)
Signed-off-by: chengyulong_cm <chengyulong_cm@deepin.com>
2020-02-14 13:18:51 +08:00
zhangwengeng_cm ffa1e11dee feat: Added new requirement to Dslider to display only a certain scale 2020-02-14 10:27:05 +08:00
zhangwengeng_cm 4bfcca7c68 feat: Fixed DCrumbEdit's scroll bar out of the box 2020-02-13 16:47:37 +08:00
peng.wang 4403550c01 feat: 添加setPlaceholderText() 2020-02-12 14:58:16 +08:00
sunkang dda596ff27 fix:修复因为widget指针为空导致的崩溃问题 2020-02-12 10:27:12 +08:00
peng.wang 47abd33068 feat: 修改快捷键失去焦点文案信息不恢复 2020-02-06 17:05:55 +08:00
peng.wang e773306ba7 feat: 修复崩溃问题 2020-02-06 16:31:25 +08:00
ck b0f579c255 fix: bug-9760 set icon opcity 40% when QIcon::Mode is Disabled
bug-9760 【看图】工具栏disable状态下按钮显示与UI效果图不一致
2020-02-06 16:22:37 +08:00
zhangwengeng ee43fb52bc feat: Add a space interface to DMessageManager setContentMargens 2020-01-17 09:28:51 +08:00
ck aa1c43e64c fix: risk of QGUiApplication cursor stack overflow
setOverrideCursor() 和 restoreOverrideCursor() 需要成对出现,否则会引起问题。
比如 QHeaderview 或者 QSplitter 的hover时 SetCursor 无效。
Every setOverrideCursor() must eventually be followed by a corresponding restoreOverrideCursor(), otherwise the stack will never be emptied.
2020-01-16 17:43:18 +08:00
wang 4c6789cf1d feat: 修复dsettings 滚动问题 2020-01-15 14:50:23 +08:00
zccrs 8d540ae758 chore: adjust DBlurEffectWidget mask color 2020-01-14 11:34:06 +08:00
Ding Heng e152526d9e Update .gitlab-ci.yml 2020-01-08 10:44:16 +08:00
wang 2aa59c83d9 feat: 修改清除系列接口 2020-01-07 21:47:32 +08:00
zhangwengeng a572ece846 feat: Modify the color of the DSlider tick marks without changing the color of the numbers 2020-01-07 21:24:38 +08:00
wang 61036addd4 feat: 修改标题边距 2020-01-07 14:52:25 +08:00
sunkang 9897b9b965 fix:修复HeaderLine::ArrowHeaderLine鼠标拖动引发的问题 2020-01-06 17:45:09 +08:00
wang 8842ccf759 feat: 添加判断语音状态函数 去除语音识别的标点 2020-01-06 17:25:06 +08:00
zhangwengeng ccadba56e9 feat: Redraw the DButtonBox control so that there is a dividing line effect between spaces 2020-01-06 17:17:15 +08:00
sunkang 3ba6cee9e2 fix:修复密码输入控件第一次点击切换图标无效的bug
1.图标初始化错误导致的第一次点击图标无法正常切换的问题
2020-01-06 16:36:17 +08:00
wang 04f83a9c0e fix: 气泡不被截断 2020-01-06 13:54:39 +08:00
zccrs fba9031877 chore: adjust the DBlurEffectWidget mask color 2020-01-04 17:00:44 +08:00
fanpengcheng_cm a0b217a18f feat:DStyle generatedIconPixmap接口完善 2020-01-04 13:42:51 +08:00
wang 9c20f8ecec feat: 气泡支持setInvertedAppearance()函数 2020-01-03 17:58:39 +08:00
zhangwengeng 877e1de542 feat: Modify the SP_DeleteButton button, the deleted svg picture is not the same size and is not centered 2020-01-03 15:43:40 +08:00
wang 3231a944ca feat: 修改快捷键显示文案 2020-01-03 14:57:00 +08:00
zccrs dbec7c39aa feat: add class DBlurEffectGroup 2020-01-01 14:37:20 +08:00
zccrs cfe8ae1e4d Revert "fix: Modify DStandardItem's icon using DViewItemAction, which is different from DStandardItem's Checked status icon, and there is no vertical alignment bug"
This reverts commit e1ac88dd9d.
2019-12-31 16:43:08 +08:00
wang b0db221ba4 feat: 添加跟随滑块的气泡接口 2019-12-31 14:42:33 +08:00
zhangwengeng 3604707e6f fix: Fixed DWaterProgress control. When the progress bar is changed, the amount of jagged edges will be generated. 2019-12-31 10:56:54 +08:00
wang fde34cc056 feat: 与Dfilechoosere风格保持统一 2019-12-31 10:24:31 +08:00
justforlxz 9360f0e65d chore(Qt5.14): replace d->richText with Qt::TextFormat::RichText 2019-12-31 10:04:14 +08:00
justforlxz 5218681ae2 chore(Qt5.14): replace QWidgetBackingStore with QWidgetRepaitManager 2019-12-31 10:04:14 +08:00
sunkang 9d32587096 fix:修复非模态的关于对话框在同一程序可以打开多个的问题 2019-12-31 09:54:29 +08:00
zccrs 8d784df49a refactor: break the only love for X Window system 2019-12-30 20:18:42 +08:00
sunkang 720e288bb6 fix:修复DArrowRectangle背景色跟随主题变化的问题
1.附带添加了测试DArrowRectangle跟随主题变化的demo
2019-12-30 17:40:05 +08:00
zhangwengeng e1ac88dd9d fix: Modify DStandardItem's icon using DViewItemAction, which is different from DStandardItem's Checked status icon, and there is no vertical alignment bug 2019-12-26 11:31:53 +08:00
zccrs 2327e16173 feat(support): support multi-state for the icon on DIconButton 2019-12-25 13:30:50 +08:00
sunkang a237bc5ca3 fix:Content控件开启垂直方向的滚动条 2019-12-25 12:03:17 +08:00
zhangwengeng_cm 5ec9344f0f feat: Modify the style of DSuggestButton button, the background color is gradient 2019-12-24 19:59:14 +08:00
wang 5420d82417 feat: 去除OptionRadioGroup背景 2019-12-24 15:39:52 +08:00
zccrs a332dacf54 feat(style): add DStyle::toIconModeState 2019-12-24 13:45:17 +08:00
wang 910d6d6916 feat: 去除OptionRadioGroup背景 2019-12-24 13:33:20 +08:00
zccrs 25999b2994 chore: set the window message icon size to 30x30 2019-12-24 13:13:37 +08:00
wang 40c107fa2b feat: 去除connect 链接 2019-12-23 16:54:11 +08:00
sunkang 7246c23d46 fix:添加DIconButton的注释 2019-12-23 13:54:38 +08:00
sunkang 73495b77b5 fix:添加DKeySequenceEdit的注释 2019-12-23 13:54:11 +08:00
sunkang 08fdcb2649 fix:添加DSwitchButton的注释 2019-12-23 13:52:15 +08:00
sunkang f0a0709988 fix:添加DTitlebar的注释 2019-12-23 13:51:02 +08:00
sunkang 5b05a6a524 fix:添加DLineEdit的注释 2019-12-23 13:47:03 +08:00
wang 91d809f0f3 feat: Ddialog标题加粗 2019-12-23 13:32:29 +08:00
wang e8b154a849 feat: 修改快捷键setvalue()判定规则 2019-12-22 11:26:53 +08:00
sunkang b76cf82c88 fix:添加DTextEdit的注释 2019-12-21 20:48:53 +08:00
sunkang 0150124394 fix:添加DListview的注释 2019-12-21 20:28:11 +08:00
sunkang a68992c4ca fix:添加DMainWindow注释 2019-12-21 20:27:32 +08:00
sunkang c3292e5145 fix:添加DPasswordEdit的注释 2019-12-21 20:27:01 +08:00
sunkang 83cf0801a1 fix:添加DShadowLine的注释 2019-12-21 20:26:00 +08:00
sunkang f42e743c46 fix:添加DSvgRenderer的注释 2019-12-21 20:24:23 +08:00
sunkang 932781b694 fix:添加DRegionMonitor的注释 2019-12-21 20:20:28 +08:00
sunkang d681e22ebb fix:添加DSearchEdit的注释 2019-12-21 19:53:50 +08:00
sunkang c200640770 fix:添加DBlurEffectWidget注释说明 2019-12-21 16:41:41 +08:00
sunkang 5659d0401a fix:添加DCircleProgress注释 2019-12-21 16:40:36 +08:00
sunkang 3ba565e721 fix:添加DColoredProgressBar的注释 2019-12-21 16:39:41 +08:00
sunkang ca4d921fe7 fix:添加DCrumbTextFormat注释 2019-12-21 16:32:23 +08:00
sunkang 0ec095aa69 fix:添加DDialog注释 2019-12-21 16:30:39 +08:00
sunkang 94afa934d3 fix:添加DDialogCloseButton注释 2019-12-21 16:29:40 +08:00
sunkang 95c1628ae9 fix:添加DFloatingButton注释 2019-12-21 16:27:01 +08:00
sunkang 3bfffaf8bd fix:添加DFloatingWidget注释 2019-12-21 16:25:28 +08:00
sunkang 72c37f2ba6 fix:添加DFrame注释 2019-12-21 15:52:37 +08:00
sunkang 4f0bbd83c0 fix:修复ArrowHeaderLine鼠标拖动引发的问题 2019-12-20 13:53:38 +08:00
zccrs c78a9fb5db fix: use DSuggestButton for DFileChooserEdit 2019-12-20 13:39:27 +08:00
zccrs 14b683f7b0 fix(DSearchEdit): add #ifdef ENABLE_AI 2019-12-19 20:24:51 +08:00
zhangwengeng a6f3a08fc1 feat: Modify the style of the percentage of DWaterProgress 2019-12-19 10:58:22 +08:00
zccrs 2bff930124 feat: add DBlurEffectWidget::updateBlurSourceImage 2019-12-18 17:39:21 +08:00
zccrs e10e208981 fix(windows): disable flyapi for non-linux platforms 2019-12-18 14:09:33 +08:00
zccrs 549fbd971c fix(blur): update the blur widget if the background widget request update(contains blur radius areas) 2019-12-17 21:02:12 +08:00
sunkang a2ba7bceec fix:系统关于对话框改为非模态 2019-12-17 16:32:37 +08:00
zccrs 3b0e89458f fix crash at DArrowLineDrawerPrivate 2019-12-17 15:55:51 +08:00
wang 0f5dbd022d feat: 添加tooltip显示不全设置宽度 2019-12-17 13:35:18 +08:00
zccrs 5b51825686 fix: set the DTitlebar focus policy to Qt::StrongFocus 2019-12-17 11:12:50 +08:00
wang 956b78ae77 feat: 添加按钮的间距 2019-12-16 17:18:11 +08:00
wang 8997b745e9 feat: 修改恢复默认按钮 2019-12-16 17:11:53 +08:00
zccrs bd8179dbdd refactor: reset DExpandGroup DArrowLineExpand header files 2019-12-14 11:14:19 +08:00
zhangwengeng ad66ae2d88 fix: Modify the text color of QIconButton 2019-12-14 09:10:11 +08:00
zccrs 4a2d14dd1b feat: add DDrawer DDrawerGroup DArrowLineDrawer 2019-12-13 20:42:29 +08:00
zhangwengeng 09cc977169 feat: Repainted the new DWaterProgress control according to the design drawing
style
2019-12-12 17:45:58 +08:00
wang a7a2a8a461 fix: 修复搜索框问题 2019-12-12 13:55:34 +08:00
wang adabf69f08 feat: 去除Dtooltip 圆角 2019-12-11 18:55:32 +08:00
wang 218da48522 feat: 语言按钮变量初始化 2019-12-11 16:08:15 +08:00
zccrs 190c3a8718 feat: set the floating message widget maximum width
apply the TransientType message upper limit to 3
2019-12-11 15:32:27 +08:00
wang ae7bf193ed fix: 添加settext函数 2019-12-11 13:32:43 +08:00
wang 52633014e4 feat: 修复dsettings 列表显示不全 2019-12-11 13:23:56 +08:00
sunkang 8693a445a8 fix:迁移DFrame,新增drame_p.h 2019-12-11 09:36:34 +08:00
zccrs 3876472072 feat(DListView): auto layout to center of horizontal 2019-12-10 20:26:45 +08:00
wang a066616520 feat: searchedit清除焦点,改变语音状态 2019-12-10 17:29:15 +08:00
zhangwengeng c1e8350767 fix: Increase the interval between ddialog message and OK cancel button 2019-12-10 17:17:16 +08:00
Gary Wang cb42c8739c chore: draw header arrow using PE_IndicatorArrowUp/Down 2019-12-10 14:50:08 +08:00
wang 8461da93a1 feat: 添加titlebar退出按钮隐藏接口 2019-12-09 13:44:39 +08:00
wang ed1628dd81 feat: 去除DArrowLineExpand上下横线 2019-12-07 09:34:56 +08:00
zccrs 1bdb28a17a chore: adjust the PM_SmallIconSize to 14px
the DIconButton size policy to QSizePolicy::Maximum
2019-12-07 09:21:45 +08:00
zccrs 6f6124f49a refactor(DTabBar): adjust style 2019-12-07 09:19:35 +08:00
zhangwengeng 49d5061d99 feat: Newly add and encapsulate a class DTextEdit, add focus function 2019-12-06 16:55:01 +08:00
wang ff2a526f01 feat: 添加ddialog文字是否换行 2019-12-06 09:27:30 +08:00
wang e48b87d5d1 feat: 修改drawTitleBarMaxButton样式 2019-12-05 15:28:26 +08:00
wang 8b9bfcbdf3 feat: 限制快捷键数量 2019-12-05 14:40:16 +08:00
zccrs f921f0f2e7 feat(DTabBar): only show current tab close button 2019-12-05 09:19:34 +08:00
wang 4ecdcca373 feat: 修改tooltip显示函数接口 2019-12-04 17:09:03 +08:00
zccrs 4146ca77b2 fix(style): use arrow icon of QStyle for DStyle::SP_ArrowEnter/Leave 2019-12-03 15:47:52 +08:00
zhangwengeng a5f8dd9e06 feat: Add SP_ArrowNext/SP_ArrowPrev svg icon resource 2019-12-03 11:10:37 +08:00
zccrs 9a58a406f2 refactor: make same class to deprecated
DSvgRenderer: move to libdtkgui
DThumbnailProvider: move to libdtkgui
DTrashManager: move to libdtkcore
2019-11-30 19:29:21 +08:00
shaojun 2e5f7374bc feat(DBoxWidget): support horizontal 2019-11-30 10:41:53 +08:00
zccrs 6d81811df2 fix: d'not clear focus if the widget focus policy is Qt::StrongFocus
..when the window first active
2019-11-30 09:16:07 +08:00
zccrs 9165e96a2e fix: d'not hide background if the view is QListWidget 2019-11-29 19:29:40 +08:00
zccrs 4a9f2d1dca fix: auto clear widget focus of ActiveWindowFocusReason 2019-11-29 18:54:14 +08:00
zccrs ddad36b0f3 Update translations 2019-11-29 18:53:15 +08:00
zccrs 508fc656bd fix: hide the titlebar shadow line on the window is fullscreen 2019-11-29 17:37:55 +08:00
wang 11bdedf502 feat: 修复搜索框清除按钮 2019-11-29 17:08:11 +08:00
zccrs c80612082c fix: hide the frame for DLineEdit on the hideAlertMessage is called 2019-11-29 16:53:30 +08:00
zccrs a46c410286 fix: dno't return at DStyledItemDelegate::paint if the index state is editing 2019-11-29 16:38:22 +08:00
zccrs 7eb1b7914b Update translations 2019-11-29 16:34:41 +08:00
wang 15718c4e27 feat: 修改快捷键提示信息 2019-11-29 16:27:23 +08:00
wang a3bc5c01e8 feat: 修复tooltip 显示问题 2019-11-29 14:50:41 +08:00
zccrs d77f5da44e fix(style): draw the DIconButton focus rect 2019-11-29 14:45:10 +08:00
zccrs bd53146f1a feat: update editor geometry on DStyledItemDelegate 2019-11-29 13:28:42 +08:00
zhangwengeng d98418937c feat: DSpinner Change the active color without changing the bug 2019-11-28 20:31:07 +08:00
Gary Wang d94f3d3322 chore: update distribution info config support 2019-11-28 19:03:13 +08:00
zccrs 701e0f2c34 fix: disable Antialiasing when the devicePixelRatioF is 1.0 2019-11-28 16:21:43 +08:00
zccrs 16702df768 fix: show window if the window is minimized before activate window 2019-11-28 15:51:25 +08:00
zccrs add76c8781 Update translations 2019-11-28 13:39:31 +08:00
zccrs 1df2cbcb81 feat(DApplication): support auto activate main DMainWindow when start a new instance 2019-11-28 13:33:09 +08:00
zccrs 7468b0a881 fix(style): enable Antialiasing when draw titlebar buttons 2019-11-28 09:55:31 +08:00
wang 03dbadeffd feat: 添加设置itemdelegate圆角接口 2019-11-28 09:30:18 +08:00
wang 6a0888042d feat: 修改lineedit 下的tooltip 2019-11-27 15:25:42 +08:00
zhangwengeng 401b2c8644 feat: Replace image resources, dspinner and waterProgress 2019-11-27 13:19:41 +08:00
wang 0b26351f90 feat: 添加圆角接口 2019-11-27 09:28:54 +08:00
zccrs 8559f63472 fix: draw button box button background of disable state 2019-11-26 17:50:39 +08:00
wang ce6c8ebb9b feat: 添加listviewitem 状态 2019-11-26 12:18:59 +08:00
zccrs e088f4d431 chore: use frameShadowBorder for DFloatingWidget 2019-11-26 11:35:06 +08:00
zccrs 57ec26f2fe fix(DLabel): reset foreground color when draw text 2019-11-25 15:23:38 +08:00
wang e511afd01e feat: 修改dsetingsDialog 2019-11-25 14:14:16 +08:00
zccrs 0cca9610b1 chore(DBlueEffectWidget): set the blur image opacity to 0.2 of custom blur image 2019-11-23 16:40:46 +08:00
zccrs 3f9d866f45 fix: disable hover state for DSwitchButton 2019-11-23 16:39:49 +08:00
zccrs 451a787ad4 feat: adjust button text color of diff state 2019-11-23 16:01:30 +08:00
wang 7a2318dc62 feat: 添加 clear 2019-11-23 14:16:11 +08:00
wang 46c84dc4ec feat: 重写clear() 2019-11-23 13:57:32 +08:00
zccrs 20dd482305 fix(DArrowRectangle): allow custom window frame radius 2019-11-23 13:51:46 +08:00
wang b5ca967a6a feat: 头文件引用错误 2019-11-23 13:42:17 +08:00
zhangwengeng f47b4c08ad fix: Change the color of the DTabBar's tab text 2019-11-23 10:58:00 +08:00
Gary Wang d88752bbbc feat: support deepin distribution.info config file 2019-11-23 08:44:26 +08:00
zccrs 87422806dd feat(DSearchEdit): support IAT 2019-11-22 09:13:57 +08:00
zccrs 79fcda7224 feat(DLabel): support rich texts 2019-11-21 19:50:28 +08:00
zccrs 4721811ddf fix(DLabel): default text color follow QLabel 2019-11-21 17:46:15 +08:00
zhangwengeng 6b6900473e feat: Replace icon with picture 2019-11-21 17:23:26 +08:00
zccrs 939c91fa31 fix(DLabel): clear dtk palette role when set Qt color role 2019-11-21 17:13:03 +08:00
zccrs 59579e9713 fix: clear warning for DLabel 2019-11-21 16:18:37 +08:00
zccrs e002bf7ab7 fix: support image for DLabel 2019-11-21 16:12:15 +08:00
zhangwengeng 98f26f7054 fix: Fix SP_IndicatorChecked svg image No active color bug 2019-11-21 15:00:41 +08:00
wang baca52e795 feat: 修改搜索框失去焦点清除 2019-11-21 13:09:28 +08:00
zccrs 0678acf01e feat: add DLabel widget 2019-11-21 11:26:40 +08:00
wang e239885585 feat: dsettings 快捷键替换 2019-11-20 14:39:42 +08:00
Gary Wang 1befb0360e fix: set close button visible to false will cause dialog hidden 2019-11-20 14:26:46 +08:00
wang f601dad182 feat: 添加 DAbstractDialog 标准头文件 2019-11-20 10:25:31 +08:00
zccrs 0f4b2f82f6 feat: support display window title/icon for DSettingsDialog 2019-11-18 19:39:56 +08:00
Ding Heng db5ca0d3d8 Update .gitlab-ci.yml 2019-11-18 10:08:12 +08:00
zccrs f816bc3343 refactor: adjust floating message icon size 2019-11-16 20:43:37 +08:00
zccrs bf6efe729f fix: dont set maximum width of DAbstractDialog
fix the dialog content message can't full display
2019-11-16 20:42:10 +08:00
zccrs 4c6a12c13c feat: add DProgressBar widget 2019-11-16 18:51:50 +08:00
Ding Heng ccfa6de64e Update .gitlab-ci.yml 2019-11-15 16:59:48 +08:00
wang 8d23fec3aa feat: 添加 文本换行 2019-11-15 15:17:10 +08:00
zhangwengeng 5fc721ca89 fix: Replace icon with picture 2019-11-15 15:09:29 +08:00
zccrs f5db86b637 refactor: adjust DSettingsDialog style 2019-11-15 10:33:22 +08:00
zccrs c775280473 chore: adjust icon button icon size 2019-11-15 09:40:52 +08:00
zccrs 1d8ee872c1 chore: adjust search edit icon size 2019-11-14 17:56:50 +08:00
zhangwengeng 58c191ef7f feat: new Replace icon with picture 2019-11-14 17:47:48 +08:00
zccrs c5585c0f40 fix: adjust icon size 2019-11-14 17:22:32 +08:00
wang ff764ebdca feat: 添加Dsearchedit 点击clearButton 按钮失去焦点接口 2019-11-14 16:22:15 +08:00
Gary Wang 5344371b73 fix: adjust sorting arrow direction 2019-11-14 11:23:02 +08:00
zccrs ded83761c6 feat: support dynamic font size of bind widgets 2019-11-13 10:22:47 +08:00
zhangwengeng 5c27b78d3d feat: Replace icon with picture 2019-11-12 19:12:32 +08:00
wang b48b7fb9ff feat: 添加隐藏 恢复默认设置按钮 函数 2019-11-12 16:18:11 +08:00
wang 1a954f1fce feat: 添加 toolTip 文本格式 2019-11-12 09:18:00 +08:00
zccrs b8364d4e85 feat: add setTextColorRole/setFontSize for DStandardItem 2019-11-11 16:27:41 +08:00
zccrs 1829b1c48b fix(DFloatingWidget): resize the background when size changed 2019-11-09 17:19:24 +08:00
Gary Wang ee7d6c762d feat: interface to set allowMixedSelection for DFileDialog 2019-11-09 13:47:21 +08:00
wang 98ab0a21b9 feat: 修改filechooseredit passwordit 按钮背景色 2019-11-09 11:35:16 +08:00
wang ac6c803e0b feat: 添加 DKeySequenceEdit 控件 2019-11-09 09:31:23 +08:00
wang 3579b56309 feat: 去除dsettingswidgetfactory冒号 2019-11-09 09:29:41 +08:00
zccrs 4fc557f84c refactor: mark the DApplication::setSingleInstance to derpecated 2019-11-08 20:52:07 +08:00
zccrs bd61ea7f83 fix: adjust dialog style 2019-11-08 20:38:38 +08:00
Chris Xiong 37ee9ee5ea feat: add DColoredProgressBar. 2019-11-08 16:07:07 +08:00
zccrs b1951d0a69 refactor: use uos logo icon 2019-11-08 13:27:25 +08:00
zhangwengeng 1f59ff2733 feat: Remove redundant code from the DDialog class 2019-11-07 15:58:11 +08:00
zhangwengeng 5f2457f19a feat: Refer to the design drawing to modify the style of DDialog 2019-11-06 13:39:06 +08:00
wang f54b2576f3 feat: add DBackgroundGroup 类注释图片 2019-11-05 13:26:46 +08:00
wang 3b8a039e6d feat: 添加 Dstyle 注释 2019-11-05 13:25:38 +08:00
wang e5c989fe56 feat: 添加 DButtonbox 注释 2019-11-05 13:17:46 +08:00
zccrs 0ada1281be feat(style): adjust setting dialog style 2019-11-02 16:51:51 +08:00
zhangwengeng 8e2bd65d86 feat: Write code comments that conform to the doxygen rules for the DViewItemAction class 2019-11-01 18:01:25 +08:00
zhangwengeng ebb52bb3c6 feat: Write code comments that conform to the doxygen rules for the DStandardItem class 2019-11-01 17:14:19 +08:00
wang 8df8f20396 feat: 修改 dsettingsDialog 导航栏样式 2019-11-01 16:19:34 +08:00
zccrs f18c023eef feat: add DTitlebar::setQuitMenuDisabled 2019-11-01 15:41:06 +08:00
wang ac530e631d feat: 添加 DApplicationHelper 注释 2019-11-01 15:24:51 +08:00
zhangwengeng 1ade5b2eaa feat: Write code comments that conform to the doxygen rules for the DFontSizeManager
class
2019-11-01 11:32:44 +08:00
zccrs 4e563a40d3 feat: add setClickAreaMargins for DViewItemAction 2019-10-31 19:40:58 +08:00
zccrs a35ba974db fix(DStandardItem): clear old actions on set new actions 2019-10-31 16:55:44 +08:00
wang 6c09ace238 feat: 添加 DApplicationSettings 注释 2019-10-31 16:11:04 +08:00
wang 791d23db8d feat: 添加 DBackgroundGroup 注释 2019-10-29 14:11:21 +08:00
Gary Wang 56959b2a45 fix: DListView wrong item spacing when flow is LeftToRight 2019-10-28 16:48:56 +08:00
zhangwengeng 0fb7d31a7e feat: Write code comments that conform to the doxygen rules for the DWarningButton class 2019-10-28 16:03:37 +08:00
wang 433b038f82 feat: 添加 DToolTip 注释 2019-10-26 16:55:59 +08:00
Gary Wang c560fceb07 feat: support PE_IndicatorHeaderArrow 2019-10-26 16:46:46 +08:00
zhangwengeng a053e7c0c8 feat: Write code comments that conform to the doxygen rules for the DFloatingWidget class 2019-10-26 16:20:06 +08:00
zccrs b16d536945 fix: build failed on amd64/i386 2019-10-26 16:19:52 +08:00
wang ebf7c3689e feat: 添加 DTipLabel 注释 2019-10-26 15:47:08 +08:00
张文耕 769e59a55c feat: Write code comments that conform to the doxygen rules for the dcommandlinkbutton class 2019-10-26 15:40:02 +08:00
zhangwengeng ee5fbbd5d6 :feat: Write code comments that conform to the doxygen rules for the DFloatingMessage class 2019-10-26 15:31:17 +08:00
wang 1146939972 feat: 添加 Dlineedit 注释 2019-10-26 15:24:55 +08:00
wang c64ca56c4d feat: 添加 DSlider 注释 2019-10-26 15:10:40 +08:00
zccrs c21d6c2720 refactor: disable xfyun SDK library 2019-10-26 15:10:23 +08:00
zccrs dbd12de1d4 fix: remove item spacing for focus rect of DStyleItemDelegate::paint 2019-10-26 15:06:23 +08:00
zccrs 2cd3057534 feat: add DStyleItemDelegate::setItemSpacing 2019-10-26 11:37:07 +08:00
zccrs afb898c8ef feat: support DPalette for background role for DFrame 2019-10-26 10:26:31 +08:00
zccrs 249ac784f9 fix: update full area on child add/remove for DBackgroundGroup 2019-10-26 10:20:41 +08:00
wang f093119bb2 feat: 修改SP_IndicatorChecked 图标样式 2019-10-26 09:17:54 +08:00
wang dede49daa5 fix: 修复dsearchedit 输入内容失去焦点再点击输入框左侧的搜索图标崩溃 2019-10-25 17:38:05 +08:00
zccrs c67424cdb3 fix: allow the layout is nullptr for DBackgroundGroup 2019-10-25 16:31:46 +08:00
zccrs 56c0fa2d48 chore: fix examples code 2019-10-25 14:15:49 +08:00
zccrs 71f60313e1 feat: add DFrame::setFrameRounded 2019-10-25 10:02:32 +08:00
zccrs c73f5203f6 fix symbol(DPlatformHelper::isEnabledNoTitlebar) 2019-10-24 19:23:06 +08:00
zccrs 1f3b62a9df feat: add DBackgroundGroup::setItemSpacing 2019-10-24 15:22:18 +08:00
zccrs 50325c0071 feat: remove Q_DECL_DEPRECATED for DDialog::setIcon 2019-10-24 15:03:06 +08:00
zccrs a876d1acf2 feat: add shadow for titlebar in DMainWindow 2019-10-24 10:30:19 +08:00
zccrs 24ff1e333d fix: setAutoFillBackground on DTitlebar::setBackgroundTransparent 2019-10-23 16:08:02 +08:00
wang 9acb9fb155 feat: (Dslider)鼠标滚轮控制values是否有效 2019-10-23 13:34:25 +08:00
zccrs 767ccf5d4b feat: use icon "search_indicator" for SP_IndicatorSearch 2019-10-22 16:18:11 +08:00
zccrs 7de84542c5 chore: adjust list item spacing 2019-10-22 15:24:37 +08:00
pengwenhao 4b3f88ba74 fix(dlineedit) Dangling pointer crash 2019-10-22 10:17:27 +08:00
zccrs 184bde24de chore: add PM_ButtonMinimizedSize(default value:36)
adjust SH_ToolTipLabel_Opacity to 255
2019-10-22 10:09:59 +08:00
wang d196a6aa7f fix(dstyle): 修复控件在Enabled 状态下可以选中 2019-10-22 08:58:05 +08:00
zccrs ba1cd3e0ca fix: disable QGSettings on non-linux platform 2019-10-22 08:57:22 +08:00
wang 0a0147e877 feat: feat(dsearchedit): 搜索框添加搜索图标 2019-10-18 11:42:42 +08:00
wang 28a058014d fix: 修复dslider 刻度文字显示不全 2019-10-18 10:53:11 +08:00
pengwenhao 6fdb08c3e8 fix(BUG) the click play button cursor automatically jumps to the next button 2019-10-18 10:24:24 +08:00
zccrs 7308e87fd5 feat: add DFrame class 2019-10-17 10:54:54 +08:00
wang e65a1f1472 feat: remove dialog qss and fixedSize 2019-10-16 17:35:56 +08:00
zccrs 2306de566e chore: add PM_ContentsMargins PM_ContentsSpacing 2019-10-16 17:03:12 +08:00
zccrs 861cf30d24 fix: replace Reduce/ExpandElement icon 2019-10-16 16:55:32 +08:00
Gary Wang 65afe489c2 fix: remove fixed height for comboboxes inside DSettingsDialog 2019-10-16 13:40:41 +08:00
Gary Wang 3b74accda3 fix: water progress doesn't have water 2019-10-16 13:31:44 +08:00
zccrs a51f4b7e2c fix: use highlight text color for DSuggestButton 2019-10-16 10:18:43 +08:00
wang 56e26f7828 feat: add DLineedit tooltip attribute 2019-10-14 17:33:19 +08:00
zccrs 3ce77a96ec fix: connect the DSwitchButton::checkedChanged signal from QAbstractButton::toggled 2019-10-14 17:22:15 +08:00
Chris Xiong 862cefb377 fix: constructor of DViewItemAction no longer accept a parent object. 2019-10-14 16:52:56 +08:00
wang d353e4eb23 feat: add dtooltip class
add dtooltip class
2019-10-14 16:38:42 +08:00
zccrs 6d492069be fix: use qApp->translate replace tr 2019-10-12 16:59:52 +08:00
Gary Wang 10b530cbd1 fix: adjust dialog blur mask alpha value 2019-10-12 16:51:29 +08:00
zccrs fd5f00b7c1 Update translates 2019-10-12 15:14:37 +08:00
pengwenhao 8813c8b393 fix(dtkwidget) dmpriscontrol button set auto exclusive 2019-10-12 11:24:34 +08:00
Chris Xiong 774b2358a3 fix: DStandardItem object now deletes its actions on destroyed. 2019-10-11 15:25:29 +08:00
zccrs c854300669 fix: use highlight to the highlight text color for DTabBar 2019-10-11 15:21:50 +08:00
wang 9111f959f6 feat: add tooltip class
create file
2019-10-11 13:29:16 +08:00
wang 190895b101 feat: dlistview Scrollarea
dlistview Scrollarea
2019-10-10 19:13:20 +08:00
shaojun 3f1f556fe0 fix: hide LoadingIndicator scrollbar 2019-10-10 16:31:36 +08:00
zccrs b2c93a273e chore(style): adjust floating widget shadow style 2019-10-10 15:56:38 +08:00
zccrs 84c417fc9c fix: the deb package install file suffix of platform on x86_64 2019-10-09 15:42:53 +08:00
zccrs f34920e7d0 fix: don't install libcms.so in not support platforms 2019-10-09 14:07:12 +08:00
zccrs f1fc95d4e8 feat: support "Automatic Speech Recognition" for DSearchEdit 2019-10-08 20:20:58 +08:00
zccrs d7a8830cb2 refactor: mark the DApplicatioin::setTheme/theme to deprecated 2019-10-08 17:31:49 +08:00
zccrs cf15774dbf feat: support enable blur background for DFloatingWidget
feat: support set blur source image for DBlurEffectWidget
2019-10-08 17:06:32 +08:00
zccrs da2e4a7de9 refactor: use DLineEdit for DSpinBox 2019-10-08 15:08:39 +08:00
zccrs 4a2d55dfbe refactor: the DSpinBox deprecated default vlaue property 2019-10-08 14:53:14 +08:00
wang 9ea78f4751 feat: add dlinieEdit warning State
add dlinieEdit warning State
2019-10-08 14:22:22 +08:00
zccrs 52b516de5a fix: add shadow style for DFloatingButton 2019-10-08 13:56:34 +08:00
wangxuwen 1a3f1221af feat(dtk): change styles for media buttom in the dde-lock page 2019-10-08 13:09:57 +08:00
wang 4609be5008 feat: modify dsearchedit title 2019-09-27 10:32:09 +08:00
wang cba67f7b30 feat: modify dfilechooseredit icon 2019-09-27 10:12:48 +08:00
Gary Wang b1e376290d feat: add clear() to DLineEdit 2019-09-26 19:43:24 +08:00
zccrs 813c64afd3 fix: call QWidget::eventFilter for the DLineEdit 2019-09-26 19:38:56 +08:00
zhangwengeng 362163bffd fix: Modify a few enumeration values for the shadow 2019-09-26 16:20:58 +08:00
zccrs 11f2f866bd fix: add spacing of the DStyledItemDelegate actions 2019-09-26 16:11:58 +08:00
wang 2377cbc477 feat: Modify Dlineedit derived classes and base classes
examples/dwidget-examples/collections/inputtab.cpp
src/widgets/dinputdialog.cpp
src/widgets/dinputdialog.h
src/widgets/dipv4lineedit.cpp
src/widgets/dipv4lineedit.h
src/widgets/dlineedit.cpp
src/widgets/dlineedit.h
src/widgets/dpasswordedit.cpp
src/widgets/dpasswordedit.h
src/widgets/dsearchedit.cpp
src/widgets/dsearchedit.h
src/widgets/private/dipv4lineedit_p.h
src/widgets/private/dlineedit_p.h
src/widgets/private/dsearchedit_p.h
2019-09-26 16:02:00 +08:00
zccrs ae56c9b8dd feat: support standard icon for the DButtonBoxButton 2019-09-26 15:59:42 +08:00
zccrs 8ef54f1481 refactor: mark the DImageButton to deprecated 2019-09-26 11:49:27 +08:00
zccrs 97e81421c3 fix: use SP_IncreaseElement icon for the tabbar add button 2019-09-26 11:48:25 +08:00
zccrs d7cc6101da chore: fix same annotations 2019-09-26 11:47:09 +08:00
zccrs 51fd882099 feat: add tickPosition function for DSlider 2019-09-26 09:46:41 +08:00
wang e3fac3b74d fix(dslider): modify dslider
add setIconSize()
2019-09-25 16:50:58 +08:00
zccrs abcffca357 feat: add DDialogCloseButton 2019-09-25 14:36:17 +08:00
zhangwengeng 9ff868995e fix: Replace all classes DTabBarAddButton with DIconButton 2019-09-24 17:10:01 +08:00
zccrs 15bcf799fa chore: adjust the window radius for the DArrowRectangele 2019-09-24 16:09:28 +08:00
zccrs 1321b5ea8b fix: adjust DBlurEffectWidget mask color 2019-09-24 15:53:10 +08:00
zccrs fe96d01089 chore: adjust blur effect widget background color
feat: support blur background for the DTitleBar
2019-09-24 15:03:17 +08:00
zccrs 9c79757223 fix: fix DCommandLinkButton include file path 2019-09-24 14:03:44 +08:00
zccrs 78381a1def chore: adjust the ItemBackground color on hover state 2019-09-24 14:02:42 +08:00
zccrs 347c05c479 feat: add resetPalette for DApplicationHelper 2019-09-24 14:00:27 +08:00
zhangwengeng cfe4ce834d feat: Create a DCommandLinkButton class that inherits from DPushButton 2019-09-23 10:29:18 +08:00
zccrs b000fc9438 Update translates 2019-09-21 16:13:19 +08:00
zccrs fdd403bf14 refactor(buttonbox): adjust the buttonbox background and button icon size 2019-09-21 15:19:01 +08:00
zccrs 0caf91b934 chore: adjust titlebar window icon size 2019-09-21 14:17:26 +08:00
zccrs cc13b19ea9 fix: build failed on DApplicationHelper 2019-09-21 14:16:36 +08:00
zccrs b5c0f66250 fix: use __attribute__((constructor)) init the DApplicaionHelper creator function 2019-09-20 19:03:26 +08:00
zccrs a6c72dff4f feat: add DSlider::setAboveTicks/setBelowTicks 2019-09-19 21:21:14 +08:00
zccrs c07c08c8e7 chore: DStyle::blendColor/adjustColor base with DGuiApplicationHelper 2019-09-19 19:05:48 +08:00
zhangwengeng 38925c81db feat: Create a class that manages message notifications: DMessageManger
DMessageManager is used to manage multiple floating messages (TransientType messages and ResidentType messages).
2019-09-19 13:36:47 +08:00
wang b71bf7b4bd fix(dsearchedit): add setClearButtonEnabled(true);
默认对dlineedit 添加setClearButtonEnabled 属性
2019-09-19 11:26:06 +08:00
zccrs 0b0727f002 feat: add register widget demo for DSettingsWidgetFactory::registerWidget 2019-09-19 10:59:27 +08:00
zccrs 4c6a206c1a fix: fix DTreeView header file 2019-09-19 10:45:42 +08:00
Gary Wang 38cdce1189 refactor: update titlebar height to match up v20 design 2019-09-19 10:38:26 +08:00
wang df9489902c feat: add dsliders class
add file
dsliders.cpp
dsliders.h
dsliders_p.h

private.pri
2019-09-18 14:18:41 +08:00
zccrs a17885fcc2 feat: add closeButtonVisible property for DDialog 2019-09-17 13:59:21 +08:00
zccrs b200843d3c feat: support Enter/Return key for DIconButton/DButtoxBoxButton 2019-09-17 13:53:21 +08:00
zccrs a6148eeffc feat: add DApplicationSettings class 2019-09-15 19:00:36 +08:00
zccrs 365515bd2d refactor: mark the DSegmentedControl to deprecated 2019-09-15 11:19:27 +08:00
zccrs 4c9dcd5d02 feat(style): get standard icons from icon theme
SP_EditElement
SP_MediaVolumeLowElement
SP_MediaVolumeHighElement
SP_MediaVolumeMutedElement
SP_MediaVolumeLeftElement
SP_MediaVolumeRightElement
SP_IndicatorMajuscule
SP_ShowPassword
SP_HidePassword
2019-09-15 10:54:57 +08:00
zccrs 2953172aa3 feat(style): add "checkable" argument for DButtonBox::setButtonList
draw button frame for the DButtonBoxButton
2019-09-15 09:55:05 +08:00
zccrs 3295c77729 feat: add DButtonBox widget 2019-09-14 17:37:01 +08:00
zccrs bd32304e87 feat(style): fix pen color for icon paiter 2019-09-14 14:15:58 +08:00
zccrs 32b48a329c chore: add override qualifier for DStyledItemDelegate::initStyleOption 2019-09-14 11:20:19 +08:00
zccrs 56e0c3c9a9 feat: add sendMessage function for DMainWindow 2019-09-12 19:26:04 +08:00
zccrs 3cce05f7a0 chore: change DFloatingMessage::setTimeInterval to setDuration 2019-09-12 19:01:53 +08:00
zccrs e887f0ab6d refactor: mark the DToast to deprecated 2019-09-12 18:59:24 +08:00
zhangwengeng 2e674fcec7 feat: Create a class that manages message notifications: DMessageManger
DMessageManager is used to manage multiple floating messages (TransientType messages and ResidentType messages).
2019-09-12 16:49:28 +08:00
longqi_cm@deepin.com c4dd3b2bce feat(DListView): add method moveCursor
重写moveCursor函数,使MoveNext时先列后行的循环移动
2019-09-12 14:31:31 +08:00
zccrs 2ce8cb7ace feat(style): draw arrow indicators 2019-09-10 13:26:31 +08:00
zhangwengeng 01102fdcec feat: Create float notification : DFloatingMessage(class)
Provide interfaces to customize specific message content
2019-09-09 17:52:32 +08:00
wang a4af7a6d9a feat: error dpassword
dpassword.h
2019-09-09 14:44:07 +08:00
wang d70e0fc496 feat: modify dpasswordedit dlineedit
password
setEchoButtonIsVisible()
EchoButtonIsVisible()
lineedit
setLeftWidgetsVisible()
setRightWidgetsVisible()
2019-09-09 14:06:43 +08:00
zccrs ea063685e2 fix: the DTitlebar::setSwitchThemeMenuVisible use QAction::setVisible 2019-09-09 13:14:48 +08:00
zccrs de50a12c9e fix(DTitlebar): remove themeTypeChanged signal 2019-09-09 11:48:02 +08:00
zccrs 105d8d32e2 feat: support set theme type on DTitleBar menu 2019-09-08 18:55:49 +08:00
zccrs 7e4878f132 refactor: remove DPalette, add DApplicationHelper 2019-09-08 15:46:04 +08:00
wang 37bd119326 feat: add standard icons
add
drawIndicatorSearch(),
drawIndicatorUnchecked(),
drawIndicatorChecked(),
drawSelectElement(),
drawLockElement(),
drawUnlockElement()
2019-09-06 13:25:14 +08:00
zccrs e27a9b0cbe feat(DBackgroundGroup): add property useWidgetBackground 2019-09-05 09:50:15 +08:00
wang 74d98e8c4e feat: add style
drawArrowNext
drawArrowPrev
2019-09-04 18:17:38 +08:00
Gary Wang 6a799f7e26 fix: DPasswordEdit button use DIconButton 2019-09-04 15:56:53 +08:00
Gary Wang ec5f9a1ef7 fix: DDialog use DIconButton for close button 2019-09-04 15:13:08 +08:00
zccrs cefd20ecda feat(style): generated the QPalette::Button brush 2019-09-04 13:47:28 +08:00
zccrs 51112ecfe9 fix(style): fix close button border color 2019-09-04 13:32:10 +08:00
zccrs 03a930eab8 fix(style): adjust arrow icon style and icon size 2019-09-04 13:01:19 +08:00
zccrs 6628c56965 fix(style): disable SH_Widget_ShareActivation 2019-09-04 10:28:33 +08:00
wang 120c98da4b feat: add dstyle
drawCloseButton
darwArrowEnter
drawArrowLeave

drawArrowUp
drawArrowDown
drawArrowLeft
drawArrowRight
drawArrowBack
2019-09-03 21:10:47 +08:00
Gary Wang 0cc68fd06a fix: DSettingsDialog style 2019-09-03 20:49:17 +08:00
Gary Wang 2940d3a9eb refactor: DBaseExpand use D-Pointer 2019-09-03 16:47:00 +08:00
张文耕 dea4c4fa52 feat: define DFloatingWidget and DFloatingWidgetPrivate
Create and define the base class DFloatingWidget for the notification control DToastWidget
2019-09-03 16:21:16 +08:00
zccrs f8e48233ff fix: add libdtkgui-dev for libdtkwidget-dev 2019-09-03 15:17:13 +08:00
wang 09ad4a3c2b feat: modify dfilechooseredit
modify dfilechooseredit
2019-09-03 13:42:16 +08:00
zccrs b78258994d refactor: remove deprecated class and functions
remove all theme files
remove all DThmeManager::registerWidget calls
2019-09-03 13:13:13 +08:00
wang 377ec1387f feat: add form dstyle
TitleBarMenuButton
TitleBarNormalButton
TitleBarMaxButton
2019-09-03 11:28:03 +08:00
zccrs 738af216ae refactor: update the package version to 5.0.0 2019-09-03 10:51:23 +08:00
wang e485cd2fd7 feat: modify style
modify style
2019-09-02 17:57:28 +08:00
Gary Wang d312815272 fix: typo for DCommandLinkButton 2019-09-02 13:34:23 +08:00
Gary Wang 235634e0f5 feat: able to disable dialog blur 2019-09-02 13:04:31 +08:00
Gary Wang 04aca982f2 fix: setting dialog and shortcut edit dark theme color adjustment 2019-09-02 09:52:11 +08:00
zccrs 7a05be992c feat(style): add SP_IndicatorUnchecked SP_IndicatorChecked standard icons 2019-08-31 15:35:37 +08:00
wang b3e92e878b feat: modify Dlinenedit
modify Dlinenedit
2019-08-31 09:53:13 +08:00
Gary Wang c2d765a59b fix: setting dialog navigation bar not transparent 2019-08-31 09:39:12 +08:00
wang 7eb5e3c02f feat: modify dsearchedit
modify dsearchedit
2019-08-31 09:32:54 +08:00
Gary Wang be92f1c2e8 fix: check if composite is enabled for blur effect widget 2019-08-28 17:52:22 +08:00
wang cbc4f67f77 feat: modify filechooseredit
modify filechooseredit
2019-08-28 17:13:22 +08:00
zccrs 117ee34f2d fix: DMessageBox include QMessageBox 2019-08-28 16:53:01 +08:00
zccrs eb894767a7 refactor: move same class to dtkgui 2019-08-28 16:39:55 +08:00
zccrs 4032db2c2a fix(style): remvoe override same style hints
SH_SpinBox_KeyPressAutoRepeatRate
SH_SpinBox_ClickAutoRepeatRate
SH_SpinBox_ClickAutoRepeatThreshold
2019-08-28 15:49:42 +08:00
Gary Wang c6d9944e68 fix: call setBackgroundType instead of leave a default value 2019-08-28 15:10:09 +08:00
Gary Wang 8436047e53 fix: DStyleItemDelegate default use round background 2019-08-28 13:57:57 +08:00
zccrs eefb33bd2e fix: default to flat state for the DIconButton 2019-08-28 13:09:36 +08:00
zccrs 674e1c4d92 refactor(style): support Dtk::MarginsRole
remove Dtk::BackgroundTypeRole
2019-08-28 11:09:43 +08:00
zccrs bb77b4b82f refactor: adjust icon button size hint 2019-08-28 10:04:02 +08:00
zccrs d0e870bcd3 feat: add class header file
DStyleHelper
DStylePainter
DStyledIconEngine
DArrowRectangle
DImageButton
DSwitchButton
DWindowCloseButton
DWindowMaxButton
DWindowMinButton
DWindowOptionButton
2019-08-28 09:09:53 +08:00
zccrs 1286c2c745 feat(style): set the default style to chameleon 2019-08-28 09:00:32 +08:00
zccrs 2de4cc626f fix(style): add ';' for Q_FALLTHROUGH() 2019-08-27 21:33:00 +08:00
zhangwengeng b43cab6119 feat:Paint custom control DSwitchButton
Using the QStyle process, you can customize the background chute and slider of the control SWitchButton
2019-08-27 21:29:45 +08:00
zccrs a559b8ca88 chore: remove the list view item focus state if the view is SingleSelection mode 2019-08-27 21:26:53 +08:00
zccrs cfad7f58ad chore(style): change the default icon size 2019-08-27 21:12:22 +08:00
zccrs a83dc2c63a fix(style): fix the list view item text rect size 2019-08-27 20:06:03 +08:00
zccrs b5b3f2ad9d feat(listview): set auto fill list view background 2019-08-27 19:59:24 +08:00
zccrs 1259d179a7 fix(style): draw the list view item check indicator
fix the list view item sizehint
2019-08-27 19:46:32 +08:00
zccrs d0da7fcd5f fix: fix class header file 2019-08-27 17:31:36 +08:00
Gary Wang 5dca44e113 refactor: dialog style cleanup and blur support 2019-08-27 16:33:50 +08:00
zccrs d9a86a1d55 feat(style): override the QStyle::pixelMetric 2019-08-27 16:29:16 +08:00
zccrs 7bb2e95392 feat(style): override the QStyle::styleHint 2019-08-27 15:49:18 +08:00
zccrs 47530611c1 fix: add include QLabel for inputtab.h 2019-08-27 14:03:24 +08:00
zccrs f5c609780a feat: support bind a QWidget for the DViewItemAction 2019-08-27 13:49:32 +08:00
wang db39cad91c feat: modify dsearchedit
modify dsearchedit
2019-08-27 13:38:48 +08:00
zccrs cac9e3acb4 fix: ensure list view item has active state 2019-08-27 13:26:09 +08:00
zccrs 4290e945db fix: hide icon label if the titlebar icon is null 2019-08-27 09:49:08 +08:00
zccrs af3643aaa4 fix: hide the titlebar title if set the custom widget 2019-08-27 09:00:19 +08:00
zccrs 8c844276a3 fix: make the DTitleBar::setCustomWidget to valid 2019-08-26 18:04:42 +08:00
zccrs b43bfd3f81 refactor(style): remove the style icon size argument 2019-08-26 16:25:57 +08:00
zccrs 27ab8dfcd3 feat: adjust default icon button icon size 2019-08-26 14:22:19 +08:00
zccrs ba6fdf560c feat: support highlight color for DIconButton 2019-08-26 13:32:48 +08:00
zccrs 0f2389def4 feat: add DStyledIconEngine 2019-08-26 09:07:35 +08:00
zccrs fbfcca72a9 chore: make the QListView::contentsSize to public for the DListView 2019-08-23 18:28:04 +08:00
zccrs e8b3fe5418 fix: add dwidgetstype.h for DMenu 2019-08-23 18:22:30 +08:00
zccrs 85dcb27229 fix: don't set the minimum width on show event of DMainWindow 2019-08-23 16:30:35 +08:00
wang 2eae223bd1 feat: add dsearchedit_p.h
add dsearchedit_p.h
2019-08-23 15:19:50 +08:00
zccrs e6c63d2cb2 refactor: relayout the DTitleBar 2019-08-23 11:52:57 +08:00
zccrs 7c1cf677d2 refactor(titlebar): standardized DTitlebar
inherit DIconButton for the DWindow[Close|Min|Max|Option]Button
2019-08-23 09:16:04 +08:00
zccrs 1b98dc2cfa fix: fix dwidgetdtype.h to dwidgetstype.h 2019-08-22 21:16:14 +08:00
zccrs d6749c34cc refactor: inherit DIconButton for the DFloatingButton 2019-08-22 20:35:19 +08:00
zccrs db795cb22f feat: add DIconButton widget 2019-08-22 18:13:42 +08:00
zccrs 57ebc69339 fix: always show decoration selected for DListView
use event filter replace DStyledItemDelegate::editorEvent
2019-08-22 11:49:36 +08:00
zccrs a512d93dbb feat(style): draw DFloatingButton 2019-08-22 09:28:31 +08:00
zccrs a319f28fa2 chore: set default icon size to 32x32 for DListView
set the DListView frame shape to QFrame::NoFrame
2019-08-21 18:07:12 +08:00
zccrs 00b06075eb fix: init the DStyleOptionBackgroundGroup on DStyledItemDelegate::paint 2019-08-21 18:04:23 +08:00
zccrs 0a47338086 feat(style): add default code for DStyle 2019-08-21 17:56:07 +08:00
wang 952a34dad3 feat: modify Dpassword
modify dpassword
2019-08-21 15:00:14 +08:00
zccrs 9f2b6dd645 feat: emit the DViewItemAction::triggered signal when mouse button cliecked 2019-08-21 14:47:06 +08:00
zccrs ab211a25ed feat: support multi display text for DStyledItemDelegate 2019-08-21 13:57:52 +08:00
wang 7793aee334 feat: support setWidgets for DLineEdit
add DLineEdit::setLeftWidgets DLineEdit::setRightWidgets
2019-08-21 11:39:20 +08:00
zccrs ae560509c6 fix: only find direct children for DBackgroundGroup 2019-08-21 11:26:42 +08:00
zccrs e96be6f4a7 feat: add DStyledItemDelegate 2019-08-20 20:01:37 +08:00
zccrs b7a44f23ee fix: add DHorizontalLine/DVerticalLine class
add DDialog
motify DLabel
2019-08-19 15:28:56 +08:00
zhangwengeng 25ca1fa7be feate:Add some documents
Add some files about the name of the Qt control named DTK control
2019-08-19 13:13:16 +08:00
zhangwengeng 33cddd4166 feat:Qt control renamed to DTK control 2019-08-16 17:46:37 +08:00
zccrs fa26806d95 feat(style): add DStyleOptionViewItem
add viewItemLayout for DStyle
2019-08-16 09:20:06 +08:00
zccrs ab69137ae9 feat(DFloatingButton): set the default size to (48x48) 2019-08-14 16:38:35 +08:00
zccrs 3899674e24 feat: support gitlab auto build 2019-08-13 16:15:48 +08:00
zccrs 3344d3361e refactor: disable library symbols check 2019-08-13 16:13:16 +08:00
zccrs 3e113e4a36 fix(DStytOption): fix symbols on build check 2019-08-13 15:57:59 +08:00
zccrs d6f672bd27 feat: add DFloatingButton 2019-08-13 14:45:01 +08:00
zccrs 4fd1d3d161 fix: use QSharedDataPointer for DPalette
dno't use QSharedPointer
2019-08-12 16:39:51 +08:00
zccrs 04ef5f6e93 feat(DStyleOption): add ItemBackgroundType enum
support custom background type for item view item
2019-08-09 20:13:10 +08:00
zccrs 71d705dbd4 fix: dno't set QPalette of widget when set DPalette 2019-08-09 14:45:57 +08:00
zccrs 5c4967397b feat(DBackgroundGroup): use the widget background brush act to DPalette::ItemBackground 2019-08-09 14:17:49 +08:00
zccrs 9f3fecc13d fix(DStyle): init the alpha channel for adjustColor 2019-08-09 13:42:43 +08:00
zccrs 1e17f88e21 feat: refactor the code of the DBackgroundGroup 2019-08-09 11:39:22 +08:00
zccrs e258f31b6b fix(DStyleOption): set the item margins role value to Qt::UserRole + 1 2019-08-08 16:09:15 +08:00
zccrs 24f9776f0c feat(DStyleOption): add SO_HighlightButton for DStyleOption::OptionType
the highlight button will be use highlight color with button background
2019-08-08 14:44:34 +08:00
zccrs 4e7bd1be3e refactor(DStyle): add QStyleOption argument for generatedBrush interface 2019-08-08 14:06:56 +08:00
zccrs f32f9665b4 fix(DStyle): fix argument name for blendColor 2019-08-08 10:42:35 +08:00
zccrs 37a1ff6865 feat(DStyle): add blendColor function
Mix two colors through the alpha channel
2019-08-08 10:35:35 +08:00
zccrs 925e5d8fcf feat(DStyle): add adjustColor function
support adjust the follow properties for color:
 * hub
 * saturation
 * lightness
 * red channel
 * green channel
 * blue channel
2019-08-07 16:49:01 +08:00
zccrs 16b9242095 fix(DPalette): only in the ColorGroup >= NColorGroups reset it to Active 2019-08-06 18:55:20 +08:00
zccrs f493d8eb28 feat(DStyle): add PM_FrameMargins 2019-08-06 17:23:46 +08:00
zccrs 57b483fd02 feat(DStyle): support generated DPalette brush
add FrameBorder for DPalette
2019-08-06 17:06:50 +08:00
张继德 6dddeb25fb Merge branch 'master' into 'master'
fix(DStyle): add using functions from QCommonStyle

See merge request dde-v20/dtkwidget!1
2019-08-06 11:32:12 +08:00
zccrs 17f0c5774a fix(DStyle): add using functions from QCommonStyle
using QCommonStyle::drawPrimitive
using QCommonStyle::pixelMetric
2019-08-06 11:30:09 +08:00
zccrs 38bcd55c62 fix: remove same symbols
remove symbols of DStyleOptionButton
2019-08-02 20:34:41 +08:00
zccrs b13cabb4f1 fix: check symbols failed on build package 2019-08-02 20:16:40 +08:00
zccrs 209fc8339a feat(DStyle): add "generatedBrush" functions
Provide a way to process the brush, by states:
 * SS_NormalState
 * SS_HoverState
 * SS_PressState
2019-08-02 20:07:38 +08:00
zccrs d5bf28da97 chore(style): add DStyle class
add ColorType for DPalette:
 * LightLively
 * DarkLively

rename DStyleOptionSuggestButton to DStyleOptionButton
add WarningButton to ButtonFeature

add class header files:
 * DStyle
 * DStyleOptionBackgroundGroup
 * DStyleOptionButton
2019-08-02 19:18:36 +08:00
zccrs 277d09ae57 fix: check the cg argument for DPalette::setBrush
add base class functions:
 * using QPalette::color;
 * using QPalette::brush;
 * using QPalette::setBrush;
 * using QPalette::setColor;
2019-08-01 10:38:38 +08:00
zccrs dd213a5eb4 refactor: move all translation files to "src/translations" 2019-07-30 19:07:11 +08:00
zccrs edf1741f6a chore: remove create dtkwidgt_config.h codes
fix the dtk-svgc tool install path
2019-07-30 18:41:33 +08:00
electricface1 48912f0efd chore: auto pull translation files from transifex 2019-07-30 09:50:35 +08:00
Hualet Wang 2cc73ca2ad fix: crashes dock in Qt5.11.3 2019-07-30 08:17:44 +08:00
zccrs f051f70240 feat: add ThemeType for DThemeManager
theme types:
 * LightType
 * DarkType
2019-07-28 13:55:22 +08:00
zccrs 8b72e7c3e1 feat: add DPalette and DFontSizeManager
DPalette: DTK style palette
DFontSizeManager: DTK standard font size level
2019-07-27 17:21:09 +08:00
zccrs ff8e7a539c fix: reset tx config file
"dtkwidget2.ts" => "dtkwidget.ts"
2019-07-26 17:32:56 +08:00
zccrs 6f4df7f291 fix: use the DWIDGET_TRANSLATIONS_DIR 2019-07-26 17:31:20 +08:00
zccrs fe15d32b71 Revert "update version 5.0"
This reverts commit 782192d8c2.
2019-07-25 13:48:44 +08:00
deepinzhangshuang 782192d8c2 update version 5.0 2019-07-25 11:28:27 +08:00
justforlxz ebb16ded89 feat(widgets): add dbackgroundgroup
Change-Id: I02a025adb21054e132bd8e50bce5c0fde9f6061f
2019-07-23 15:07:28 +08:00
Hualet Wang 70e2d070e4 fix: DSwitchButton send checked on mouse release 2019-07-17 13:10:48 +08:00
Gary Wang 29580ada8d
fix: update style after apply dtk stylesheet
(#41)
2019-07-16 10:08:05 +08:00
Gary Wang 3128c340bd
fix: FramelessWindowHint caused qss won't apply
(#40)
2019-07-11 11:40:49 +08:00
zccrs 502990e124 fix: don't full blur background of window if the DBlurEffectWidget::maskPath is non-empty 2019-07-05 17:52:19 +08:00
electricface1 604b29d5fe chore: auto pull translation files from transifex 2019-07-05 17:47:21 +08:00
zccrs e7fb13c7de refactor: use commit count for the package version
Version number no longer depends on datetime
2019-07-05 14:42:21 +08:00
zccrs 4371de1fc8 feat: add property "full" "blurEnabled" for DBlurEffectWidget
support set blur enable
support full blur area to toplevel window
2019-07-05 14:04:08 +08:00
Felix Yan ddbc08342f fix: build failures with Qt 5.13 2019-07-04 09:09:05 +08:00
zccrs 858af98ea2 fix: make the dxcb to enable if the no titlebar mode is enabled 2019-06-27 10:05:58 +08:00
zccrs 9a9bf0b24d feat: add "enableNoTitlebarForWindow" for DPlatformWindowHandle
Support for custom window decorators using new interfaces
See: https://github.com/linuxdeepin/qt5dxcb-plugin/pull/25
2019-06-18 13:12:12 +08:00
zccrs 2b24e5f9da Update CHANGLE.md 2019-05-23 14:07:48 +08:00
zccrs eb0500fa06 fix: hide the non-window type window titlebar menu button on initialize
https://github.com/linuxdeepin/internal-discussion/issues/1625
2019-05-20 14:27:21 +08:00
zccrs a509a5edfa Update CHANGLE.md 2019-05-09 13:44:58 +08:00
zccrs 7553188bfe fix: repaint widget mask color when the color changed
https://github.com/linuxdeepin/internal-discussion/issues/1332
2019-05-08 14:15:37 +08:00
Felix Yan 07eab80865 chore: correct typos 2019-05-07 11:24:17 +08:00
Chris Xiong 15c4d64594 chore: fix a typo in README. 2019-04-28 17:30:35 +08:00
Iceyer 8342b8cc2a
Merge pull request #27 from Iceyer/fix-always-show-dtk-menu
fix: always show menu button
2019-04-23 16:46:51 +08:00
Iceyer 4612b6fc7c fix: always show menu button
Notice that WindowSystemMenuHint not mean user menu, but mean Close
Button, Do not use it in DTitlebar. See blow link for more:

https://doc.qt.io/qt-5/qt.html#WindowType-enum

Change-Id: Ifad262ea190c1fb4778edfd0b525ef0c04e0e4ff
2019-04-23 16:33:58 +08:00
iceyer 633617d0e2 fix: always show button on none linux
Change-Id: I0f4dc2081f747d695014e137795da18071eca22d
2019-04-23 06:35:03 +08:00
deepinzhangshuang c90c910127 update for stable sym check 2019-04-22 13:33:52 +08:00
deepinzhangshuang 8f85df6783 update symbols for 32 2019-04-19 18:03:20 +08:00
zccrs c5fbab2359 fix: remove extra symbols 2019-04-18 15:34:05 +08:00
zccrs b12207327b Update CHANGELOG.md 2019-04-18 09:30:59 +08:00
zccrs eba2adde3b Update symbols file 2019-04-18 09:11:59 +08:00
zccrs e54854d1eb Update CHANGELOG.md 2019-04-17 10:40:15 +08:00
zccrs 320d896b67 fix: The dialog size abnormally on multi-screen
and the screens have different device pixel ratios

fix: https://github.com/linuxdeepin/internal-discussion/issues/1186
2019-04-17 10:05:13 +08:00
Felix Yan 4db6391364 chore: correct a typo 2019-04-09 05:58:12 +08:00
zccrs b1308c8ac3 feat: add interfaces for custom qt theme config file path
* DApplication::customQtThemeConfigPathByUserHome
* DApplication::customQtThemeConfigPath
* DApplication::customizedQtThemeConfigPath()
2019-04-03 11:44:36 +08:00
zccrs ee11cac58d feat: add signal "screenDevicePixelRatioChanged" for DApplication
Screen scale real-time effect implemented in the Adaptation Platform theme plugin
https://github.com/linuxdeepin/qt5integration/pull/11/
2019-04-02 18:53:46 +08:00
zccrs 13cc9c6883 Update CHANGELOG.md 2019-03-27 11:18:46 +08:00
zccrs e84643fdbf fix: crash at DApplicationPrivate::cancelNotification 2019-03-22 16:26:57 +08:00
流年匆忙 836b438b03
Merge pull request #16 from justforlxz/fix_bugs/master/ddesktopservices
fix(DDesktopServices): wrong register ddesktopservices enum type
2019-03-22 13:26:40 +08:00
justforlxz c82f36e33f
fix(DDesktopServices): wrong register ddesktopservices enum type
Change-Id: I67a6b5d7a7fb7f6902ceff0822aec934b8d78007
2019-03-22 11:42:45 +08:00
Hualet Wang 79473dfab2 fix: cursor is always in busy state sometimes
see #250

I give it a timeout to workaround the situation a little bit.

Change-Id: I4b715b7455418caccb8416b446e92a55e80e47d3
2019-03-20 16:45:44 +08:00
justforlxz 24fbd4710a
feat(DDesktopServices): register qmetatype for SystemSoundEffect
Change-Id: Ief2d375c91344821b25c13799ea1c26b3fe9148b
2019-03-18 16:41:17 +08:00
Iceyer 9f5782f8d4 Release 2.0.9.17
Change-Id: I4ca7a154275211752dc53c85d328917797200d68
2019-02-26 10:56:33 +08:00
zccrs dfe278ce26 refactor: update the titlebar close button normal icon
https://github.com/linuxdeepin/developer-center/issues/930
Change-Id: Ic1f08786a3217de02e61faaa5c22b5e93e2f0a07
2019-02-22 09:29:42 +08:00
Hualet Wang f7d2974c00 fix: minimize buttons of fix sized windows are disabled
tower: https://tower.im/teams/9487/todos/229102/

Change-Id: Iad67d9859b6376849fc4d458a02be8c8ea491c9c
2019-02-19 13:06:44 +08:00
zccrs 1ca45918df fix: build failed on Qt 5.6.x
Change-Id: Ie13713d748853e4b7a0829e1200e1ceedbe405a5
2019-02-19 10:04:36 +08:00
Gary Wang c6d65f016e fix: move Q_DECL_DEPRECATED to front
Change-Id: I24d274b16a0b9a625cf1ff90c8690f4fd5aee954
2019-02-13 14:55:38 +08:00
Gary Wang 7aebc3a417 docs: deprecated DButtonList
Change-Id: I89d5d9951b65700785f29a4a1959015eb74697a7
2019-02-13 11:02:43 +08:00
justforlxz b03aca4947 doc(DBroderlessWidget): update chinese doc
Change-Id: I30abdad9d49ddbe815b792ac982bcef0b07692f3
2019-02-13 09:10:56 +08:00
justforlxz e0fce8f960
doc(DBoxWidget): update chinese doc
Change-Id: Ib82cfd052dc0672119dd7592c7e97f0c0055bedd
2019-02-01 17:18:42 +08:00
Hualet Wang 4904079973 update changelog
Change-Id: Id2f5d97f8c15cfbce6c2069e655297f6227b00a4
2019-01-29 16:41:37 +08:00
Gary Wang c63bac174f fix: titlebar not shown in some case
This is a temporary fix for deepin-movie-reborn title bar button missing
issue.

This sumbit revert (part of) 010c75d534

Change-Id: I36f956f1c59ba4afae5601ca2b63bf5945cc8cfa
2019-01-29 14:56:04 +08:00
Gary Wang 8e3898892b docs: DCrumbEdit documentation
Change-Id: Ice4fb5ef8db84b43ada7ebde68ea700d7772c39f
2019-01-29 13:56:22 +08:00
listenerri 16e7e81f7b doc: for DStackWidget
Change-Id: I0a933dfa40aad0af3f7cb24afe61c9b972aa2a53
2019-01-25 17:54:37 +08:00
zccrs 374248440a Update CHANGELOG.md
Change-Id: Ia7c6ef502b5a3d83da5cef27ced5cbc6bf9c05b0
2019-01-25 15:22:51 +08:00
zccrs b3081ed061 docs: add document for DForeignWindow
Change-Id: Iff823289becaa66a90c68827e5ca87faa30d6ef6
2019-01-25 15:02:56 +08:00
listenerri f62bf04481 fix: change permissions of DStackWidget's function
Change-Id: I99660e81968fc470f77d64d24bec2ebf2375c2ba
2019-01-25 13:40:55 +08:00
zccrs 010c75d534 fix: can not hide the window menu button
...if remove the Qt::WindowSystemMenuHint flag from the window flags

Change-Id: I281104519cf3bbeaf7e4c8997b3a57ee2df214b6
feat: support disable the window menu button on DTitleBar::setDisableFlags
fix: the DTitleBar window buttons not update when the window motif hints changed
2019-01-25 11:52:20 +08:00
zccrs 8724d52d63 docs: add document for DWindowManagerHelper
Change-Id: Id9d81551d77d0b8e122147ad91a90bf19dd0c260
2019-01-25 10:35:51 +08:00
zccrs e2f8e00568 chore: save dpkg-parsechangelog calls in debian/rules
https://github.com/linuxdeepin/internal-discussion/issues/866
Change-Id: I50839f8db713bcb41aa78b56585441817129b9c1
2019-01-25 10:27:22 +08:00
zccrs 66c3077956 docs: add document for DPlatformWindowHandle
Change-Id: I40ff7506b06af4a2f664a285dd2ea251da4664c2
2019-01-23 17:03:07 +08:00
zccrs 6315227425 refactor: deprecated: DScrollBar and DScrollArea
Change-Id: Ie120b9d3b513520b17c93d42e406bf2e5d615291
2019-01-22 10:53:43 +08:00
justforlxz 15eb21f79a fix(DDesktopServices): keep old enum order
Change-Id: I8b9b9492f22044d2607b409d52c692af27dad3a8
2019-01-22 09:35:46 +08:00
zccrs dbba01ac0d docs: add document for DWindowGroupLeader
Change-Id: Iabf5294717253d9a0ccf3d86fde69447479dfd2a
2019-01-21 16:24:26 +08:00
zccrs aa1ab5ad14 feat: add groupLeaderId/clientLeaderId interfaces for DWindowGroupLeader
Change-Id: I7f3aae91321cb3beda27f734047bfff7c4afe89e
2019-01-21 14:31:06 +08:00
justforlxz c1a2285c3a
feat(DDesktopServices): support all sound effect
playSystemSoundEffect will check enable from gsettings,
so add preview function.

Change-Id: Ifee2a393046661d9baa4020e263ef79210197554
2019-01-21 10:26:20 +08:00
zccrs 2539a89b0d docs: add document for DEnhancedWidget
Change-Id: I11c0233719703a13c843c0591348db0143218a71
2019-01-02 17:08:01 +08:00
Iceyer 72b6c78292 Release 2.0.9.14
Change-Id: I2f43f2eaede16079c0f5f44f2d3bf7d7ae67d897
2019-01-02 16:52:07 +08:00
zccrs 651dee293b fix: can not scroll view on DSettingDialog by touchscreen
Change-Id: I0a14ea2571feeb16a40be061d7bb60e289b1cf57
2019-01-02 16:34:38 +08:00
Felix Yan 06312782ea
refactor: fix some typos
Change-Id: Iec86f45004ecfa5991d9bcea1fa8e20a132f8a31
2018-12-29 03:52:11 +08:00
rekols 68b1d1ee2d doc: update DSimpleListItem
Change-Id: If69fa49672a0ed01604090caeddf716ae6212267
2018-12-28 20:47:48 +08:00
Iceyer 16cd3e4a1f Release 2.0.9.13
Change-Id: I5c55e4bab4dc0a2a8f793a7d1c919b4f6915f991
2018-12-28 13:05:25 +08:00
zccrs 57709614c8 docs: add doc for DBlurEffectWidget
Change-Id: I1ed1c94f6d5cef9dad954ca0e5e71a82b18d88db
2018-12-27 17:23:21 +08:00
zccrs 74482ea685 feat: support touchscreen for DSettingDialog
Change-Id: I6f0352750e411552b5c7ba3151a7cdd712c3424c
2018-12-26 16:56:00 +08:00
Iceyer 00ed435480 docs: add chinese docs fir DTiltebar
Change-Id: Idd55e74714cf5344ef516210bbac462bb86ee2f0
2018-12-25 19:32:33 +08:00
zccrs 184beb62a3 refactor: reset the DSegmentedControl widget style
Change-Id: I792fa8d70aa096bc3efaa67e2ce69d1ebf887d07
2018-12-24 18:10:50 +08:00
zccrs 93c63c856b refactor: transfrom the DSegmentedHighlight class to D-Point style
Change-Id: I971548aa54da6028c2b93f17ff86cd8a3a9f6877
2018-12-24 18:04:32 +08:00
Iceyer ea7969350b Release 2.0.9.12
Change-Id: I0a926e92a16e4e96e34af85dc8404f510da3b227
2018-12-24 18:03:40 +08:00
Iceyer f7a33caaad feat: move settings dialog radio to left
Change-Id: I1229eae2a4f9a8bc2b5b9019ae63a5776bad36f5
2018-12-24 14:27:01 +08:00
Iceyer 74f8f92817 feat: support connan build
Change-Id: I9c51bd3818a36d9d8dc0574c8f3f2f51c2449fd1
2018-12-24 09:51:11 +08:00
justforlxz ec478aa0ae fix(DWindowManagerHelper): return currentWorkspaceWindows is empty
Change-Id: I6a59b08887441198828f91235c7e5b9fdcea5af3
2018-12-21 09:10:51 +08:00
Iceyer b071744b29 docs: add chinese docs for dstyle
Change-Id: I7ef9e0b4269dab26e66d83913fff189dadbe119a
2018-12-20 17:03:59 +08:00
Iceyer 4fc0a36a14 docs: deprecated DOption/DOptionList/DShortcutEdit
Change-Id: I1eae508638ebed8dca090359894f00cbd5518e78
2018-12-20 15:24:04 +08:00
Iceyer 0617ea5f3e dosc: add chinese docs for DGraphicsGlowEffect/DPictureSequenceView
Change-Id: I2294f7985288c6dc37f46c7f5e981bcfdadc6ee5
2018-12-20 15:05:35 +08:00
rekols 1f17da9dbd doc: add image for DToast.
Change-Id: Ic5a398a536f0e79afc4f16c931ae90df608e5681
2018-12-18 18:45:29 +08:00
rekols db644110a0 doc: perfect dslider.
Change-Id: Ia5db1b5a6c427c306949baee875c64f84ba8e324
2018-12-18 17:01:55 +08:00
justforlxz 146c28f544
doc(DImageButton): supplement the description of the get and set methods
Change-Id: I05f96b98f7fe394b28be853ccfa92e5111a5c25e
2018-12-15 17:48:13 +08:00
justforlxz 3bea166836 doc(DMPRISControl): add signals description
Change-Id: Iaef4607113145b8a4f1cb7583b95de774bbcbeb7
2018-12-15 17:47:41 +08:00
haruyukilxz 284fa5b4d7 doc: add chinese documentation for DVideoWidget
Change-Id: I1310368f3b5f89c6dac3bb442700df2f5ff67215
2018-12-15 17:47:32 +08:00
listenerri 23160de650 fix: doc for DTextButton
Change-Id: Ic25a5fe5f33d935228008ed293a9ebfde3372323
2018-12-15 17:30:53 +08:00
listenerri 339c0557d6 doc: add image for DBaseExpand
Change-Id: Icb540bd5aa45c0331195c46d4f146518f4b1703d
2018-12-15 17:15:47 +08:00
listenerri 597f25c16a fix: doc for DExpandGroup
Change-Id: I2ca43863a61b30fc9a37eda99c9d74d37a8b895f
2018-12-15 17:15:42 +08:00
listenerri 78a7bdc10d doc: add image for DSpinBox
Change-Id: I2d97261f29ada6ec12247a42abf9c61bf71ab47c
2018-12-15 17:15:33 +08:00
Gary Wang 50884380f6 doc: DCircleProgress signal doc
Change-Id: I0b919dc301a72b73146c9daedf83a9f67605487f
2018-12-15 16:22:43 +08:00
Iceyer ec862453e5 Release 2.0.9.11
Change-Id: I953fa281cfd65f8546599f57c1ebb662f1cef99d
2018-12-14 13:31:29 +08:00
zccrs ba85d84680 refactor use quint32 replace the WId for the DWindowManagerHelper
Change-Id: I9bbae3c746bae9d4f81eb1eec2158b889a82c95f
2018-12-13 15:00:39 +08:00
Gary Wang a4d2aa0603 feat: allowed set a expected icon size for DDialog::setIcon
https://github.com/linuxdeepin/internal-discussion/issues/495

Change-Id: Ie781218474e86686f54b2149d86cb1eb669cf20d
2018-12-13 10:02:43 +08:00
justforlxz 56ff4effd0
update experminal package version
Change-Id: I72816162b633e5d2263710664a31686c9ff43518
2018-12-12 16:27:35 +08:00
justforlxz d34401655e feat(DWindowManagerHelper): return all windowId and current workspace windowId
Change-Id: I8def61a2fceed1c9ab9cd7f31641ecf0e28de1a2
2018-12-10 16:04:55 +08:00
Gary Wang 29048e07f3 doc: image for DArrowButton, explain for DBaseLine
Change-Id: Id9f31913ce768ee7d5824c06be0849bb62670dd7
2018-12-09 16:58:40 +08:00
Gary Wang 7bc4165d95 doc: image and use case explain for DHeaderLine
Change-Id: I68ee113a7324ef7e2869ab488ac69ec59ccfe506
2018-12-09 15:52:41 +08:00
Gary Wang a14e4b35bd doc: add sample image for DSpinner
Change-Id: I47fc34ebf2c2c2983f4772c8abdfddfac2798a45
2018-12-09 15:23:53 +08:00
Iceyer 600e8c0ab2 Release 2.0.9.10
Change-Id: I986d81a3f18b46baa8bad1dedb5acc25819a9273
2018-11-30 18:00:12 +08:00
zccrs d4c557f1d5 feat(DWindowManagerHelper): add inteface: "windowManagerName"
Change-Id: I05c7dcc4330aa95b5f17b282f108ad5e4e4cee39
2018-11-22 17:39:11 +08:00
haruyukilxz b9edc9d363 fix(DPasswdEditAnimated): modify parent for tip widget
Change-Id: I95fb48a76029031d658092030793d972ae014aa7
2018-11-22 09:31:47 +08:00
zccrs 251418bf24 fix: the dialog type window will be closed after pressing Super+D
Change-Id: Iaae3193cc3dccde311dbf7c3129558c2d507a1f9
2018-11-19 15:01:05 +08:00
Hualet Wang 2af710bec6 fix: workaround QTapAndHoldGesture comes late than right press in dde-daemon
fixes https://github.com/linuxdeepin/internal-discussion/issues/430

Change-Id: I33ea1a510bd6bfeea0b9ca80ee2bd030e990a4cf
2018-11-19 11:54:23 +08:00
Hualet Wang a3e23a7e23 feat: set QTapAndHoldGesture::timeout in DApplication
the value is the gsettings value set on

com.deepin.dde.touchscreen longpress-duration

Change-Id: I45234155b46044e271900eed31b5e4594253cb91
2018-11-15 20:02:01 +08:00
rekols 9efe4990c1 fix(dtabbar): horizontal dragging delays.
Change-Id: Ie0bb597d69dfd2fd5c780a22bb7c5e0033b8e613
2018-11-12 14:39:31 +08:00
Iceyer 70c3ee66f8 Release 2.0.9.9
Change-Id: Id7f33841995b80688cf5ba490e8bc7610297c68e
2018-11-09 10:41:50 +08:00
haruyukilxz 2bf9c93f68 feat(DTickEffect): change scroll speed
Change-Id: I572cd0def6a532467d57c835f31354d0f76a9a1e
2018-11-09 10:38:42 +08:00
rekols 1539439b1e feat(DPasswdEditAnimated): add updateAlertPosition() func.
Change-Id: I04ae0a9da5e5116690cae3f3648d690cc295af5b
2018-11-08 17:13:44 +08:00
rekols faaa4ee286 fix(passwdeditanimated): hide alert flash.
Change-Id: I1d83d7f928269bd1ef82fb116b0211ce06f15d53
2018-11-08 16:46:14 +08:00
Iceyer a0a724ef91 Release 2.0.9.8
Change-Id: If990016760758695ee9c85d8cbe7cf64ab74b7ad
2018-11-08 13:47:03 +08:00
zccrs 4281a39694 fix: do not set Qt::AA_ForceRasterWidgets by default on x86 platform
Change-Id: I344447ebd01ac19c1d310f9b3ffba387d5c6ea5a
2018-11-08 13:46:38 +08:00
Iceyer 30cb66b296 Release 2.0.9.7
Change-Id: Ide794b041b210ff31f869fcb98982255976e6fb5
2018-11-08 13:42:30 +08:00
transifex 2159c2fadb auto sync po files from transifex
Change-Id: I5259ebe052fa403cb104076109670a7dcaa20ba5
2018-11-07 02:59:29 +00:00
Iceyer f0bae104da fix: open AA_ForceRasterWidgets by default
Change-Id: I47240c6c91dcb258d6eb405dbb408e9847e420d5
2018-11-06 18:25:25 +08:00
zccrs 5f63a454a9 refactor: replace the dialog close button icon
Change-Id: I5d518374778cb9c37fa318c9762d869a474ff385
2018-11-02 16:00:32 +08:00
Iceyer 489ceecf6b Release 2.0.9.6
Change-Id: Id74d50328e568458739541f4852ec9db3442017b
2018-11-01 17:33:41 +08:00
justforlxz 48ac04318f feat(DMPRIS): music title support tick effect
Change-Id: I69f07b52bf96e44b85846e08b86edc4a31757a59
2018-10-30 13:27:03 +08:00
Iceyer def01e622a docs: DTitlebar
Change-Id: Idb8e106d21095647f06fdea5e348f0c81e35e39d
2018-10-29 17:53:35 +08:00
zccrs df0f30a260 docs: DAnchorsBase
Change-Id: Id1d6fe38d3f3bcbb4a2a601aa8fbd4806834d946
2018-10-29 17:46:23 +08:00
haruyukilxz d67733006e
feat(DRegionMonitor): support set coordinate type
Change-Id: Ie781aa940cf1c971043eaeccd54cd02f579dd597
2018-10-29 13:13:03 +08:00
listenerri a34833ec30 fix: static function bugs of DInputDialog
Change-Id: I9abf70820e5e1bce0dd45f590494641f95ac280d
2018-10-29 09:09:13 +08:00
listenerri ed2f17e624 add: doc for DFileChooserEdit
Change-Id: Ic93b33f30f40a5d70db33e8adaa3c14af78ad45d
2018-10-28 14:14:14 +08:00
listenerri 05053a5380 add: doc for DListView
Change-Id: Ia340261d0c96e53a497bbe71df594c3bff5a30ab
2018-10-28 12:36:02 +08:00
Iceyer 6cea6e8422 fix: radio setting widget height error
Change-Id: I756f22bc6815114905ec5d3593e393e1de247f48
2018-10-26 17:50:23 +08:00
Iceyer 76c768b142 Release 2.0.9.5
Change-Id: I8d958b992fa011e670ae93b5b0ed80ca3a4c2300
2018-10-26 09:08:22 +08:00
haruyukilxz 1f8c744b3c feat(DTickEffect): keep animation value from widget size changed
Change-Id: I9e6f254bb694d0222c499c664cf983d452ccb443
2018-10-25 19:12:19 +08:00
Iceyer 4d49b1d15f docs: DSettingsWidgetFactory
Change-Id: I8b001c8c61eedac7d0a050e17b64de414f9d295f
2018-10-25 15:38:37 +08:00
listenerri eb55642ac2 fix(DPasswordEditAnimated): alert visible control
remember visible of alert widget before the main widget hide,
restore visible of alert widget if the show event of main event

Change-Id: Ib504a9f7ec72aaa0ebcc68344e3c17751ece57c8
2018-10-24 10:34:16 +08:00
rekols cd8578f608 docs: add documentation for daboutdialog.
Change-Id: I80b4edc831dbed3b4e33ac4d199e9a5064ceb94a
2018-10-23 11:33:03 +08:00
zccrs 1bc1856f73 refactor: by default use the dbus method to implement the process singleton
Change-Id: I3fa9bdfac7bc936112fbca7e15732e966db53c7d
2018-10-19 16:57:22 +08:00
Hualet Wang 90c814fc24 docs: document DThemeManager
Change-Id: I3f7f2999020345d965d7f6c18ede91dd5df6ea9a
2018-10-19 13:19:09 +08:00
zccrs 455ef190dc Update the titlebar icons of window close/maximize/minimize
Change-Id: Ia23e236064215789707fb45e5b79ae6b83d24eeb
2018-10-19 10:20:21 +08:00
Hualet Wang e48ed5c2e8 docs: document DSwitchLineExpand
Change-Id: If7cb2bbaa22658b0dd719359d477f2c541dc66b8
2018-10-18 16:48:55 +08:00
haruyukilxz e5cf29f793
fix(DImageButton): remove wrong sizehent
Change-Id: I6baa50d291c92f787f80a45cc26a56fb5ee67fb0
2018-10-18 15:52:25 +08:00
Hualet Wang dc08b64a4f docs: document DSegmentedControl
Change-Id: If3d4fa362f55a4567f88a49dfae0114ffebf2430
2018-10-18 14:32:07 +08:00
zccrs 65db6083e0 refactor: update the image files of window buttons
Change-Id: Ib19c7e0406085a0c140117d5e747821049be2911
2018-10-18 10:38:50 +08:00
haruyukilxz ec41a75f87 feat: update check deepin-manual path
Change-Id: I3f964b37e61f58f93be87223b823ebe1ea7206a7
2018-10-17 14:17:12 +08:00
listenerri 67f6772034 add: doc for DInputDialog
Change-Id: Ia7b0bbeb3b4baf6c99228449730e65f999350b01
2018-10-16 11:52:05 +08:00
Gary Wang b9fd054a81 doc: documentation for DFileDialog
Change-Id: Ie32ecb4ba73938037c7c7a4894c0110695650083
2018-10-16 10:52:16 +08:00
rekols 59bfc2e1b6 doc: add chinese documentation for DTabBar.
Change-Id: I0ff6292b7a8b2f9d2ba92f861878e1e0a997d228
2018-10-15 16:25:57 +08:00
rekols 272b7582fa doc: add chinese document for DSimpleListItem
Change-Id: I9ed2f77a4b415c41aff42d2fd39b153fa30283df
2018-10-15 13:41:10 +08:00
listenerri e49c33b6f7 add: doc for DArrowRectangle
Change-Id: I3e0916b0e4faa4616a1a3e986c5f1953e30a4174
2018-10-15 11:06:24 +08:00
listenerri d35f2ebf0f add: doc for DBaseExpand / DArrowLineExpand / DExpandGroup
Change-Id: I039106d9a4021ece1c48b0fd912549d368014363
2018-10-14 18:57:19 +08:00
rekols e85c0e7afb doc: add chinese documentation for DTextEdit
Change-Id: I8d359ceca312b61a91532410c4a39fdc41356775
2018-10-14 18:15:30 +08:00
rekols faed9cbf53 doc: add chinese documentation for DSimpleListView
Change-Id: If1d408d916cafe8b347aeec7fb7e04e2bfe77fb1
2018-10-14 18:15:14 +08:00
listenerri ba8eb651eb add: doc for DListWidget
Change-Id: I9d9073e492316eea200d0b214a6eb17d97f4f89c
2018-10-14 17:54:54 +08:00
rekols b93bd66832 doc: add chinese documentation for DSlider.
Change-Id: Ie2b36dafebfabe788fd0f6864f02a7832daeae6d
2018-10-14 17:26:31 +08:00
rekols 9fce09c20c doc: add chinese documentation for DBaseButton.
Change-Id: Ie8840a7126865356ca474a8fc3a2fb318b1b85da
2018-10-14 17:26:20 +08:00
rekols bedffa0226 doc: add chinese documentation for DToast.
Change-Id: If4349b7048ea629a03e856778fc6e492600c37e2
2018-10-14 17:26:12 +08:00
rekols 59cd9327d5 doc: add chinese documentation for DLabel.
Change-Id: I57eb7221e4fdf403a9ffbfe32b572709978026c2
2018-10-14 15:55:42 +08:00
listenerri 91aa6b1865 add: doc for DSpinbox and DTextButton
Change-Id: Ia0d0d81dbc6b53aa32ab4aa98294eee5f5fa16c5
2018-10-14 13:39:12 +08:00
Gary Wang 7643f6bd67 doc: DFlowLayout documentation
Change-Id: I84fb60b611033963b5266e9572839bb4f0511ed5
2018-10-13 15:24:15 +08:00
haruyukilxz 93568dd127
doc: add chinese documentation for DTickEffect
Change-Id: I68a3983caf36336def725989dc57cd99f36f210b
2018-10-13 14:51:57 +08:00
haruyukilxz 988ce8c096
doc: add chinese documentation for DSwitchButton
Change-Id: I226696b64b3db61bce0edd0e6f9c6938c815d72a
2018-10-13 14:33:24 +08:00
haruyukilxz b172c01384
doc: add chinese documentation for DSuggestButton
Change-Id: I63723a224bf075644df87dab37e767536700316d
2018-10-13 14:21:54 +08:00
haruyukilxz fc5f6fbe25
doc: add chinese documentation for DPushButton
Change-Id: I1416006cc9a8be966a4fc2aa6f42a94ef2eb68ad
2018-10-13 14:12:14 +08:00
haruyukilxz 0aa759ff3f
doc: add chinese documentation for DPasswordEdit
Change-Id: Ib7c825f83f90bb1ba23b4fba17ad8b5e691f830f
2018-10-13 13:56:41 +08:00
haruyukilxz cf4dadca4e
doc: add chinese documentation for DMPRISControl
Change-Id: I049aba9da28cccf8388434443b2579eace55ca58
2018-10-13 13:46:59 +08:00
haruyukilxz a78578bbe4
doc: add chinese documentation for DLinkButton
Change-Id: Ic9556bf9c42654fc296faed213d185ed1b4d8bd6
2018-10-13 13:23:38 +08:00
haruyukilxz 1f07563329 doc: add chinese documentation for DLineEdit
Change-Id: I3388855704409860fa02c160b58ac160e6a4c35c
2018-10-13 13:11:17 +08:00
haruyukilxz 3eccc82d0f doc: add chinese documentation for DImageButton
Change-Id: Id80b9feb198cb5e87dc8fdafab26afab859ff4d5
2018-10-13 13:11:09 +08:00
haruyukilxz 13dae04d79 doc: add chinese documentation for dboxwidget
Change-Id: I428f24e6db7b12cb346dcd6da03f58980c9e1b12
2018-10-13 13:11:01 +08:00
Gary Wang afb7e06fdb doc: DWaterProgress Chinese and English doc
Change-Id: I7272075f7a04257cb9375ddf1d0c33326cbb7576
2018-10-12 15:41:53 +08:00
Iceyer 68ab7294ec fix: context scroll error
Change-Id: Iba8bc565b078b3aea3df80f617d21214037f0f54
2018-10-12 09:22:28 +08:00
Hualet Wang 286439c357 docs: include image resources used for docs
Change-Id: I569a7b9b31e6965949bcae19dade0010be7a163f
2018-10-11 19:57:47 +08:00
Hualet Wang 7aea1b94ac docs: document DSearchEdit
Change-Id: I1491ba18cb60fa7f4f2981edc2f644055e800f30
2018-10-11 19:52:02 +08:00
Gary Wang 7edd27d428 doc: DBaseLine and DHeaderLine
Change-Id: I693b66366a8d82836dc73ae46e0de9ab1d3ffd10
2018-10-11 16:02:02 +08:00
Hualet Wang 63df04970f docs: document DPageIndicator
Change-Id: Ib99a0a14c04cf2dedca52aebd44cc3c191b426ce
2018-10-11 15:53:11 +08:00
Hualet Wang 088a9f35d9 docs: document DLoadingIndicator
Change-Id: I5f31c0e3b3b9303223d472bc559a798730750d0d
2018-10-11 15:47:11 +08:00
Gary Wang e8e4c9c9f7 doc: DCircleProgress chinese and english doc
Change-Id: I4813b0116b5de1ecde3ff234981e0fe1a5efd40f
2018-10-11 15:09:28 +08:00
Hualet Wang d2aa044e6f docs: document DSeparator*
Change-Id: Ibf26ee77a83f86b9aaafa87666d3c4464cfb35fd
2018-10-11 15:03:50 +08:00
Iceyer 8cf161e7b2 refactor: change IconButton to DIconButton
Change-Id: I42863d46ae7ccc69c6d08a44edd2f6691307bde7
2018-10-11 14:20:23 +08:00
Iceyer 07a584ef90 docs: fix DPasswdEditAnimated namespace
Change-Id: Ic78863e8b0124ee58ea434ce50154c923f2d8152
2018-10-11 13:35:52 +08:00
Iceyer e9385be617 docs: doxygen DStyleOption
Change-Id: I5930a1019ddf8130e33f545db5572f47caaa4425
2018-10-11 13:30:34 +08:00
Hualet Wang d290a5b8f2 refactor: mv startupnotifications to private
Change-Id: I1e81702e2f5f2b0364084255b4584e2a3def392a
2018-10-11 11:42:50 +08:00
Hualet Wang b4193d16f3 docs: fix two place no-space errors
Change-Id: I513f994dc01d517a6e9ac9ba72d36a0cd9fffe85
2018-10-11 11:42:25 +08:00
Iceyer eb236737ee docs: doxygen for DGraphicsGlowEffect & DPictureSequenceView
Change-Id: I89ae76fc275ca2cc432d90625789af4dfd16b1a1
2018-10-10 17:59:43 +08:00
haruyukilxz 492b2b93a2
fix(DBlurEffectWidget): not refresh when update mask alpha
Change-Id: I77cc0d85736c0baefa779b3b417a13b41d61fb32
2018-10-08 15:34:53 +08:00
haruyukilxz 9a72d912d8
feat: update version number for expermimental
Change-Id: I47d502733be3b8418655516672135523bf7f7700
2018-10-08 13:36:03 +08:00
haruyukilxz 5cdfd2f387
fix: run tag script error
Change-Id: I5ed30d3dceec743a46aa20e81f244abe1e092bd4
2018-10-08 10:58:53 +08:00
haruyukilxz 3ce05b0ef3
fix: repair version number error
Change-Id: I29d9465243d9e06aecd144a81b00b701e68ee7ce
2018-10-08 10:43:10 +08:00
Gary Wang 8901a0b15d doc: doc for DSpinner
Change-Id: Idf27a13afa353fd9a9bcf3a8a6a2cc7a2c0d5ad6
2018-09-29 16:59:34 +08:00
Gary Wang cd127c9974 doc: doc for DArrowButton
Change-Id: I8f04671733f3ebc280a1e17d1bffdb1694d2080a
2018-09-29 15:30:26 +08:00
张丁元 bf7d90afb8
Revert "force modified version to 2.0.9.4"
This reverts commit 11e8ac9c45.

Change-Id: I9ff7d576c54d2a6aefec8e6c7a72898094bf2b5d
2018-09-29 11:01:39 +08:00
haruyukilxz 121d067e26
fix force version
Change-Id: Ie894f36224d9b3a6988cb4a3bd17ede5fc17e3e7
2018-09-29 10:18:12 +08:00
haruyukilxz 11e8ac9c45
force modified version to 2.0.9.4
Change-Id: I500b5de89250f9dd0c00dc9e117b52be207bfe04
2018-09-29 09:56:31 +08:00
zccrs 80932853c3 docs: add document for DGraphicsClipEffect
Change-Id: Icb1c22178f2151f763284ea6a9774bd22f907b39
2018-09-28 19:35:52 +08:00
zccrs 3c5c864743 docs: add document for DClipEffectWidget
Change-Id: I27dfbdbbc3cc4676c3d13d583a28181bcecdd4d0
2018-09-28 19:16:47 +08:00
listenerri dbc1588b15 doc: add doc for DPasswdEditAnimated
Change-Id: I02a6729e73c488359e78d1319f48f08e4829d8fc
2018-09-28 16:48:56 +08:00
zccrs 19e0be68b9 docs: add document for DIpv4LineEdit
Change-Id: Icffa020dc08f8d32c16bed988b0de0a714dc66fe
2018-09-28 11:39:47 +08:00
haruyukilxz cfd530acf0 doc: add chinese documentation for DBorderlessWindow
Change-Id: Iea778632822d5e9df6a48f7a2921127c99b8dec4
2018-09-28 09:57:06 +08:00
haruyukilxz e9d281500b doc: add chinese documentation for DBorderlessWidget
Change-Id: I62b115933ded768c030f82417bc6a752325d1ee8
2018-09-28 09:57:01 +08:00
haruyukilxz a380128ede feat(DBlurEffectWidget): support set alpha
Change-Id: I63dabbd1661c82ae7e5d25f11b75fbf10842cd10
2018-09-28 09:45:39 +08:00
Hualet Wang 9e1564a3dc docs: document DWindow*Buttons
Change-Id: I4265257e2159eaf3eff0226ddb60f2235c77ea5d
2018-09-27 13:17:14 +08:00
Gary Wang 56b2c455d9 doc(DDialog): doc for DDialog class
Change-Id: I92d0727d5f3eb9b70fee79334b7a714548779fae
2018-09-27 11:14:11 +08:00
Hualet Wang 9d5d9ad121 docs: follow the rules
Change-Id: Iec531ead2dbd077332ded512cb94cd5c47ffb284
2018-09-26 19:18:05 +08:00
Hualet Wang dd80934918 doc: add Chinese documentaion for DApplication
Change-Id: I2c89a113e3fc8e657e077b03ad32bf11bb89296d
2018-09-18 18:01:43 +08:00
zccrs 6d8739e2b3 feat: set Qt::AA_ForceRasterWidgets on sw/loongson
Change-Id: Iaae323948916c9483fbf8fceafabf4dae3f4f575
2018-09-06 14:27:56 +08:00
Iceyer 9d034f1ff7 refactor: remove deprecated interface
Change-Id: I5d0d1454df90c577f0f1dd1c4b26cb2489599aca
2018-08-31 10:56:56 +08:00
Iceyer 93c9b37393 refactor: new dswitch button
Change-Id: I2d6b33cffb7ff296640aadbcd7cb5083185974e8
2018-08-29 10:14:24 +08:00
Gary Wang 481ba0a0dc fix(trashMgr): Will remove broken symlink now
Change-Id: I5cc197d97b73d592e9bb7083d5defeab6cab0513
2018-08-27 16:05:14 +08:00
Iceyer 316ee49f03 Release 2.0.9.3
Change-Id: I13a86114017207e9060d8af41bc1f357b1f7aa69
2018-08-23 11:03:15 +08:00
Iceyer c5d125a9de feat: support hide acknowledgement
Change-Id: Ifb7fd6f7583a9e0f297e8f303477695d4b1224e9
2018-08-22 09:02:01 +08:00
Felix Yan 935048dead refactor: fix a typo
Change-Id: I688f8d578709d192bae259b6836c01ec58463f03
2018-08-21 16:44:10 +08:00
Gary Wang dbcf048c23 fix(trashMgr): Will delete symbol link recursively
Change-Id: Ib926ac8050ee30b61b43eb70022787c2774ca0c8
2018-08-20 14:44:13 +08:00
deepinzhangshuang 5e092d9a00 fix commit build version
Change-Id: Ia52a8ec0edb4c7223b064dbbd0e16e480713188a
2018-08-17 10:58:48 +08:00
haruyukilxz a149d05b57 fix(DSuggestButton): draw text twice
Change-Id: Ia5b0e0b75cc89676e1aea30e0c4a5ac1f227fa9c
2018-08-13 16:02:06 +08:00
Gary Wang 5d0fc56493 feat(toast): interface to set duration
Change-Id: I3ef792c80adfb14f7c8adafd518030f2cfb74c61
2018-08-13 15:02:29 +08:00
zccrs 115febed53 feat(DSettingsDialog): follow the system font size
Change-Id: I52e8999c3aac0ebc7cc83a8166ede273631ae79f
2018-08-12 12:33:22 +08:00
Iceyer ebcf2b1541 Release 2.0.9.2
Change-Id: I11f1efb390a51b6c7a9116bb3ad2839b70168043
2018-08-07 10:37:09 +08:00
zccrs 9d67a8a5b8 refactor: use the QCheckBox default interface display the widget label
Change-Id: I2b0730c7f14c68ca7e61282726206f72b8c981b6
2018-08-07 09:14:36 +08:00
zccrs ab03a05891 feat: use new interface for DPlatformWindowHandle::enableDxcbForWindow
Change-Id: I3673e8cd0a1d23c0d911e0a3d0c5e1a2bb06f340
2018-08-03 14:11:42 +08:00
Iceyer 3d7138f1de Release 2.0.9.1
Change-Id: Ib9815d5e0e978525b632ff60f564aa096d7b09dd
2018-07-25 10:46:08 +08:00
Iceyer f55e1555f4 Release 2.0.9
Change-Id: Ia1a6789752c600fe6a2745db4b971775e7e386a0
2018-07-25 10:44:43 +08:00
zccrs 0afad0c230 feat: support set the translate context on DSettingsDialog::updateSettings
Change-Id: I3c8ddecf05e9b69e0fcaf037eb1f84385bddba4e
2018-07-23 12:05:41 +08:00
haruyukilxz 5af9fa21a7 fix(DTitlebar): When the window is fast hiding and displaying, the state is wrong
Change-Id: I31104765a890b5598b7d309c8c941a428e833a16
2018-07-20 11:57:03 +08:00
listenerri d4e004fb9f expost: invalid message
Change-Id: I1c7b087b5c349c05992e0add17f354d585c6df1c
2018-07-16 15:32:18 +08:00
zccrs 1772a8a8f6 fix: crash in DTabBar::dragIconWindow
Change-Id: Ibf3f7f95d496fc3e845709b258e52fcbb95e3719
2018-07-16 11:20:15 +08:00
Gary Wang 870cf29cea fix(sfx): sfx playback name should conv to camelCase
Change-Id: I6a1e024be4031f1d5b814fc4c05d8d008c2e24a8
2018-07-09 13:40:18 +08:00
Gary Wang 1242bf6430 fix(DTrashManager): clear trash behavior not correct
Change-Id: I65bcee631da8d8db3089370beb28144d20c66ef2
2018-07-09 11:12:30 +08:00
haruyukilxz 79d728331d fix(Dtitlebar): not update max button icon
Change-Id: Ic4e5ee1b224ba84f3ec5ec2c7479af5ae63d7334
2018-07-04 10:27:48 +08:00
zccrs 695e4eb59b refactor: add DSvgRenderer::toImage
deprecated "static QPixmap render(QString, QSize)" of DSvgRenderer

Change-Id: I896cd7b3e8fe63860b80f5f0e11a5edb9063408b
2018-07-02 16:27:59 +08:00
haruyukilxz a1e5697a31 fix(dscrollarea): initialization with nullptr
Change-Id: If2e397820a18cab8012ce087c2a1684e4b295868
2018-06-26 14:30:57 +08:00
listenerri dbd7077fb6 add: use wav files to play sound effects
Change-Id: I4baa6db80ccd109826a6135b666df4e8ee281449
2018-06-21 11:40:20 +08:00
listenerri 4a1487c953 fix cannot get focus after error tip
Change-Id: I9bc7f9f9dd3cf569a28500e3d949253d6db45121
2018-06-08 20:13:56 +08:00
listenerri 2e6588fd5a fix keyboard button enable
Change-Id: Ib1bfc2e1490cf837ef9dbd904fabf7f1ac791557
2018-06-08 17:13:23 +08:00
deepinzhangshuang f95c70d819 remove some symbols chekc to support qt 5.10.1
Change-Id: I272b5f7868720a0477612ccfc62eff2959d1c6ff
2018-06-04 14:57:34 +08:00
rekols 47ce001c88 update trans
Change-Id: I883df64da3941ada3ad1c031aec2d43bb59b1e9b
2018-05-24 13:23:10 +08:00
haruyukilxz 856d2f5a3e fix(DVideoWidget): byte preline missing
Change-Id: Ie8e746429a8e58278d14d9fea82f6fa3a22644b7
2018-05-23 17:37:14 +08:00
Iceyer 565bfd5f6f fix: quick change fullscreen state crash
Change-Id: If0ec5b64ecd8d96ba8bfa91e6681d2ffe44efa69
2018-05-22 17:34:58 +08:00
zccrs d33d8b0ea7 fix(DTabBar): no signal when tab is removed
Change-Id: I63286514c589580d2bf2e97fdd5449d1c89d1c74
2018-05-21 16:58:58 +08:00
zccrs 2172c4bbc3 feat: add signal for DTabBar
signal: tabIsInserted
signal: tabIsRemoved

Change-Id: I82ed4196b15fd934218024eb90ddf4b70322a15d
2018-05-21 15:21:41 +08:00
zccrs ff5b9480e1 fix(DTabBar): setTabMaxiumnSize is invalid
Change-Id: I4e262c7bcb5d8a2226d1f6c34cbea9c692961d12
2018-05-17 15:58:49 +08:00
deepinzhangshuang 9fa542202e fix .release.json format
Change-Id: Ia2704b8ff54253b263c510ef0298e2fcc6c0e03c
2018-05-17 10:33:33 +08:00
deepinzhangshuang a30edc469f fix max version in master
Change-Id: Ic4e0239002ad4d6075983179fc63d436d6493e99
2018-05-17 10:09:28 +08:00
rekols 5c7da52e5f fix: did not clear hover item when leaving.
Change-Id: I352a56f74719f8ce31fd346fdf679626640c90ac
2018-05-16 11:10:53 +08:00
zccrs 4d55296b63 fix: the right scroll button of DTabBar cannot visible
Change-Id: I935ef3d20bd438202a6cf82aa98a164fb0f7ada7
2018-05-15 16:50:37 +08:00
zccrs 61c3a3e9d0 fix: DTabBarPrivate::stopMove will trigger drop event
Change-Id: Id46960ca04fbf9d2c3e3e00b4d17c08e1c46415a
2018-05-15 15:46:29 +08:00
listenerri 7fe21f71d8 refactor: new implementation about anim
Change-Id: I2062cd2500cd72ddb9fd8839e101fa22cb89f782
2018-05-14 16:37:48 +08:00
Iceyer 000b06eb0c fix: remove missing symbols
Change-Id: I835c8c7ec4f204b023f8dadd26afe95d045b07e6
2018-05-14 15:54:58 +08:00
Iceyer ea074f6dc5 fix: update symbols
Change-Id: Id81910fae75f494f139173750914a94bc667d6db
2018-05-14 15:23:21 +08:00
Iceyer 550f2fc4b5 feat: DSettings support spinbox max/min
Change-Id: I7765ccf6ccb9f0ebb23d3b2a3c739808739b4891
2018-05-14 13:36:40 +08:00
Iceyer f99378368c fix: reset short cut not show
Change-Id: Id11415ad0e74b270b4488ac16010000c0e2a1c6a
2018-05-14 13:16:26 +08:00
ri c7729711c0 Improve UI of DPasswdEditAnimated
add backround-color transparent
add QLineEdit expanding

Change-Id: I9831dbc3bb140628f6de4c8fee0602e3e34aeca4
2018-05-11 11:01:14 +08:00
haruyukilxz a8d4adaba7 fix(DInputDialog): not enable clear button
Change-Id: I3914803be4c14d8678d001731a4395fc1c8276ce
2018-05-10 16:10:24 +08:00
isoletsy 44ad0764cf ignore missing symbols on mips64el and sw
Change-Id: Ie54500e25a709741e6cce9488a2a82e566fc84a1
2018-05-09 16:53:01 +08:00
石博文 621fd81aff check if schemas not installed
Change-Id: I90ce6f630193eb3ecc75869a7fa7edd01a6cd7b6
2018-05-09 16:31:25 +08:00
haruyukilxz e2f1be1211 fix(DSettingDialog): sync scroll when use hotkey
Change-Id: I60d458245398af34568b06890554cf4cf7c2c6e5
2018-05-09 15:43:55 +08:00
石博文 45da32beb6 feat: Hide album picture if it's null
Change-Id: Ie22335d4bd54eadaf14fe8383f01aa83b2eac53e
2018-05-09 13:48:47 +08:00
石博文 f7cad1377e Feat: load system cache limit settings
Change-Id: I494466974453a9443fb722ce7c2fb4928f815a65
2018-05-09 13:42:16 +08:00
haruyukilxz f280a09c2e fix(DDialog): replace Anchors to DAnchors
Change-Id: I720092372545a6a6bab3fdb223359a474d075455
2018-05-09 11:12:59 +08:00
石博文 8cf6740265 migrate: update dframeworkdbus version to 2.x
Change-Id: I8a094fdb3b96d80f21c39ae6a6948b53b1f5d41f
2018-05-08 13:50:43 +08:00
listenerri 68af8f683d add new function: lineEdit
Change-Id: Idb506446f5fbd8099292e726fe88c4cd089f1889
2018-05-07 18:05:23 +08:00
石博文 08ed2dfcc2 Add OOM score adjust func
Change-Id: Ic82837d98499f41b0701d6eba55ff9c000362b41
2018-05-07 16:09:54 +08:00
ri fe33f6e64f Add keyboard button click signal
Change-Id: I6454c5376410a436c4c794bc672fc8ac5c98a092
2018-05-06 21:13:58 +08:00
haruyukilxz d543e68f65 feat: add registerDDESession
Change-Id: I6aeef23506e04855bdc4708dcce28c919295ed53
2018-05-04 13:57:29 +08:00
Felix Yan 785c8303da
refactor: fix some typos
Change-Id: I126c6464d76afeb1df41ab8773a0ee555a0a37ad
2018-05-04 13:32:51 +08:00
rekols 5eb61574a3 fix(mpris_control): image does not zoom
Change-Id: Ifd5d50d82864f812ce54f941c8fa360acf345b12
2018-05-04 10:56:13 +08:00
Andy Stewart 5b0aee6d10 Add setSingleSelect interface.
Change-Id: Ic98b784889145b01028ef8ef96200aa456e86188
2018-05-04 07:33:34 +08:00
Andy Stewart 02f18f91d0 Add new function: keepSelectWhenClickBlank.
Change-Id: I3e70069d477d44e67f81d956908e9bcf23e2cb20
2018-05-03 17:11:13 +08:00
Felix Yan ee8a64190b
fix: build failure due to missing xi in pkgconfig array
keyboardmonitor made use of several XI functions without having xi added
to the pkgbuild array. This causes a build failure about undefined
references to those functions. Adding xi fixes it here.

Change-Id: Ifb8171c085c30b014e396376e743ff0ef1fea3b0
2018-05-02 14:54:06 +08:00
Iceyer cb888e9229 fix: remove some symbals
Change-Id: Ib92bb53fcca0fefe14ab85f4010541f2c0b5f210
2018-05-02 13:44:33 +08:00
Iceyer 7b7e350251 Release 2.0.8
Change-Id: Ida56afe25154d274e4c8bf19e57881e893f2c937
2018-05-02 12:11:13 +08:00
Iceyer a811208d0e feat: add symbols check
Change-Id: I379febd6e994f371f594a9cafde79db9b6304812
2018-05-02 12:01:57 +08:00
listenerri 315e082bf9 refactor DPasswdEditAnimated to D-Pointor
Change-Id: I9ec7847e68481f8dd6ee16180df7e77d98fd24de
2018-04-24 15:25:55 +08:00
haruyukilxz 5727efe41a feat: register dde session manager
Change-Id: Iafa7f6a109a1eb0b95e49c3c857398506b05e63d
2018-04-24 11:09:21 +08:00
isoletsy e2894a98c0 add libxi-dev in build depends
Change-Id: I2bb66cb60c9e0c4d8a2ece0bbe023f412bce1f40
2018-04-23 17:12:39 +08:00
listenerri b6821a613f add disable load animation and abort auth
Change-Id: Ifdfacb9bf7d69d135f6b167901f44897e6985b6b
2018-04-23 16:54:07 +08:00
listenerri 16aebb1f9a add dark theme and improve light theme
Change-Id: Ia719136c053a21c23ac81d13874102ec3fa8a14e
2018-04-23 15:18:25 +08:00
listenerri c4ac1da6be init keyboard button visible
Change-Id: I626334de541406c7f7f3941c2ab45d195f9a8f9d
2018-04-23 11:32:04 +08:00
Felix Yan 3941dda581 fix: double free of list item on exit
The individual items are in the list, by deleting the item and the whole
list again will trigger a segfault.

This fixes the segfault when applications like deepin-system-monitor
exits.

Change-Id: I4ee7b9c759491fe83335ba971a7806488a02d98e
2018-04-20 14:33:57 +08:00
listenerri 18a4076cbd show animation when submit
Change-Id: Ieb40cbfb3c0e1fb93e44e5009cf3c58848e4f07d
2018-04-20 13:49:10 +08:00
Felix Yan 0d7870b30b
refactor: fix a typo
Change-Id: I9752ecbb7e0f2d190d8d72bd69775afd206b9fba
2018-04-20 10:14:01 +08:00
listenerri d5eaa779fa show tooltip when input invalid
Change-Id: I178a8503483edd3725f21f5391e589ad5825e816
2018-04-19 17:23:29 +08:00
listenerri 558655bd7b fix dependency
Change-Id: I2d435319e9dcf6f3cfa7654e6b3bff14a71971b8
2018-04-18 17:40:50 +08:00
listenerri af29a993d5 password edit widget with animation
Change-Id: I44627eb16366cf1c4bb9154e3ae1e6842d98b70d
2018-04-18 16:23:37 +08:00
transifex 6531809628 auto sync po files from transifex
Change-Id: Icc14862014344ab01141656f9243ceb8d0a12d1f
2018-04-17 10:53:01 +08:00
listenerri 2cbcf25023 control buttons and picture visiable
Change-Id: Id237fb5406e8476ad94dc7bed517217e71315b80
2018-04-17 10:32:02 +08:00
Iceyer 9194f83b5f fix: build failed when no static build
Change-Id: I4f607261fc778663dd20a2fa91105a93f470cd96
2018-04-13 09:54:46 +08:00
Iceyer 0732643960 feat: support dtk_lib
Change-Id: I5605891eec17f31d4afb4cdcc5dca2a57b921a18
2018-04-13 01:12:13 +08:00
shihua 390f51bf6f feat(DCrumbEdit): progate Key_Escape to parent window.
Change-Id: I5413dc6f412d0b26f65b0f8d9563966e06a1a2df
2018-04-11 14:15:47 +08:00
shihua d39ce0782c feat(DCrumbEdit): support to send Key_enter or Key_return to parent window.
Change-Id: Icf2201784417faf7aa76e8878768114f904c79f0
2018-04-11 09:27:41 +08:00
zccrs d6d9f4ff3d feat: add DWindowGroupLeader
Change-Id: I9bf91ada334038107123655b36576132e18eb33f
2018-04-09 20:00:22 +08:00
Iceyer 5fecfc04e0 feat: support DTK_NO_MULTIMEDIA
Multimedia depends on mf.dll which is not aviable on Windows XP,
so disable it if need

Change-Id: I9b9b8dbb39b9127eca1e55ba70e32e8e92db9933
2018-04-09 13:02:47 +08:00
Iceyer 84c50e8341 fix: remove useless module
Change-Id: I1fbd01b71d9c6da520da101d73f3420da755e16f
2018-04-08 09:19:39 +08:00
Iceyer 88095fdf22 fix: isValid not work in flatpak
Change-Id: Ia1986838b932ef9748a66bdf35cf7be5b8a74a85
2018-04-03 14:13:53 +08:00
zccrs 2d1529974c fix: support hi-DPI for DClipEffectWidget
Change-Id: I3bfe8109fbf37868a4015da3a9b0c15573d891a9
2018-03-29 13:41:42 +08:00
zhangshuoliang 2063ea4513 Update ddesktopservices_linux.cpp
Change-Id: I817aff0a78f6d3bc1ca72a447dccd0353a41fed6
2018-03-21 12:00:34 +08:00
Iceyer bb863db018 fix: wait dbus call return
Change-Id: I0065a0f7cded10f7a09bc739aa4a09df7f82bbc9
2018-03-21 09:58:14 +08:00
zccrs c487b5cb46 fix: can not auto adjust dialog position
Change-Id: Iafbd7a681c989e1de08fea012da34beb5982bc52
2018-03-19 17:06:41 +08:00
zccrs 3927d441f8 feat: insert virtual tab on DTabBar when drag enter
Change-Id: I59b568756448778ebd793c3e3f500d842ee39dc5
2018-03-13 10:29:18 +00:00
zccrs 3f4bc68bca fix: add DAbstractDialog::move(int, int) and DAbstractDialog::setGeometry(int, int, int, int)
Change-Id: I7a584ba7f7af114037d104012ce71143b80c43ce
2018-03-13 17:49:13 +08:00
zccrs 13d22e32cc fix: crash when quit application
Change-Id: I347ddf47230bf7d04f9e3d7e0267a8bf4920a756
2018-03-13 17:29:49 +08:00
zccrs 7d578e999a fix: move the DAbstractDialog window is invalid
Change-Id: Ifd1984173088453a93a5015325773ac2cf1a7126
2018-03-13 17:22:28 +08:00
石博文 8117bf74a7 remove ununsed cmake.in files
Change-Id: I6db82e02bb698fc51b9b1c143538fde4eaf36c08
2018-03-09 16:02:43 +08:00
zccrs 97ac1992bb fix: the DPasswordEdit text color
Change-Id: Ie589c1c3b148dd74b95b0c634c8d0cd25cb4b716
2018-03-08 14:35:36 +08:00
zccrs ebf62801e6 refactor: remove set LIB_INSTALL_DIR and VERSION at debian/rules
Change-Id: Ib2eb7f8aeec66b14403509f444aa5326f6e9b659
2018-03-07 11:32:12 +08:00
Andy Stewart 513ea9d383 Execute update after setAlert.
Change-Id: I92dae17b0fdf002593155cd61a7f83aebd4438bb
2018-03-06 20:16:19 +08:00
Iceyer 20dfc97447 fix: hide max button if cannot resize
Change-Id: I7398c823843c149a23c7a0cec820a8d928e657b2
2018-03-06 18:30:17 +08:00
Iceyer 98be9fed1d fix: work around DSimpleListView cannot use tr
Change-Id: I7d85e2d42c766c01e85f9fdd13a91ad5766ad50a
2018-03-06 10:29:12 +00:00
zccrs 7b6caece03 feat: the DLineEdit inherit style form the QLineEdit
add DStyleOptionLineEdit

Change-Id: I38d491297edb7bfd6c50a3d5c00e6dc4844e15d8
2018-03-06 17:39:36 +08:00
Iceyer 66a323c923 update translate
Change-Id: I8cde148534a2f1246ef64a3de39849774324d5d7
2018-03-06 14:01:15 +08:00
Iceyer bd1b7f0d3e fix: dtk_build add error marco
Change-Id: I030318c52a78a2dc4f50a7379a65258da256e89a
2018-03-06 14:00:41 +08:00
Iceyer d2dfd67de0 fix: use fix class name as theme file first
Change-Id: I90a84e9c3dfee442748c00c21f76940f3f118da8
2018-03-06 14:00:20 +08:00
zccrs 611bc0c2ca feat: add "startDrag/stopDrag" for DTabBar
Change-Id: I766bcec424d4c28b21e08c9f35daea60986e44d8
2018-03-06 02:38:17 +00:00
Andy Stewart 2b52248954 Disable mouse click on DToast, avoid click it to move position of DToast.
Change-Id: Idca6d7d847a278c4b5c712b2875bc5953bf0c5c6
2018-03-05 19:43:19 +08:00
zccrs b8306b1cec refactor: remove config.pri
Change-Id: Ieff7ba798d592c9f0ab02d67ff06c2f49ae99a34
2018-03-05 17:56:11 +08:00
zccrs a7b9d9ba28 feat: add signals dragStarted/dragEnd
Change-Id: Ic288c93516165daf539dc25b58cdf047f58540aa
fix: no dragActionChanged signal when drag started
2018-03-05 17:00:09 +08:00
deepinzhangshuang 28bc7975cf update CHANGELOG.md
Change-Id: I8d039e5f6b09662156da8def69341981c1511fe6
2018-03-05 15:30:09 +08:00
deepinzhangshuang 5f15cafc53 update CHANGELOG.md
Change-Id: I3e3e4ed315c22274d81cd35edf8535192d28afe6
2018-03-05 15:02:33 +08:00
zccrs 08f4f2adc5 feat: support disable change window cursor on dxcb platform
Change-Id: I5ef3d48d66b207e1b3d2656c400b33b378d033c7
2018-03-05 14:50:27 +08:00
shihua 453f5c4c38 fix: use a wrong variable when invoke DCrumbEdit::appendCrumb in DCrumbEdit
Change-Id: Id9c3c58a993a084fec0c185ac53cee53390ad0c7
2018-03-05 13:34:05 +08:00
Andy Stewart d46e26c279 DSimpleListView: Add getSelections interface:
Change-Id: I3acf6ca36d2ab9f3638bd9b7490ce367fc89bae3
2018-03-05 01:11:57 +08:00
zccrs 6f894a67ef feat: add signal dragActoinChanged for DTabBar
add \"dragIconWindow\" function for DTabBar

Change-Id: Iffcf0ba8149e52dd6cbec03b72fa95dc9de00f09
2018-03-02 18:28:01 +08:00
Iceyer ab4706aa85 Release 2.0.7 2018-03-02 16:33:57 +08:00
Iceyer 39aa02b145 fix: check libdframeworkdbus when build
Change-Id: I977800ad716cc88e2a22318a3e8038a6506fc091
2018-03-02 16:18:43 +08:00
Iceyer 3e4293d156 fix: call deepin-manual with dbus and application name
Change-Id: If79fc8a25ba0ff3d425528b3270091f2ccd24ced
2018-03-02 14:23:32 +08:00
Iceyer 9c3888182d feat: control single instance by env
Change-Id: I2f21bae2a7d23b91994f83e4e5b0ec7cdec52e52
2018-03-02 14:23:16 +08:00
zccrs 9247673715 refactor: use json to store custom widget data for DFileDialog
Change-Id: If35152dd310cee000b5123b57e3ce41d583fd3d7
2018-03-01 17:51:29 +08:00
Iceyer 20c72e805c feat: support hide group
Change-Id: I342bb2c79a754ae5f15dbc6854229b6d2561cdab
2018-03-01 13:49:57 +08:00
zccrs 2e1c126e15 fix: the DPasswordEdit style is wrong at the DInputDialog
Change-Id: I5faac44f978bc28d483cab6e67bfbc7d486c1480
2018-03-01 04:57:16 +00:00
rekols a268fab4f2 fix(dsimplelistview): painting item is incomplete.
Change-Id: Icca19bdc1ca123383cb5e7e31687da79b7ec836a
2018-03-01 10:16:00 +08:00
zccrs 425d82bf52 feat: add DFileDialog
*support add custom QComboBox widgets on deepin file chooser dialog
*support add custom QLineEdit widgets on deepin file chooser dialog

Change-Id: I6d819fcc90afb589fe66f9b2a36658c22b3f5b37
2018-02-28 20:28:17 +08:00
石博文 5b9a820e84 dloadingindicator: disable default background color
Change-Id: Ie390c05e2477e88db83cbc1043aa038b760781d3
2018-02-28 05:31:43 +00:00
Andy Stewart 7fb6332f99 Remove setHoverEffect interface since isHover is control by drawBackground/drawForeground interface.
Change-Id: Ide14d3de1319f94c1ec287c776a70cebf5a258c1
2018-02-28 04:04:41 +00:00
Iceyer dfb05caee4 fix: use applycation name as new deepin-manual id
Change-Id: I185349a3bb39bec97c94beea296867932642804c
2018-02-28 11:19:40 +08:00
Andy Stewart 4e6a803a1c Move isHover to drawBackground/drawForeground, at same, remove drawHover interface.
Draw hover code should implement in drawBackground/drawForeground interfaces by application author.

Change-Id: If6fa48fc227ecbe426177e92922d455268c6d748
2018-02-28 11:11:30 +08:00
rekols a2452c1bf5 fix(dsimplelistview): adjust render offset.
Change-Id: Ib96e5ffd294a8a6a29b7a4b732582284295ee375
2018-02-28 09:20:30 +08:00
rekols 1b3b5f4ac3 fix(dsimplelistview): adjust offsetY after removeing item.
fix: drag to bottom of the scrollBar will hide.

Change-Id: I730b78b9059f3696fe95c5f7269fc4487c47ed1f
2018-02-27 20:46:42 +08:00
Andy Stewart 37cd11da73 Fixed removeItem and check index bound before emit mouseReleaseChanged signal.
Change-Id: I0fd70ac67490b9bfe8b8739a8bf8fd9c785788a7
2018-02-27 10:03:53 +00:00
Hualet Wang 2261137990 feat: dynamic website info in about dialog
init the website information according to the /etc/deepin-version
file instead of the hard coded text.

Change-Id: Ic4b0598dc0fcbca429fbbd4699999f54a9da28f5
2018-02-27 09:56:53 +00:00
Andy Stewart 1dd1ae68a9 Adjust coordiante in getScrollbarY
Change-Id: Ia2b368ac7be337f6713dcc708c7302a124a6d649
2018-02-27 09:38:13 +00:00
Iceyer dcf3a11a3c fix: parse key with + error
Change-Id: I2efa8c35142463ae1f9e59073dca1997508591a2
2018-02-27 09:27:21 +00:00
rekols d875f09466 style(dsimplelistview): remove all spaces.
Change-Id: I7ca74e036d08a08affbb3282a8076407c775cee8
2018-02-27 14:47:08 +08:00
Andy Stewart 6b57024976 Remove unused pointers
Fixed coordinate error when emit mouse*Changed signals
Add new interface removeItem

Change-Id: If94e8e0aff2d91c4e91d431e8d263784e40d63f9
2018-02-26 18:59:39 +08:00
Andy Stewart dfda232362 Add Button widget support in DSimpleListView.
Change-Id: Iac62d5c399e77ca1b27e4dd83d2f861a1d5f9a4f
2018-02-26 17:19:28 +08:00
石博文 1faeb1fe3b fix right click can trigger checked event
Change-Id: I3c971409cb00837238facfeed9d479db0d9c20d2
2018-02-23 16:39:50 +08:00
Iceyer ae5a226d82 feat: create cmake file by dtk_cmake
Change-Id: I0886197dd9dc7b5a677b670f3bf070597f2607eb
2018-02-22 14:00:21 +08:00
Iceyer 0049a0650e fix: state change not connect
Change-Id: Ied35ea43a0b535f8e12ac053c2edbfc651a85235
2018-02-13 03:36:10 +08:00
Iceyer 975e36df95 fix: add qt internal_module failed
Change-Id: Idf772da06108eecee3bbe1a51bd550a579182c62
2018-02-13 01:44:53 +08:00
Iceyer 1525c2cb36 feat: support qt module
Change-Id: Iffa23b1971e6e2f49b9a43a34804e3eb0139070e
2018-02-13 00:47:57 +08:00
Iceyer 48e23bc9e2 fix: delay connect native state change signal
Change-Id: I0ed487799fb233db476f97a6036a315732a2ad1d
2018-02-11 10:21:07 +08:00
Iceyer 7c7a4e383e fix: missing window state change in event filter
Change-Id: I7428f5113fededba268cd8e9345bd22fa01deef7
2018-02-09 13:36:34 +08:00
Iceyer 45f07ab60d feat: update password edit style
Change-Id: I75a658be23687193a11e2fc61775b364cb5b3259
2018-02-09 12:00:35 +08:00
zccrs 199c13b1ac fix: DTabBar tab list automatically scrolling too slow
Change-Id: Ie3e120c48b32273622447e16425479e569e72795
2018-02-08 17:02:33 +08:00
zccrs a382ecb108 refactor: remove DTabBar::setTabColor/tabColor
Change-Id: I4d81e84df6dacaf497387e16a5ffe71931780e51
2018-02-08 14:34:46 +08:00
zccrs d3a266bc9b feat: auto scroll when move/drag tab
support vertical layout
tab text align center

Change-Id: I98329d1b1210b278ce16e3c2acbd8d0fe9a82b32
2018-02-08 11:35:02 +08:00
Iceyer 3e3c88497b feat: support new and legacy dman interface
Change-Id: I37624b4fe2a23cf60536344579d378bc6136a969
2018-02-08 11:23:03 +08:00
Iceyer c669acdef3 refactor: dsettings shortcut use string value
Change-Id: I667863282de790c7840d59095034b4852267b8e8
2018-02-08 10:50:10 +08:00
Iceyer bdad10fcfc feat: support set combobox data with QMap
* support init items with QMap<QString,QVariant> that actually data is:

  {
    "keys": ["key1", "key2", "keyN"],
    "values": ["value1", "value2", "valueN"]
  }

Change-Id: I923b62732ceef8dd291f06fece5c6ba21a57a1e3
2018-02-08 09:27:40 +08:00
Iceyer 43de05f3d7 fix: max button hint error
Change-Id: I8ce9c38e520c832dd18faed36cabfded562d7351
2018-02-07 16:47:56 +08:00
zccrs 18df8e0e62 feat: fixed the QPrintDialog theme to dlight
Change-Id: Icb15363bc2d71b4abae5aefbc4a29b4b7b06bf68
2018-02-07 11:30:20 +08:00
Iceyer b121081cf4 feat: support dynamic property
Change-Id: I4edc4b8786b82f57b35d76ce76328f89b30bcf8c
2018-02-07 01:54:59 +08:00
Iceyer bad21514bc refactor: rename theme file
Change-Id: Ib2097e3e25e79ae83587a661759fdbd01cd06b00
2018-02-06 23:53:48 +08:00
Iceyer 4fd67cb2bd fix: do not flow windowFlags if not dxcb
Change-Id: Id473f2e9eca2c5e40746f771cae826afbc004517
2018-02-06 23:53:35 +08:00
zccrs b59cbffcfa fix: not draw tear indicator for DTabBar
Change-Id: I0a9aaa72b1a0803a7248d3fdda101cfffeaa632e
2018-02-06 17:51:23 +08:00
zccrs ec322589e3 feat: fixed the width of the DTabBar add button to 48
Change-Id: I0278d6d1b2bfc14a51ef5020d1acd7cd0094d234
2018-02-06 17:38:18 +08:00
zccrs 9aaa15830c feat: add buildDtkVersion/runtimeDtkVersion to DApplication
buildDtkVersion: return the libdtkwidget version of build application
    runtimeDtkVersion: return the libdtkwidget version of runing application

Change-Id: I4d8053265a6bdd5fd7f78fc4a843cc491c1189f2
2018-02-05 09:45:11 +08:00
leaeasy 5f48b1f9b8 feat: parser correctly when version has '.is.'
Change-Id: I6da4903da88bd00942d7aa076ca9341aa38ce270
2018-02-05 09:42:03 +08:00
Iceyer d1f7bad027 feat: follow parent/toplevelWidget flags
Change-Id: If8482d21009f844c76ab9c9019990bbec42d07cc
2018-02-02 19:57:11 +08:00
Iceyer 6c2d397a1a fix: connect widgetThemeChanged
Change-Id: I4afec1d3d6b2c999f759ce7b51d2cf78aec7127f
2018-02-02 18:10:00 +08:00
Iceyer 401eb4d667 refactor: DThemeManager support fallback themefilename
property("_d_dtk_theme_filename") -> ObjectName -> ClassName

Change-Id: I8a78718ccafc7287668fc5a90c54fd0a612e9d42
2018-02-01 16:33:10 +08:00
haruyukilxz 33e491a5fb Add the symbolic export macros for Windows
Change-Id: Ic6bb210bcbb4d313e472c89a0abdc3bd63a996f2
2018-01-31 18:23:18 +08:00
rekols 207679379d feat(DSuggestButton): add initialize text parameter.
Change-Id: I94b89c6fdb1d01fc171ec2923bebb8096eb05383
2018-01-31 13:21:26 +08:00
zccrs 1cdf42f1e8 feat: support configurable whether to redefine the window content when dxcb is turned on
Change-Id: I1f925640f11a579e184a1b7e7f85ff89b43764aa
2018-01-31 10:16:09 +08:00
石博文 b4f5f4bed1 DImageButton: add property `checked` changed notify signal
Change-Id: I022a1eed3f7f391ef6bb53a722e49a16baffd433
2018-01-29 14:20:27 +08:00
zccrs 4bb6f1e32f fix: typo for DTabBar::createMimeDataFramTab
Change-Id: I50568e0f13242c678fa684a4ab0abcd12174345c
2018-01-29 13:06:34 +08:00
Iceyer 3030f49662 fix: remove border style workaround
Change-Id: I381dca955f232c423d3903941194dc3bd3821962
2018-01-28 15:31:15 +08:00
Iceyer 0dfb15665c fix: hide toast label by default
Change-Id: Ie836e98843570545e5115556485580c7000acee9
2018-01-27 21:50:06 +08:00
Iceyer a9b33216d3 fix: parse config.pri failed
Change-Id: I0da217ca1a976db1c354aaba7288873ca7584b11
2018-01-27 17:59:13 +08:00
zccrs 07acf5b086 refactor: increase the area that responds to the drag event for DTabBar
Change-Id: If5724a11d40dd4a7f3b673732bc695af8f706318
2018-01-26 17:29:18 +08:00
zccrs bcd009afb5 feat: add "target" argument for DTabBar::tabDroped
Change-Id: I58310eac5c52f14e96a7e23ca8ce756a2135b333
2018-01-26 16:31:33 +08:00
石博文 e532d32694 workaround for pkexec apps cant open links
Change-Id: Ie7acb5024e6e9bdd87184fc607a1ce5c7fdd8c36
2018-01-25 18:39:20 +08:00
石博文 112c8450b2 prevent src/NUL file generate
Change-Id: Ie6a6031a91baad2ab673f4e7c11deba2d0e02986
2018-01-25 13:29:58 +08:00
石博文 f7f9f49d3e adjust app Icon position
Change-Id: I46985d7c0ede5eebd06a09222905cd6463f67706
2018-01-25 13:29:30 +08:00
石博文 94fdbe2909 fix crash becaus nullptr
Change-Id: I8b6ffe64f140b298233fb1d8acbadab4c21ecc19
2018-01-25 09:55:16 +08:00
Iceyer 3e2e2921d8 feat: auto hide title when fullscreen
TODO:
* fix windowFlags
* make autoHideOnFullscreen really work

Change-Id: Id8af30d5c2cd48bfc05778e9f70b08cb4ce9e120
2018-01-24 22:30:59 +08:00
zccrs 7dd2e8b4ce feat: add propertys maskColor and flashColor of DTabBar
Change-Id: I27d75856dab04410f52baffd1a32a438fcbddb87
2018-01-24 18:16:04 +08:00
zccrs 07cd7dacf6 fix: tabbar tab can drag only at the first time
Change-Id: If1912ea67bd6dd21e612caf16cd1e7a792216d92
2018-01-24 17:31:55 +08:00
haruyukilxz a4542feff8 refactor(DAnchors): rename Anchors to DAnchors
Change-Id: Ib22f2446a7a13dab56704733c5d17846f12746ee
2018-01-24 16:26:36 +08:00
zccrs f674947255 feat: support drag tab to other for DTabBar
Change-Id: I0b5a315537fe822dfb70587775804dca4da93966
2018-01-24 15:12:29 +08:00
Iceyer c4d3f48fba feat: add DToast
Change-Id: Ib214763e35d801aba194cbd8a99b1ee9c1f47c80
2018-01-23 21:06:01 +08:00
Iceyer ddddf0e147 refactor: split tool to libdtkwidget-bin
Change-Id: I3556328745aaa8d6c0d296f3f9d90bf14be825c1
2018-01-22 16:57:47 +08:00
zccrs 3cb8f27adc fix: the widget's theme is not updated after changing parent
Change-Id: I744c4e15b0663c2d8eafdf74ce7d2ff0630bde28
2018-01-22 16:39:50 +08:00
haruyukilxz ff9a89d753 feat(DApplication): add the property of the menu
Change-Id: If01eb1c4de80601350b23565a7b56496343ed1de
2018-01-22 15:37:20 +08:00
zccrs 5bf22c1117 fix: can not be fixed widget style
Change-Id: I34b0b6bd83940b042c5c07387b398e282c66359e
2018-01-22 15:07:31 +08:00
Iceyer d11317ffd0 docs: update support Qt version to 5.6
Change-Id: I18331bcd1093a79e28ecf57850520eb5b6451550
2018-01-19 18:48:12 +08:00
haruyukilxz 0f4cca1112 refactor(DLineEdit): set content left margin to 3px
Change-Id: I8a778b96dc0ea46ce914370d75cbaa549c7af1c4
2018-01-18 14:47:45 +08:00
zccrs 85314de363 fix: VER_MAJ/VER_MIN/VER_PAT variables is empty in qmake
Change-Id: I6b1514694213082c6577892ee9678f1878a935e0
2018-01-17 16:06:22 +08:00
zccrs 13023a33f0 fix: VER_MAJ/VER_MIN/VER_PAT variables is empty in qmake
Change-Id: I5351227d9a90224168bf39ba353f437dd2744cf9
2018-01-17 15:52:12 +08:00
Iceyer e7cffb0346 feat: add window title
Change-Id: Id6fa05e97f61c81cb6b020e089f5adb27f196dc7
2018-01-17 15:36:11 +08:00
zccrs 779d620b64 fix: set AA_DontCreateNativeWidgetSiblings to true of QGuiApplication at enable dxcb for window
Change-Id: I6eaa82a4e80aa6ea6892544a2b419b8cc7d56e27
2018-01-17 14:49:09 +08:00
zccrs b6ecfd8d78 fix: include path(DTK_INCLUDEPATH)
Change-Id: Ia9914c5bb7b351a4b6187db36f765c73bb67868b
2018-01-17 13:39:43 +08:00
zccrs c6ec6d2ada refactor: get version from libdtkcore
Change-Id: I3d7a6965dad3e5dce88495b9397e7d567db84cc8
2018-01-16 17:33:03 +08:00
zccrs 5b3b4b5eab feat: not set AA_DontCreateNativeWidgetSiblings if dxcb version greater then 1.1.5
Change-Id: If7b29cbced0af744008457ed1277214940e87ada
2018-01-16 17:32:57 +08:00
haruyukilxz 41ac47afe2 refactor(DRegionMonitor): use qtCompileTest
Change-Id: I5fec6ed65baf9aa9ef8f7dd2bf9b68c751fdb4a1
2018-01-16 16:38:45 +08:00
Iceyer 416f2e64a4 feat: set version form changelog
Change-Id: Idbb461e79cc2d91536c99748066f75ca104ee086
2018-01-16 14:37:46 +08:00
zccrs b888a8551f feat: add property "realWindowId" for DPlatformWindowHandle
Change-Id: Ie6cbba40e8342a7761639e60d273fec7405d9d5a
2018-01-16 09:57:07 +08:00
deepinzhangshuang 636b598e85 Release 2.0.6 2018-01-15 11:49:08 +08:00
zccrs 572ca1fcb6 fix: blur effect widget not set WA_TranslucentBackground
Change-Id: Ifcd9b6eb7ac98d553086c015e27a5d0c343b888d
2018-01-12 10:41:26 +08:00
Iceyer a3e46a46d6 feat: support new dman interface
Change-Id: Ide7a41caa426dc70549024137b6528f1b1bfd61e
2018-01-12 10:04:12 +08:00
haruyukilxz 929f215480 feat: add DSuggestButton and DStyleOption
Change-Id: If4a4e58b4cc464d16010b7a16e56e4c7cce353e8
2018-01-11 18:47:38 +08:00
zccrs 0eb761540d feat: not fixed font size of DDialog
Change-Id: I4dadcb7d8bdaed9af2e3e3851593199e3580e1d0
2018-01-11 16:08:33 +08:00
Felix Yan a18bf681d4
refactor: correct a typo in src/widgets/dcombobox.cpp
Change-Id: Ic15d31206e78b27ecb2d19014cb63a9d23c7fb76
2018-01-08 15:35:32 +08:00
zccrs 44057f4628 fix: connect signals for DTabBar
Change-Id: I7e841d1994353b2b2d6143189f1a738947578a03
2018-01-05 11:47:21 +08:00
zccrs 2f44cd29ed feat: DTabBar add scroll buttons
Change-Id: Iae10ed85818f78504e39a2ff2d53588523810852
2018-01-05 09:55:32 +08:00
石博文 e21174a54d disable QPixmapCache
Change-Id: I5b3855319a16740347106efe317548a2563c6855
2018-01-04 18:25:40 +08:00
zccrs de47120c6c feat: add the "dtkwidget_global.h" header file
Change-Id: I307046c3dab4961fe6e80c8e5bc67d8cd6358d51
2018-01-04 13:48:17 +08:00
石博文 a1a02cbfb5 fix setSingleInstance not work in MultiUser env.
The stupid error of wrong vairbale we used.

Change-Id: I128e08b46948dbfb67a9c2d40a270eda0ef55752
2018-01-04 10:25:44 +08:00
zccrs b223577e78 feat: add the "DtkWidgets" header file
Change-Id: Ib49a7a37c8cd10f6dbec39a602e8206e49c45591
2018-01-03 18:47:23 +08:00
石博文 d5c6ea40bf add cmake package search config
Change-Id: Ia86efd91520d81497166de5d56d29834cde19287
2018-01-03 13:58:17 +08:00
zccrs ec3f6272d5 feat: add animation for DTabBar on drag move tabs
Change-Id: I50ac56171ec8b880eba2dad5b1b08bc68c78a940
2017-12-29 18:04:24 +08:00
zccrs dd35354425 not fill background for DTabBarPrivate
Change-Id: I694c88f596747993a440886f4218d0e4548e45a6
2017-12-29 16:21:46 +08:00
shihua b3eaa0e85a feat: support dual-click to make crumb
Change-Id: I84f6784158784af4211b2f705ad0c209b7c4a32d
2017-12-29 15:15:14 +08:00
transifex ecb4655bdd auto sync po files from transifex
Change-Id: I58c2d9bf79544cbf49e4656855e6db7797a0715d
2017-12-29 14:36:22 +08:00
zccrs d990cdf66f fix: blur area not scale on not use dxcb window
Change-Id: Ifdb4b0f6dec730b09aa13fcf61c28da6730c65a0
2017-12-29 10:30:55 +08:00
kirigaya bc6b8f33d8 fix(DDialog): reset DLineEdit theme error
Change-Id: Iee4f3be97ca4eafe39edc7ba69f00dae1f72e65a
2017-12-29 09:51:55 +08:00
zccrs a508856720 refactor: support custom paint tag for DTabBar
Change-Id: I6cb386ce802dca9b157a01312260dfa8eb989965
2017-12-28 20:00:19 +08:00
zccrs 82a45b6130 feat: add the DTabBar widget
Change-Id: Ia7fac6755acb27ec229eba2ea00fafdcf3a1afa5
2017-12-28 15:50:41 +08:00
石博文 4693754f5c fix: memory leak in DPictureSequenceView
Change-Id: I9eb55d508f0f3d80f83656f8f402543ea1899443
2017-12-28 14:36:24 +08:00
Iceyer b34cf487a2 Release 2.0.5.3
Change-Id: I70fec5c91f6701c40a6a0825371b56db7921ed80
2017-12-27 17:37:42 +08:00
kirigaya 49db18a7b2 feat(DRegion): add compatibility macro
Change-Id: I3bb30235c0c9adfafba331feb451ab38694cd8b2
2017-12-27 17:34:46 +08:00
Iceyer 367d84310a feat: add nameFilters to dfilechooseredit
Change-Id: I5db37f149937a1ad63d555e4f0f5e63bac302020
2017-12-27 16:57:47 +08:00
Iceyer 632228d25b feat: support get buildVersion form marco
Change-Id: I90eadc33575ace64e37adde5f1f52b2bbbca3e20
2017-12-25 19:35:37 +08:00
zccrs 290c748776 add splitter/crumbRadius propertys for DCrumbEdit
Change-Id: I8b2c5ef5a2d74dcca98b3abd986195e9759f3aaa
2017-12-25 14:42:39 +08:00
Iceyer 87aff6eedf feat: add hideAlertMessage to dlineedit
Change-Id: Ib404cc9f96e74beee5b62c22f00219434cfa5d7a
2017-12-22 13:39:05 +08:00
Iceyer 770c8a8315 feat: add setFileMode/fileMode to dfilechooseredit
Change-Id: I8c22a3a44fbab3f6f3b1345eee3bdd566dc285da
2017-12-21 19:52:27 +08:00
Iceyer 70336737ff fix: double click shortcutedit not sync data
Change-Id: I29e6e261379e866ad73fd8aa6c375bf11e9b781d
2017-12-21 15:41:46 +08:00
zccrs 90a7388dae feat: support copy/paste for DCrumbEdit
Change-Id: Ib4886d4757792968a3608f996e44d03aa3a481c8
2017-12-20 14:20:16 +08:00
zccrs 04e21733b7 feat: add widget "DCrumbEdit"
Change-Id: I259bd7eec9b72df223b9817263884bcdd74440e3
2017-12-20 10:08:59 +08:00
Iceyer 454c394dc8 feat: add namaspace to DSpinner
Change-Id: I205ec3812c3754dc292591a70230cbdcef71d131
2017-12-14 19:23:12 +08:00
Iceyer ad30eabe45 feat: add DSpinner
Change-Id: I4a52be4fdaa07a147b3f318e5f3b9953b67642da
2017-12-14 17:15:32 +08:00
gs342 2709dc6d57 fix: Adapt lintian
Change-Id: I0dfbb5408333cdbde5491d47e370dfde8264fd39
2017-12-14 14:21:04 +08:00
zccrs bfd36c447f refator: set window property by native inteface for DPlatformWindowHeler
Change-Id: I365c1fdaaa140dc9bbfae351f49918dddb47920d
2017-12-12 13:13:26 +08:00
Sian Cao 8d250da398 fix: test correct hint for corresponding function
Change-Id: I146538fe61c4210c19adaf5833b889116ecc8585
2017-12-12 11:58:43 +08:00
Iceyer 982940f26b fix: margin of window mode
Change-Id: I0cc7de15f4cb462e866ab732ed5b2f958556ea5e
2017-12-11 21:08:18 +08:00
Iceyer 6b5686879f feat: add pixmap sequence interface to DPictureSequenceView
Change-Id: I2c5350c196e561d8970b98d2f7f95cad6d5f92eb
2017-12-11 16:45:38 +08:00
Iceyer e500b48f69 feat: add widget mode to darrowrectangle
Change-Id: Ie218a7a7dedcecce9767ff365b119976808d8437
2017-12-08 18:43:08 +08:00
kirigaya 65c5f0012b refactor(DRegionMonitor): rename xmousearea to xeventmonitor
Change-Id: Icf284ba683c21dbe38f1e682e5b2591dccabf936
2017-12-05 16:59:16 +08:00
石博文 b1d2bf3c64 fix clippath change event is never die.
Change-Id: I9178be7e7760c2675fac9035e0a9cae4b9a26473
2017-12-05 15:43:49 +08:00
kirigaya d35b96e5a7 feat(DApplication): add multi user single Instance parameter
Change-Id: Ie9dc9a644b6f328506cd7539572ac455da748aec
2017-12-04 11:00:06 +08:00
Iceyer 3ddffd8b5a fix: add build depend libudev-dev
Change-Id: Ieaaab7d452b0f39c4ec4a84044849f01b8845d9f
2017-12-01 10:17:19 +08:00
石博文 52bbcf967a fix set wrong qss for ddialog
Change-Id: Iba3673f4b16d1bcdee3fedf8d30abefc7cf03562
2017-11-30 13:24:24 +08:00
Iceyer 3c4be795aa Release 2.0.5.2
Change-Id: I125df9b22d179dfa221afaa7a0b5e1ae9e648729
2017-11-28 17:10:20 +08:00
zccrs 8f90556f6a fix: window motif hints is error of DMainWindow
DMainWindow w;
w.show();
w.showMinimized();
w.hide();
w.showNormal();

Change-Id: I3befc796fced00aab18c1df2e6af9c968d3d2107
2017-11-28 16:57:56 +08:00
Iceyer 5f47b89671 feat: add bordless window on mac
Change-Id: Iafc1439bc51297a420d5cb0b7c064b86661d2847
2017-11-28 15:47:06 +08:00
Iceyer 20782b5502 feat: support DTK_TITLE_DRAG_WINDOW on mac
Change-Id: I930b80e46997f069095b092944e8aaf9a2694305
2017-11-27 13:04:06 +08:00
Iceyer 63ee224736 fix: fix macos build failed
Change-Id: I35a07a356c6061ddc66651101d395de9c2c8df4d
2017-11-24 20:12:55 +08:00
zccrs c481eec63d fix: popup system menu in window content
Change-Id: I41c83d4dc7af866e9782dd8106f10cfc32269a57
2017-11-23 16:01:33 +08:00
zccrs fe75e70ffa feat: use D_DECL_DEPRECATED
Change-Id: I4530d7940ce7b57b12af9f722364fc0eab45399c
2017-11-23 14:50:57 +08:00
Felix Yan be8ea417b3 fix: correct typos in multiple files
Change-Id: I706ccda249a0b855a716d5542afcd5827304b097
2017-11-23 14:47:51 +08:00
Iceyer 4dd3953353 fix: windows build failed
Change-Id: Ib4e10871be88aeaf742cac7a546d14517f70f7ec
2017-11-23 09:40:46 +08:00
Felix Yan 2b2bdf4a32 doc: update links in README
Change-Id: I9b60c1b341682b970218f9bf2d367ca3193999c7
2017-11-22 16:22:10 +08:00
transifex cc4c6e71b8 auto sync po files from transifex
Change-Id: I500984714aaacfa86e99d79d49b4a7d498f1859d
2017-11-19 17:00:17 +00:00
Iceyer 0c77c6f99a feat: add DFileChooserEdit light theme
Change-Id: I94bdf6b034257442b96ded4fe2ac0cb56d0c58d8
2017-11-19 09:52:56 +08:00
zccrs 52ccd1e9fb feat: show system menu on right mouse button press of DTitlebar
Change-Id: I2e85ec2789ec02b7d4dcbb1775da23b06153eaed
2017-11-17 17:48:18 +08:00
Iceyer 5f2581e937 Release 2.0.5.1
Change-Id: Ied09c42676dc0c3907e353bc9352fffcb7b2be2c
2017-11-16 17:24:08 +08:00
kirigaya 95766b45ff fix(DRegionMonitor): properly handle scale
Change-Id: Ie5efeb4e0720462eb7b1424be7f8c9329d53eb55
2017-11-15 14:30:01 +08:00
Iceyer 3c03ee652f fix: add DTK_DMAN_PORTAL support
Change-Id: Ibfd27e420ac8bc12985c1215743753e8b8a20f56
2017-11-14 20:50:39 +08:00
Iceyer 5e9d5b6c08 feat: add shortcut to DMainWindow
Change-Id: I6ffd3ac66a68eb751027f91a14ad082b080ff782
2017-11-14 16:19:54 +08:00
Iceyer 7e311564d3 feat: add F1 shortcut
Change-Id: I55cd30c8ca384f410664297dbffb3e0d95ff758d
2017-11-14 11:48:00 +08:00
Hualet Wang 708a5fbe9f fix(DRegionMonitor): possible double freed object
mouseAreaInter's parent is set to DRegionMonitor,
but we called deleterLater on it in ~DRegionMonitorPrivate()

Change-Id: I0e6819c7eb05bcf640e31fe8a9508b41e23bccb0
2017-11-13 11:03:51 +08:00
zccrs 4356268db4 fix: change the QGuiApplication::platformName() to "xcb" on dxcb platform
Change-Id: I3e5092ae617c3e1d6964728db2fd61d27ff33955
2017-11-11 19:19:51 +08:00
Iceyer fcf9c3ef2a feat: add setState to DImageButton
Change-Id: I76e4414a379a36c63d9b3f17f6560b1e2faf0ce0
2017-11-10 16:41:57 +08:00
zccrs d8b5c04019 fix: isDXcbPlatform for new version dxcb plugin
Change-Id: I286c50c065d3fc1038a771291b30aa973a004e7d
2017-11-10 15:13:55 +08:00
Iceyer 4bcbb6a39d Release 2.0.5
Change-Id: Ibcf89367e246d6337df47e867a2f988470c1e9d6
2017-11-06 17:41:12 +08:00
Andy Stewart a1139ab2f8 Add SimpleListView example.
Change-Id: I66b17e982f93e55cd9749d0ff908e229c30fa345
2017-11-06 14:15:59 +08:00
transifex 48a6cacd8b auto sync po files from transifex
Change-Id: I80765ede442a36fda7480ad7c3dbea1f25cf84ed
2017-11-05 12:48:21 +00:00
Iceyer 1b40d6a71e fix: windows build failed
Change-Id: Ie541c1a188de8d275330fb0472d435c572b2314a
2017-11-05 18:17:42 +08:00
石博文 50ad7cca3d refactor(DPictureSequenceView): refactor public interfaces.
clear unused enum, add method to generate picture list from range

Change-Id: I0245341ca3be6e2e7a5ebf74fcabfe1de84cb211
2017-11-03 14:02:45 +08:00
Andy Stewart 4a838b4c92 Add setFrame api for DSimpleListView.
Change-Id: Id11ec160c3f736ab49725c68c10d901b224356f4
2017-11-03 12:50:36 +08:00
Andy Stewart 0556a4957b Don't draw title if titleHeight <= 0
Change-Id: I54f6d41cb24706c9a91487300318c3761846b621
2017-11-03 12:13:34 +08:00
Andy Stewart 5736878a08 Return widget width if user don't set column withs throught function 'setColumnTitleInfo'.
Change-Id: Ic88995cb3ed29450cba33dd32315fb7e93dabf6f
2017-11-03 11:55:39 +08:00
rekols 7019967f0d feat: optimize shift up/down keypress for DSimpleListView
Change-Id: Id4f45e3300d4c6962317d9a3cf5468ba78fae4f3
2017-11-03 11:13:57 +08:00
Andy Stewart 2457b0535b Init row height with 36 px, avoid listview crash if developer don't call 'setRowHeight'
Change-Id: Iab7cf0b3136ac1fc11258a00653dbba31c705c18
2017-11-03 10:57:32 +08:00
石博文 1b33c549aa fix arrow x pos error
Change-Id: Idb0fcab887e0aa459e1a1037a2940e0eaeb0f9a2
2017-10-31 16:42:50 +08:00
石博文 c1fe173a63 fix(DPasswordEdit): password edit icon out of content
Change-Id: I8bcaef52f0e46162749420e2777649525336763d
2017-10-30 18:20:09 +08:00
Iceyer ea92fae9f9 feat: DTitlebar add disable API
Change-Id: Id82f34228e2dee361b8bba4c10266014cd3a3664
2017-10-30 13:40:09 +08:00
Iceyer 266f433789 feat: add embed mode
Change-Id: Ia3d16197f3b9da92509b95eb5fe11ca1e78b527f
2017-10-27 20:30:14 +08:00
zccrs 5e0149b51c fix: disable _q_onTopWindowMotifHintsChanged when use DTitlebar::setWindowFlags
Change-Id: I91ff72bf1ad7f5bf4b4d8ac18c151568867fd519
2017-10-27 11:32:19 +08:00
zccrs 228fd523e3 fix: draw pixmap size error on DTitlebar
Change-Id: Ice4a208a83a704d62329934f61790c54c9f934b5
2017-10-26 18:03:22 +08:00
zccrs 7b131a7205 fix: DTitlebar button is hidden on the non DMainWindow windows
Change-Id: If9373331ee473b78cabf4f62ff0e80f8a3ebca70
2017-10-26 17:19:14 +08:00
1923 changed files with 149880 additions and 27863 deletions

5
.clog.toml Normal file
View File

@ -0,0 +1,5 @@
[clog]
repository = "https://github.com/linuxdeepin/dtkwidget"
from-latest-tag = true
changelog = "CHANGELOG.md"

20
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,20 @@
blank_issues_enabled: false
contact_links:
- name: BUG Report | 缺陷报告
url: https://github.com/linuxdeepin/dtk/issues/new?assignees=&labels=&template=bug-report.yml
about: Please create bug reports to the issue board in our dtk repo.
- name: docs-update | 文档补充
url: https://github.com/linuxdeepin/dtk/issues/new?assignees=&labels=&template=docs-update.yml
about: Please create docs-update to the issue board in our dtk repo.
- name: unit-test-report | 单元测试报告
url: https://github.com/linuxdeepin/dtk/issues/new?assignees=&labels=&template=unit-test-report.yml
about: Please create unit-test-report to the issue board in our dtk repo.
- name: Feature Request | 特性请求
url: https://github.com/linuxdeepin/developer-center/discussions/new?category=features-request-ideas-%E7%89%B9%E6%80%A7%E8%AF%B7%E6%B1%82-%E5%A4%B4%E8%84%91%E9%A3%8E%E6%9A%B4
about: Please create feature requests to the discussion board in our developer-center repo.
- name: General Discussion & Questions | 常规讨论与问答
url: https://github.com/linuxdeepin/developer-center/discussions/categories/q-a-%E9%97%AE%E7%AD%94%E6%9D%BF%E5%9D%97
about: Please use the discussion board in our developer-center repo.

17
.github/ISSUE_TEMPLATE/document.md vendored Normal file
View File

@ -0,0 +1,17 @@
---
name: Docs update
about: Document Normalization
title: 'Doc: [Document Type][file name]'
labels: 'Doc'
assignees: ''
---
## Target files (目标文件)
## Planned completion time (计划完成时间)
## Document Type (文档类型)
[] New documents
[] Standardized documents
[] Internationalization of documents
[] Example documents

15
.github/workflows/backup-to-gitlab.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: backup to gitlab
on: [push]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
backup-to-gitlabwh:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitlabwh.yml@master
secrets: inherit
backup-to-gitee:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitee.yml@master
secrets: inherit

13
.github/workflows/call-api-check.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: apiCheck
on:
pull_request_target:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
api-check:
uses: linuxdeepin/.github/.github/workflows/api-check.yml@master
secrets: inherit

50
.github/workflows/call-auto-release.yml vendored Normal file
View File

@ -0,0 +1,50 @@
name: Auto Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., 1.0.0)'
type: string
required: false
name:
description: 'The name of the person to release the version'
type: string
required: false
email:
description: 'The email of the person to release the version'
type: string
required: false
timezone:
description: 'The timezone in the debian changelog file'
required: false
type: string
default: 'Asia/Shanghai'
workflow_call:
inputs:
version:
description: 'Release version (e.g., 1.0.0)'
type: string
required: true
name:
description: 'The name of the person to release the version'
type: string
required: false
email:
description: 'The email of the person to release the version'
type: string
required: false
timezone:
description: 'The timezone in the debian changelog file'
required: false
type: string
default: 'Asia/Shanghai'
jobs:
auto_release:
uses: linuxdeepin/.github/.github/workflows/auto-release.yml@master
secrets: inherit
with:
version: ${{ inputs.version }}
name: ${{ inputs.name }}
email: ${{ inputs.email }}
timezone: ${{ inputs.timezone }}

16
.github/workflows/call-auto-tag.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: auto tag
on:
pull_request_target:
types: [opened, synchronize, closed]
paths:
- "debian/changelog"
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
auto_tag:
uses: linuxdeepin/.github/.github/workflows/auto-tag.yml@master
secrets: inherit

View File

@ -0,0 +1,13 @@
name: Call build-distribution
on:
push:
paths-ignore:
- ".github/workflows/**"
pull_request_target:
paths-ignore:
- ".github/workflows/**"
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/build-distribution.yml@master
secrets: inherit

9
.github/workflows/call-chatOps.yml vendored Normal file
View File

@ -0,0 +1,9 @@
name: chatOps
on:
issue_comment:
types: [created]
jobs:
chatopt:
uses: linuxdeepin/.github/.github/workflows/chatOps.yml@master
secrets: inherit

15
.github/workflows/call-clacheck.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Call CLA check
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
clacheck:
uses: linuxdeepin/.github/.github/workflows/cla-check.yml@master
secrets: inherit

11
.github/workflows/call-commitlint.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: Call commitlint
on:
pull_request_target:
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/commitlint.yml@master

13
.github/workflows/call-debian-check.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: debianCheck
on:
pull_request_target:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
debian-check:
uses: linuxdeepin/.github/.github/workflows/debian-check.yml@master
secrets: inherit

View File

@ -0,0 +1,26 @@
name: deploy docs
on:
push:
branches: ["master"]
workflow_dispatch:
inputs:
tag:
required: true
type: string
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploydocs:
uses: linuxdeepin/.github/.github/workflows/deploy-dev-doc.yml@master
with:
ref: ${{ inputs.tag }}
secrets: inherit

14
.github/workflows/call-doc-check.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: doxygen-check
on:
pull_request_target:
paths-ignore:
- ".github/workflows/**"
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/doc-check.yml@master
secrets: inherit

View File

@ -0,0 +1,16 @@
name: Call License and README Check
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
pull-requests: write
contents: read
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
license-check:
uses: linuxdeepin/.github/.github/workflows/license-check.yml@master

13
.github/workflows/call-static-check.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: staticCheck
on:
pull_request_target:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
static-check:
uses: linuxdeepin/.github/.github/workflows/static-check.yml@master
secrets: inherit

View File

@ -0,0 +1,19 @@
name: Call synchronize to dtk6
on:
pull_request_target:
paths-ignore:
- "debian/**"
- "archlinux/**"
- "rpm/**"
- ".obs/**"
- ".github/**"
jobs:
call-synchronize:
uses: linuxdeepin/dtk/.github/workflows/synchronize-to-dtk6.yml@master
secrets: inherit
with:
dest_repo: linuxdeepin/dtk6widget
source_repo: ${{ github.event.pull_request.head.repo.full_name }}
source_ref: ${{ github.event.pull_request.head.ref }}
pull_number: ${{ github.event.pull_request.number }}

26
.github/workflows/cppcheck.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: cppcheck
on:
pull_request_target:
paths-ignore:
- ".github/workflows/**"
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
cppchceck:
name: cppcheck
runs-on: ubuntu-latest
steps:
- run: export
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: linuxdeepin/action-cppcheck@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
pull_request_id: ${{ github.event.pull_request.number }}
allow_approve: false

26
.gitignore vendored
View File

@ -18,3 +18,29 @@ build*/
# executeable files
*.qm
src/DtkWidgets
src/dtkwidget_config.h
cmake/DtkWidget
src/qt_lib_dtk*.pri
# misc
.vscode/
build
.cache
# cmake files
asan*
archlinux/source.tar.gz
archlinux/src
archlinux/pkg
archlinux/*.pkg.tar.zst
include/dtkwidget/global/dtkwidget_config.h
DtkWidgetConfig.cmake
qt_lib_dtkwidget.pri
dtkwidget.pc
*.qdoc
CMakeLists.txt.user
# Ignore Doxygen theme files
docs/doxygen-theme/

6
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,6 @@
include:
- remote: 'https://gitlab.deepin.io/dev-tools/letmeci/raw/master/gitlab-ci/dde.yml'
variables:
CPPCHECK: "true"
CODESPELL: "true"

44
.obs/workflows.yml Normal file
View File

@ -0,0 +1,44 @@
test_build:
steps:
- link_package:
source_project: deepin:Develop:dde
source_package: %{SCM_REPOSITORY_NAME}
target_project: deepin:CI
- configure_repositories:
project: deepin:CI
repositories:
- name: deepin_develop
paths:
- target_project: deepin:CI
target_repository: deepin_develop
architectures:
- x86_64
- aarch64
- name: archlinux
paths:
- target_project: deepin:CI
target_repository: archlinux
architectures:
- x86_64
filters:
event: pull_request
tag_build:
steps:
- branch_package:
source_project: deepin:Develop:dde
source_package: %{SCM_REPOSITORY_NAME}
target_project: deepin:Unstable:dde
filters:
event: tag_push
commit_build:
steps:
- trigger_services:
project: deepin:Develop:dde
package: %{SCM_REPOSITORY_NAME}
filters:
event: push

17
.packit.yaml Normal file
View File

@ -0,0 +1,17 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
specfile_path: rpm/dtkwidget.spec
# add or remove files that should be synced
synced_files:
- rpm/dtkwidget.spec
- .packit.yaml
upstream_package_name: dtkwidget
# downstream (Fedora) RPM package name
downstream_package_name: dtkwidget
actions:
fix-spec-file: |
bash -c "sed -i -r \"s/Version:(\s*)\S*/Version:\1${PACKIT_PROJECT_VERSION}/\" rpm/dtkwidget.spec"

6
.project.json Normal file
View File

@ -0,0 +1,6 @@
{
"Type": "homebrew",
"3rdparty": [],
"ignore": ["src/translations","src/widgets/assets","doc","examples",".tx","debian"],
"license": ["GPLv3"]
}

16
.release.json Normal file
View File

@ -0,0 +1,16 @@
{
"commit": {
"quilt": false,
"pkgver": "echo $(git tag | sort -V | tail -n1)'+r'$(git log $(git describe --abbrev=0 --tags)..HEAD --oneline|wc -l)'+g'$(git rev-parse --short HEAD);",
"dist": "experimental"
},
"release": {
"quilt": true,
"pkgver": "git describe --abbrev=0 --tags %(ref)s",
"dist": "unstable"
},
"release-candidate": {
"quilt": true,
"dist": "unstable"
}
}

109
.reuse/dep5 Normal file
View File

@ -0,0 +1,109 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: dtkwidget
Upstream-Contact: UnionTech Software Technology Co., Ltd. <>
Source: https://github.com/linuxdeepin/dtkwidget
# ci
Files: .github/* .gitlab-ci.yml output/results.txt .obs/* .tx/*
Copyright: None
License: CC0-1.0
# gitignore
Files: .gitignore .syncexclude
Copyright: None
License: CC0-1.0
# xml toml json conf yaml
Files: *.toml *.json *conf *.yaml .tx/transifex.yaml
Copyright: None
License: CC0-1.0
#interface
Files: include/DWidget/*
Copyright: None
License: CC0-1.0
#DBus
Files: src/widgets/dbus/* src/widgets/private/mpris/*
Copyright: None
License: CC0-1.0
# rpm
Files: rpm/*
Copyright: None
License: CC0-1.0
# debian
Files: debian/*
Copyright: None
License: LGPL-3.0-or-later
# Arch
Files: archlinux/*
Copyright: None
License: CC0-1.0
# README
Files: README.md README.zh_CN.md CHANGELOG.md
Copyright: UnionTech Software Technology Co., Ltd.
License: CC-BY-4.0
# Docs
Files: docs/*
Copyright: 2023 deepin doc doc go SIG
License: CC-BY-4.0
# Project file
Files: *.pro *.prf *.pri *.qrc *CMakeLists.txt *.cmake *.in VERSION
Copyright: None
License: CC0-1.0
# Printview
Files: tests/testcases/printpreview/*
Copyright: None
License: CC0-1.0
# others
Files: examples/collections/resources/data/*.txt
Copyright: None
License: CC0-1.0
# imag
Files: doc/images/* src/widgets/assets/images/* plugin/dtkuiplugin/images/*
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
# svg
Files: examples/collections/icons/texts/* plugin/dtkuidemo/logo_icon.svg
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
#example png
Files: examples/collections/images/*
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
#icon
Files: src/widgets/assets/icons/* src/widgets/assets/built-in-icons/*
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
#ui
Files: *.ui
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
# test
Files: tests/data/*
Copyright: None
License: CC0-1.0
Files: toolGenerate/**/*
Copyright: None
License: CC0-1.0
# translations
Files: */translations/*.ts
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later

13
.syncexclude Normal file
View File

@ -0,0 +1,13 @@
# Paths that will be exclude from synchronize workflow
# Please use relative path which use project directory as root
# Notice that
# * .git
# * debian
# * archlinux
# * .obs
# * .github
# are always ignored
linglong.yaml
conanfile.py
VERSION
CHANGELOG.md

View File

@ -1,10 +1,8 @@
[main]
host = https://www.transifex.com
minimum_perc = 80
mode = developer
[deepin-tool-kit.dwidget]
file_filter = translations/dtkwidget2_<lang>.ts
source_file = translations/dtkwidget2.ts
[o:linuxdeepin:p:deepin-tool-kit:r:656c086e604038efa2bb99f59767da6f]
file_filter = src/translations/dtkwidget_<lang>.ts
source_file = src/translations/dtkwidget.ts
source_lang = en
type = QT

2
.tx/deepin.conf Normal file
View File

@ -0,0 +1,2 @@
[transifex]
branch = m23

8
.tx/transifex.yaml Normal file
View File

@ -0,0 +1,8 @@
filters:
- filter_type: file
source_file: src/translations/dtkwidget.ts
file_format: QT
source_language: en
translation_files_expression: src/translations/dtkwidget_<lang>.ts
settings:
pr_branch_name: transifex_update_<br_unique_id>

678
CHANGELOG.md Normal file
View File

@ -0,0 +1,678 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [5.7.25] - 2025-10-30
### Added
- Add support for custom line edit icon margin
### Changed
- Improve navigation widget styling
### Fixed
- Correct button order in settings dialog
- Handle font change events in dialog
- Adjust feature item widget height calculation
- Improve dialog sizing and remove unused event filter
## [5.7.24] - 2025-10-16
### Added
- Support Qt 6.10
### Changed
- Translate dtkwidget.ts in sq
### Fixed
- Clear DCi icon state when setting other icon types
## [5.7.23] - 2025-09-25
### Changed
- Enhance window effect support detection
### Fixed
- Fix search icon color inconsistency in DSearchEdit
## [5.7.22] - 2025-09-04
### Changed
- I18n: [dtkwidget] Updates for project Deepin Tool Kit (#681)
### Fixed
- Prevent potential tab index out of bounds crash
## [5.7.21] - 2025-08-14
### Changed
- Revert "fix: prevent itemSpacing override in setBackgroundType"
- Update translation configurations and translations
- I18n: [dtkwidget] Updates for project Deepin Tool Kit (#677)
### Fixed
- Prevent background type from overriding custom item spacing
- Update transifex configuration
- Resolve various compilation warnings
## [5.7.20] - 2025-07-31
### Added
- Add debian check workflow
### Fixed
- Prevent itemSpacing override in setBackgroundType
- Resolve Qt6 compatibility issues
## [5.7.19] - 2025-07-03
### Added
- Add security hardening flags and optimize build settings
## [5.7.18] - 2025-06-27
### Fixed
- Make version optional in release workflow and update spec file
## [5.7.17] - 2025-06-19
### Changed
- Support VERSION file
- Add auto release workflow
- Update window control icons and drawing logic
- Update .syncexclude
<a name="2.0.14"></a>
## 2.0.14 (2019-05-23)
#### Bug Fixes
* hide the non-window type window titlebar menu button on initialize ([eb0500fa](https://github.com/linuxdeepin/dtkwidget/commit/eb0500fa06e3a97fe2d98c8ad76dfc5edfaa9d58))
<a name="2.0.13"></a>
## 2.0.13 (2019-05-09)
#### Bug Fixes
* repaint widget mask color when the color changed ([7553188b](https://github.com/linuxdeepin/dtkwidget/commit/7553188bfe9f9c34def92728e4aaeac9beb078a0))
* always show menu button ([4612b6fc](https://github.com/linuxdeepin/dtkwidget/commit/4612b6fc7cdd976f54065750bc628f5d1776a565))
* always show button on none linux ([633617d0](https://github.com/linuxdeepin/dtkwidget/commit/633617d0e2c7a3282c53b367c5753f688360dee1))
<a name="2.0.12"></a>
## 2.0.12 (2019-04-18)
<a name="2.0.11"></a>
## 2.0.11 (2019-04-17)
#### Features
* add interfaces for custom qt theme config file path ([b1308c8a](https://github.com/linuxdeepin/dtkwidget/commit/b1308c8ac3fbf42a1c9204dc07967979bce461cc))
* add signal "screenDevicePixelRatioChanged" for DApplication ([ee11cac5](https://github.com/linuxdeepin/dtkwidget/commit/ee11cac58d587203b16f2f1b3af862586bd135e2))
#### Bug Fixes
* The dialog size abnormally on multi-screen ([320d896b](https://github.com/linuxdeepin/dtkwidget/commit/320d896b673b03f92a2c85d51857a4ae4d355230))
<a name="2.0.10"></a>
## 2.0.10 (2019-03-27)
#### Bug Fixes
* crash at DApplicationPrivate::cancelNotification ([e84643fd](https://github.com/linuxdeepin/dtkwidget/commit/e84643fdbf0628f77bd4e2cb0b2b08feb80d18bb))
* cursor is always in busy state sometimes ([79473dfa](https://github.com/linuxdeepin/dtkwidget/commit/79473dfab2ba17694ded8568431a0f55c87d0492))
* **DDesktopServices:** wrong register ddesktopservices enum type ([c82f36e3](https://github.com/linuxdeepin/dtkwidget/commit/c82f36e33fb22de853f1bd61a7eaaa7b0ad63377))
#### Features
* **DDesktopServices:** register qmetatype for SystemSoundEffect ([24fbd471](https://github.com/linuxdeepin/dtkwidget/commit/24fbd4710a3a9a9ac52eced25aeb20a5617c1d66))
<a name="2.0.9.17"></a>
## 2.0.9.17 (2019-02-26)
#### Bug Fixes
* minimize buttons of fix sized windows are disabled ([f7d2974c](https://github.com/linuxdeepin/dtkwidget/commit/f7d2974c005cc3e09749503aec5bc9b2cbf7af75))
* build failed on Qt 5.6.x ([1ca45918](https://github.com/linuxdeepin/dtkwidget/commit/1ca45918dfc3546ab077ab613afd8f8cf64fd457))
* move Q_DECL_DEPRECATED to front ([c6d65f01](https://github.com/linuxdeepin/dtkwidget/commit/c6d65f016eb7f0c498a7a92f2ffb139fabaa80a9))
<a name="2.0.9.16"></a>
## 2.0.9.16 (2019-01-29)
#### Bug Fixes
* titlebar not shown in some case ([c63bac17](https://github.com/linuxdeepin/dtkwidget/commit/c63bac174fa22ba762aa4d1291703eccbfb855e2))
<a name="2.0.9.15"></a>
## 2.0.9.15 (2019-01-25)
#### Features
* add groupLeaderId/clientLeaderId interfaces for DWindowGroupLeader ([aa1ab5ad](https://github.com/linuxdeepin/dtkwidget/commit/aa1ab5ad141b7ae3a2abf5d1dd69564038ed2f68))
* **DDesktopServices:** support all sound effect ([c1a2285c](https://github.com/linuxdeepin/dtkwidget/commit/c1a2285c3a3fb54bf6c7c03220a89b028551e8da))
#### Bug Fixes
* change permissions of DStackWidget's function ([f62bf044](https://github.com/linuxdeepin/dtkwidget/commit/f62bf04481a0feb5d99659a319140f159cf1b9be))
* can not hide the window menu button ([010c75d5](https://github.com/linuxdeepin/dtkwidget/commit/010c75d53417099132b85dc82d0768ad5c3520f3))
* **DDesktopServices:** keep old enum order ([15eb21f7](https://github.com/linuxdeepin/dtkwidget/commit/15eb21f79ab2adccd1dcf31ae5aa3d94654d4ec9))
<a name="2.0.9.14"></a>
## 2.0.9.14 (2019-01-02)
#### Bug Fixes
* can not scroll view on DSettingDialog by touchscreen ([651dee29](https://github.com/linuxdeepin/dtkwidget/commit/651dee293bf1cf3de848eed496c3f6433712d8d5))
<a name="2.0.9.13"></a>
## 2.0.9.13 (2018-12-28)
#### Features
* support touchscreen for DSettingDialog ([74482ea6](https://github.com/linuxdeepin/dtkwidget/commit/74482ea685979e6953d5191233820cb1713a3098))
<a name="2.0.9.12"></a>
## 2.0.9.12 (2018-12-24)
#### Features
* move settings dialog radio to left ([f7a33caa](https://github.com/linuxdeepin/dtkwidget/commit/f7a33caaad5941516a19dacdde0441d4ae2d3e8e))
* support connan build ([74f8f928](https://github.com/linuxdeepin/dtkwidget/commit/74f8f92817c51302b965c398c225bda752a450ee))
#### Bug Fixes
* doc for DTextButton ([23160de6](https://github.com/linuxdeepin/dtkwidget/commit/23160de65021718de268cfe715191610357d12e4))
* doc for DExpandGroup ([597f25c1](https://github.com/linuxdeepin/dtkwidget/commit/597f25c16aaa1d0744b0ad405511845794209411))
* **DWindowManagerHelper:** return currentWorkspaceWindows is empty ([ec478aa0](https://github.com/linuxdeepin/dtkwidget/commit/ec478aa0ae4d9b4cdbba7f503d3f05b24334a3fc))
<a name="2.0.9.11"></a>
## 2.0.9.11 (2018-12-14)
#### Features
* allowed set a expected icon size for DDialog::setIcon ([a4d2aa06](https://github.com/linuxdeepin/dtkwidget/commit/a4d2aa060381fb13e8a99f069e212549e032bd1c))
* **DWindowManagerHelper:** return all windowId and current workspace windowId ([d3440165](https://github.com/linuxdeepin/dtkwidget/commit/d34401655ec1119fc0173df15af1ece41b23f2af))
<a name="2.0.9.10"></a>
## 2.0.9.10 (2018-11-30)
#### Bug Fixes
* the dialog type window will be closed after pressing Super+D ([251418bf](https://github.com/linuxdeepin/dtkwidget/commit/251418bf2423da81fbce5731347fc05c5e23a646))
* workaround QTapAndHoldGesture comes late than right press in dde-daemon ([2af710be](https://github.com/linuxdeepin/dtkwidget/commit/2af710bec685739d5b3a2e113c3e2a860ce0197b))
* **DPasswdEditAnimated:** modify parent for tip widget ([b9edc9d3](https://github.com/linuxdeepin/dtkwidget/commit/b9edc9d36386fcd9537e0b5cafc734e1696fa294))
* **dtabbar:** horizontal dragging delays. ([9efe4990](https://github.com/linuxdeepin/dtkwidget/commit/9efe4990c128e6a5a306057ae52abf614607c9a6))
#### Features
* set QTapAndHoldGesture::timeout in DApplication ([a3e23a7e](https://github.com/linuxdeepin/dtkwidget/commit/a3e23a7e233df7b22fa6d8340df80a7744bb8ab7))
* **DWindowManagerHelper:** add inteface: "windowManagerName" ([d4c557f1](https://github.com/linuxdeepin/dtkwidget/commit/d4c557f1d54beb77591b9a208bdbb201f20a376a))
<a name="2.0.9.9"></a>
## 2.0.9.9 (2018-11-09)
#### Features
* **DPasswdEditAnimated:** add updateAlertPosition() func. ([1539439b](https://github.com/linuxdeepin/dtkwidget/commit/1539439b1e5326ba54990c2b02c1ef915fa22d49))
* **DTickEffect:** change scroll speed ([2bf9c93f](https://github.com/linuxdeepin/dtkwidget/commit/2bf9c93f682649eb16323c7a1ed5a61e74e7e73b))
#### Bug Fixes
* **passwdeditanimated:** hide alert flash. ([faaa4ee2](https://github.com/linuxdeepin/dtkwidget/commit/faaa4ee286fa4fe3df120fe718e646310dc6a43e))
<a name="2.0.9.8"></a>
## 2.0.9.8 (2018-11-08)
#### Bug Fixes
* do not set Qt::AA_ForceRasterWidgets by default on x86 platform ([4281a396](https://github.com/linuxdeepin/dtkwidget/commit/4281a39694aecf0ebf2fe425f8e40c739698648c))
<a name="2.0.9.7"></a>
## 2.0.9.7 (2018-11-06)
#### Bug Fixes
* open AA_ForceRasterWidgets by default ([f0bae104](https://github.com/linuxdeepin/dtkwidget/commit/f0bae104da6c151bb07f3c406f7779046d4648c3))
<a name="2.0.9.6"></a>
## 2.0.9.6 (2018-11-01)
#### Bug Fixes
* static function bugs of DInputDialog ([a34833ec](https://github.com/linuxdeepin/dtkwidget/commit/a34833ec304cf3f5c3416760340d874eada9fc3b))
* radio setting widget height error ([6cea6e84](https://github.com/linuxdeepin/dtkwidget/commit/6cea6e84220cd40c05e43627909806f7043c5d61))
#### Features
* **DMPRIS:** music title support tick effect ([48ac0431](https://github.com/linuxdeepin/dtkwidget/commit/48ac04318ff6ed840d5f25c26bd8cc692d96dc9c))
* **DRegionMonitor:** support set coordinate type ([d6773300](https://github.com/linuxdeepin/dtkwidget/commit/d67733006eba5ffa2c9376460c50eb49e23ee274))
<a name="2.0.9.5"></a>
## 2.0.9.5 (2018-10-26)
#### Features
* update check deepin-manual path ([ec41a75f](https://github.com/linuxdeepin/dtkwidget/commit/ec41a75f87e465d3c0d79c81c07a971604728e86))
* update version number for expermimental ([9a72d912](https://github.com/linuxdeepin/dtkwidget/commit/9a72d912d8c4a8a9dbb39f08e8bd64bea24e2cb6))
* set Qt::AA_ForceRasterWidgets on sw/loongson ([6d8739e2](https://github.com/linuxdeepin/dtkwidget/commit/6d8739e2b38c46978dea6eb31a59c1d3f11fe8b0))
* **DBlurEffectWidget:** support set alpha ([a380128e](https://github.com/linuxdeepin/dtkwidget/commit/a380128ede3626b79964f7128c54697f6fd6c637))
* **DTickEffect:** keep animation value from widget size changed ([1f8c744b](https://github.com/linuxdeepin/dtkwidget/commit/1f8c744b3c622562c7f86ae213dd6deefe13cd27))
#### Bug Fixes
* context scroll error ([68ab7294](https://github.com/linuxdeepin/dtkwidget/commit/68ab7294ec93eeb09ffa4cf533f69a01ff072ae7))
* run tag script error ([5cdfd2f3](https://github.com/linuxdeepin/dtkwidget/commit/5cdfd2f387d4bfb6c3e463f51cdbef643d036f89))
* repair version number error ([3ce05b0e](https://github.com/linuxdeepin/dtkwidget/commit/3ce05b0ef3076fb3a9187cd02ef6422e37c6067a))
* **DBlurEffectWidget:** not refresh when update mask alpha ([492b2b93](https://github.com/linuxdeepin/dtkwidget/commit/492b2b93a2ce0b656c4ff9145c74aebb4ff034d8))
* **DImageButton:** remove wrong sizehent ([e5cf29f7](https://github.com/linuxdeepin/dtkwidget/commit/e5cf29f793a7fc1469ccec766fe74a39b3ca48d2))
* **DPasswordEditAnimated:** alert visible control ([eb55642a](https://github.com/linuxdeepin/dtkwidget/commit/eb55642ac2a8b397f5013d4332c3d88cf5bf98fe))
* **trashMgr:** Will remove broken symlink now ([481ba0a0](https://github.com/linuxdeepin/dtkwidget/commit/481ba0a0dc875963d90cca3948029a6e577363fb))
<a name="2.0.9.3"></a>
## 2.0.9.3 (2018-08-23)
#### Features
* support hide acknowledgement ([c5d125a9](https://github.com/linuxdeepin/dtkwidget/commit/c5d125a9de66f19f572376ad8a411af743524612))
* **DSettingsDialog:** follow the system font size ([115febed](https://github.com/linuxdeepin/dtkwidget/commit/115febed538b9dce041b8aa87c463fb4c438a58e))
* **toast:** interface to set duration ([5d0fc564](https://github.com/linuxdeepin/dtkwidget/commit/5d0fc56493234a32ba3f38fff87d5af5e9aceedb))
#### Bug Fixes
* **DSuggestButton:** draw text twice ([a149d05b](https://github.com/linuxdeepin/dtkwidget/commit/a149d05b57954a49a221e03b230e8c73230330eb))
* **trashMgr:** Will delete symbol link recursively ([dbcf048c](https://github.com/linuxdeepin/dtkwidget/commit/dbcf048c23ac2f6b898e9aacbdb8693cde161c2a))
<a name="2.0.9.2"></a>
## 2.0.9.2 (2018-08-07)
#### Features
* use new interface for DPlatformWindowHandle::enableDxcbForWindow ([ab03a058](https://github.com/linuxdeepin/dtkwidget/commit/ab03a058910a3258775bd8b40dc3bf43cf014cc8))
<a name="2.0.9.1"></a>
## 2.0.9.1 (2018-07-25)
#### Features
* support set the translate context on DSettingsDialog::updateSettings ([0afad0c2](https://github.com/linuxdeepin/dtkwidget/commit/0afad0c2301cd50fe21cbd1a1379034d6e6f1048))
<a name="2.0.9"></a>
## 2.0.9 (2018-07-20)
#### Bug Fixes
* crash in DTabBar::dragIconWindow ([1772a8a8](https://github.com/linuxdeepin/dtkwidget/commit/1772a8a8f6ea826f9ba55e1b97daaf49c6e7a719))
* quick change fullscreen state crash ([565bfd5f](https://github.com/linuxdeepin/dtkwidget/commit/565bfd5f6f218409808a36911abe905219928d61))
* did not clear hover item when leaving. ([5c7da52e](https://github.com/linuxdeepin/dtkwidget/commit/5c7da52e5f663d3a67c4e8cc63c9c09bbaa3a451))
* the right scroll button of DTabBar cannot visible ([4d55296b](https://github.com/linuxdeepin/dtkwidget/commit/4d55296b63e8a890e825e4c826e5098f565445e5))
* DTabBarPrivate::stopMove will trigger drop event ([61c3a3e9](https://github.com/linuxdeepin/dtkwidget/commit/61c3a3e9d0d91ac06059db02a49f10d4ff48211b))
* **DTabBar:**
* no signal when tab is removed ([d33d8b0e](https://github.com/linuxdeepin/dtkwidget/commit/d33d8b0ea728d24a9e199340b8a356b2704c656c))
* setTabMaxiumnSize is invalid ([ff5b9480](https://github.com/linuxdeepin/dtkwidget/commit/ff5b9480e149c0dfdee327bf2c4a60ecc6bd945a))
* **DTitlebar:** When the window is fast hiding and displaying, the state is wrong ([5af9fa21](https://github.com/linuxdeepin/dtkwidget/commit/5af9fa21a7b1f85fd126b92d249583016f41cd18))
* **DTrashManager:** clear trash behavior not correct ([1242bf64](https://github.com/linuxdeepin/dtkwidget/commit/1242bf6430340b1c1eac124ba89d990fd29db5b3))
* **DVideoWidget:** byte preline missing ([856d2f5a](https://github.com/linuxdeepin/dtkwidget/commit/856d2f5a3ec696780dbca31bc7acbcfcb4222a53))
* **Dtitlebar:** not update max button icon ([79d72833](https://github.com/linuxdeepin/dtkwidget/commit/79d728331d137b8da1c7b4884698a5231ec97d84))
* **dscrollarea:** initialization with nullptr ([a1e5697a](https://github.com/linuxdeepin/dtkwidget/commit/a1e5697a315382ece6a2f688e2a61da0432f55e1))
* **sfx:** sfx playback name should conv to camelCase ([870cf29c](https://github.com/linuxdeepin/dtkwidget/commit/870cf29cea6af3bd9fdfab6ccf2553714679a413))
#### Features
* add signal for DTabBar ([2172c4bb](https://github.com/linuxdeepin/dtkwidget/commit/2172c4bbc3199fe439c282ca493b65c95fe8e2b5))
<a name="2.0.8"></a>
## 2.0.8 (2018-05-02)
#### Bug Fixes
* double free of list item on exit ([3941dda5](https://github.com/linuxdeepin/dtkwidget/commit/3941dda581c0112ff79ddff9692343611176f56e))
* build failed when no static build ([9194f83b](https://github.com/linuxdeepin/dtkwidget/commit/9194f83b5faa1f1ffbb47105099f6257fc69db39))
* remove useless module ([84c50e83](https://github.com/linuxdeepin/dtkwidget/commit/84c50e8341fa28806a2186aba28f056d1a5acaae))
* isValid not work in flatpak ([88095fdf](https://github.com/linuxdeepin/dtkwidget/commit/88095fdf22c25b4458ed38cf7a1b347467513ec9))
* support hi-DPI for DClipEffectWidget ([2d152997](https://github.com/linuxdeepin/dtkwidget/commit/2d1529974c291f537934870cec53f86306e660a1))
* wait dbus call return ([bb863db0](https://github.com/linuxdeepin/dtkwidget/commit/bb863db0188678017cfbc7f05aef28c4dc7ddd3d))
* can not auto adjust dialog position ([c487b5cb](https://github.com/linuxdeepin/dtkwidget/commit/c487b5cb462709d42a4c9b0a9938a35037b0205a))
* add DAbstractDialog::move(int, int) and DAbstractDialog::setGeometry(int, int, int, int) ([3f4bc68b](https://github.com/linuxdeepin/dtkwidget/commit/3f4bc68bca7752b80703e4a9d3be152012e0511b))
* crash when quit application ([13d22e32](https://github.com/linuxdeepin/dtkwidget/commit/13d22e32ccc37504182a21ac8133503a437e7f6e))
* move the DAbstractDialog window is invalid ([7d578e99](https://github.com/linuxdeepin/dtkwidget/commit/7d578e999a190d284895243784dae0f3f035ed0e))
* the DPasswordEdit text color ([97ac1992](https://github.com/linuxdeepin/dtkwidget/commit/97ac1992bb37facf67d7842df8d4248c4100c46f))
* hide max button if cannot resize ([20dfc974](https://github.com/linuxdeepin/dtkwidget/commit/20dfc97447cd8c46139d8c9fd409d233805555c3))
* work around DSimpleListView cannot use tr ([98be9fed](https://github.com/linuxdeepin/dtkwidget/commit/98be9fed1d7d8c3fce7e27934678c57fc4b2ed6e))
* dtk_build add error marco ([bd1b7f0d](https://github.com/linuxdeepin/dtkwidget/commit/bd1b7f0d3edfe3977a9beebbe78a1cae0010ff06))
* use fix class name as theme file first ([d2dfd67d](https://github.com/linuxdeepin/dtkwidget/commit/d2dfd67de094334222b28c3b8f1176875b1d1393))
* use a wrong variable when invoke DCrumbEdit::appendCrumb in DCrumbEdit ([453f5c4c](https://github.com/linuxdeepin/dtkwidget/commit/453f5c4c38824e8dde3945eea6465af6d4994422))
#### Features
* add symbols check ([a811208d](https://github.com/linuxdeepin/dtkwidget/commit/a811208d0ec7112e886c466b2536367b381b43cb))
* register dde session manager ([5727efe4](https://github.com/linuxdeepin/dtkwidget/commit/5727efe41a6ac2bcd2e27460dfa0814ffdafa3e7))
* support dtk_lib ([07326439](https://github.com/linuxdeepin/dtkwidget/commit/0732643960a34a141ffec2b48a643e86cd1b526b))
* add DWindowGroupLeader ([d6d9f4ff](https://github.com/linuxdeepin/dtkwidget/commit/d6d9f4ff3d4523de9119f0aa4f072d75b4a889b9))
* support DTK_NO_MULTIMEDIA ([5fecfc04](https://github.com/linuxdeepin/dtkwidget/commit/5fecfc04e065fa784adaeac71ef0664a31f0cb14))
* insert virtual tab on DTabBar when drag enter ([3927d441](https://github.com/linuxdeepin/dtkwidget/commit/3927d441f83e0aaf68acc473242fb6e9e35d235d))
* the DLineEdit inherit style form the QLineEdit ([7b6caece](https://github.com/linuxdeepin/dtkwidget/commit/7b6caece0394e80b89b1831ea860cc0d06558929))
* add "startDrag/stopDrag" for DTabBar ([611bc0c2](https://github.com/linuxdeepin/dtkwidget/commit/611bc0c2ca3674904f964b86bef6ca3bb56e4f83))
* add signals dragStarted/dragEnd ([a7b9d9ba](https://github.com/linuxdeepin/dtkwidget/commit/a7b9d9ba28bded77d64eb96c8e1a1d7b750c719b))
* support disable change window cursor on dxcb platform ([08f4f2ad](https://github.com/linuxdeepin/dtkwidget/commit/08f4f2adc5fb67ba5bf41d5f849a2fbc5973c5b1))
* add signal dragActoinChanged for DTabBar ([6f894a67](https://github.com/linuxdeepin/dtkwidget/commit/6f894a67ef53caf78a15debca1f8185dc8088cd5))
* **DCrumbEdit:**
* progate Key_Escape to parent window. ([390f51bf](https://github.com/linuxdeepin/dtkwidget/commit/390f51bf6f13af090a1d1c715f20c4685b19f8da))
* support to send Key_enter or Key_return to parent window. ([d39ce078](https://github.com/linuxdeepin/dtkwidget/commit/d39ce0782ca8797f5837d9cabfa75647fa2e0070))
<a name="2.0.8"></a>
## 2.0.8
#### Bug Fixes
* fix shuttle build
## 2.0.7 (2018-03-02)
#### Bug Fixes
* check libdframeworkdbus when build ([39aa02b1](https://github.com/linuxdeepin/dtkwidget/commit/39aa02b1450f12f52d69eb3fe38a4e4865fdfac2))
* call deepin-manual with dbus and application name ([3e4293d1](https://github.com/linuxdeepin/dtkwidget/commit/3e4293d156f29a8d192d82c8cd88a99d21f68858))
* the DPasswordEdit style is wrong at the DInputDialog ([2e1c126e](https://github.com/linuxdeepin/dtkwidget/commit/2e1c126e15d6bf12ec4aaac27494cc2a68b5b73b))
* use applycation name as new deepin-manual id ([dfb05cae](https://github.com/linuxdeepin/dtkwidget/commit/dfb05caee4ca327dc3443833965ed4614cf42a06))
* parse key with + error ([dcf3a11a](https://github.com/linuxdeepin/dtkwidget/commit/dcf3a11a3c21142c34bf934736e8637a713b33d1))
* state change not connect ([0049a065](https://github.com/linuxdeepin/dtkwidget/commit/0049a0650ee12fec6f026bdd69b2814ebda30546))
* add qt internal_module failed ([975e36df](https://github.com/linuxdeepin/dtkwidget/commit/975e36df9557c6e2e2bbf77c614c99f42eeccdd9))
* delay connect native state change signal ([48e23bc9](https://github.com/linuxdeepin/dtkwidget/commit/48e23bc9e21b6760522e362d390c98772dc549fd))
* missing window state change in event filter ([7c7a4e38](https://github.com/linuxdeepin/dtkwidget/commit/7c7a4e383e319604b0ca6ca62729756619e74105))
* DTabBar tab list automatically scrolling too slow ([199c13b1](https://github.com/linuxdeepin/dtkwidget/commit/199c13b1ac52625efad1d64d75107627c34d8d7b))
* max button hint error ([43de05f3](https://github.com/linuxdeepin/dtkwidget/commit/43de05f3d7ead7f01f0b80e18ecb2f9e19eebf14))
* do not flow windowFlags if not dxcb ([4fd67cb2](https://github.com/linuxdeepin/dtkwidget/commit/4fd67cb2bd484f505e9c92a96d1a16fd1c10e81d))
* not draw tear indicator for DTabBar ([b59cbffc](https://github.com/linuxdeepin/dtkwidget/commit/b59cbffcfa6cc237712761cb09a3ce269d832102))
* connect widgetThemeChanged ([6c2d397a](https://github.com/linuxdeepin/dtkwidget/commit/6c2d397a1a27991d5753d2575d74161db5cbf0b5))
* typo for DTabBar::createMimeDataFramTab ([4bb6f1e3](https://github.com/linuxdeepin/dtkwidget/commit/4bb6f1e32f82014c611ab256180ca485dd7d114d))
* remove border style workaround ([3030f496](https://github.com/linuxdeepin/dtkwidget/commit/3030f4966267fb9f0a6745a27decc8c6b3066323))
* hide toast label by default ([0dfb1566](https://github.com/linuxdeepin/dtkwidget/commit/0dfb15665ce2cc286015e3705e8acb38e750f7cf))
* parse config.pri failed ([a9b33216](https://github.com/linuxdeepin/dtkwidget/commit/a9b33216d3298866c9aa81bc9100bfadd38dee16))
* tabbar tab can drag only at the first time ([07cd7dac](https://github.com/linuxdeepin/dtkwidget/commit/07cd7dacf675f3e328c4e53750d727a70ee2bc0e))
* the widget's theme is not updated after changing parent ([3cb8f27a](https://github.com/linuxdeepin/dtkwidget/commit/3cb8f27adcca146d98b47f1ed7ca21439e221af0))
* can not be fixed widget style ([5bf22c11](https://github.com/linuxdeepin/dtkwidget/commit/5bf22c1117f99d5d1b08f90bd3123526fb80f5de))
* VER_MAJ/VER_MIN/VER_PAT variables is empty in qmake ([85314de3](https://github.com/linuxdeepin/dtkwidget/commit/85314de363b316afe726b5a4e96b65ce8bd5ddf7))
* VER_MAJ/VER_MIN/VER_PAT variables is empty in qmake ([13023a33](https://github.com/linuxdeepin/dtkwidget/commit/13023a33f0e71cb025aa08b4bd793cf9d05dcdff))
* set AA_DontCreateNativeWidgetSiblings to true of QGuiApplication at enable dxcb for window ([779d620b](https://github.com/linuxdeepin/dtkwidget/commit/779d620b641e0dd6da426b65f25f150187f5641f))
* include path(DTK_INCLUDEPATH) ([b6ecfd8d](https://github.com/linuxdeepin/dtkwidget/commit/b6ecfd8d78e7640b342022dfb3c75ea60a944bc5))
* **dsimplelistview:**
* painting item is incomplete. ([a268fab4](https://github.com/linuxdeepin/dtkwidget/commit/a268fab4f210246f1483dcc2c0f902059e457edc))
* adjust render offset. ([a2452c1b](https://github.com/linuxdeepin/dtkwidget/commit/a2452c1bf59b7e25d0f97cd071cd2a262e89c151))
* adjust offsetY after removeing item. ([1b3b5f4a](https://github.com/linuxdeepin/dtkwidget/commit/1b3b5f4ac37ab3c885a1267965d8b11514da5308))
#### Features
* control single instance by env ([9c388818](https://github.com/linuxdeepin/dtkwidget/commit/9c3888182db247ad9b65448451ddbe6ad36a1741))
* support hide group ([20c72e80](https://github.com/linuxdeepin/dtkwidget/commit/20c72e805c06b2d815632a402d37cfa60f582ad4))
* add DFileDialog ([425d82bf](https://github.com/linuxdeepin/dtkwidget/commit/425d82bf52d81f4ae1f51f56c0ee5f720d0a9c84))
* dynamic website info in about dialog ([22611379](https://github.com/linuxdeepin/dtkwidget/commit/2261137990966b95ef1696410637c586350e2398))
* create cmake file by dtk_cmake ([ae5a226d](https://github.com/linuxdeepin/dtkwidget/commit/ae5a226d82933dd43ad04adcdbd6b9d973b1c189))
* support qt module ([1525c2cb](https://github.com/linuxdeepin/dtkwidget/commit/1525c2cb363ba6c963ca6d43b0ba3dc6e80ff4b0))
* update password edit style ([45f07ab6](https://github.com/linuxdeepin/dtkwidget/commit/45f07ab60d618b94ede3451063c27c6cb97e99cb))
* auto scroll when move/drag tab ([d3a266bc](https://github.com/linuxdeepin/dtkwidget/commit/d3a266bc9b871371973a969cc3d314d1daa6cb3c))
* support new and legacy dman interface ([3e3c8849](https://github.com/linuxdeepin/dtkwidget/commit/3e3c88497be7372e582ba62eadfdb3553b2449ad))
* support set combobox data with QMap ([bdad10fc](https://github.com/linuxdeepin/dtkwidget/commit/bdad10fcfc9b350bf28f4eee90233145fa4060af))
* fixed the QPrintDialog theme to dlight ([18df8e0e](https://github.com/linuxdeepin/dtkwidget/commit/18df8e0e6281ac74fb1de057ed33f3ad976ffa0b))
* support dynamic property ([b121081c](https://github.com/linuxdeepin/dtkwidget/commit/b121081cf41ee0cc6c6efe47af31c8d73f2fdcd5))
* fixed the width of the DTabBar add button to 48 ([ec322589](https://github.com/linuxdeepin/dtkwidget/commit/ec322589e3ea29ef90177e9c0af453b72413f1a4))
* add buildDtkVersion/runtimeDtkVersion to DApplication ([9aaa1583](https://github.com/linuxdeepin/dtkwidget/commit/9aaa15830c3077c48019c321a29a8f79f93c97fd))
* parser correctly when version has '.is.' ([5f48b1f9](https://github.com/linuxdeepin/dtkwidget/commit/5f48b1f9b844679854f4fd437dca300c41ef23fe))
* follow parent/toplevelWidget flags ([d1f7bad0](https://github.com/linuxdeepin/dtkwidget/commit/d1f7bad0273287782a70dc4af4cac2223133dd7d))
* support configurable whether to redefine the window content when dxcb is turned on ([1cdf42f1](https://github.com/linuxdeepin/dtkwidget/commit/1cdf42f1e8fc09b3fe67d276db69e47934359c05))
* add "target" argument for DTabBar::tabDroped ([bcd009af](https://github.com/linuxdeepin/dtkwidget/commit/bcd009afb5661de15ecb4edbde2319339e221b61))
* auto hide title when fullscreen ([3e2e2921](https://github.com/linuxdeepin/dtkwidget/commit/3e2e2921d8c22c9feee7171c11e22551bcb668d5))
* add propertys maskColor and flashColor of DTabBar ([7dd2e8b4](https://github.com/linuxdeepin/dtkwidget/commit/7dd2e8b4cee7b6fe16e3ccb2bb12d9cff65f2a2b))
* support drag tab to other for DTabBar ([f6749472](https://github.com/linuxdeepin/dtkwidget/commit/f674947255ad0d0158ec3cd8d5dd9f6927bad787))
* add DToast ([c4d3f48f](https://github.com/linuxdeepin/dtkwidget/commit/c4d3f48fba40df0b8b31932e926b767b44ace6bd))
* add window title ([e7cffb03](https://github.com/linuxdeepin/dtkwidget/commit/e7cffb03466ab45562db4afad42422b62cad557c))
* not set AA_DontCreateNativeWidgetSiblings if dxcb version greater then 1.1.5 ([5b3b4b5e](https://github.com/linuxdeepin/dtkwidget/commit/5b3b4b5eab4c96d46b444035e81124f14307b98b))
* set version form changelog ([416f2e64](https://github.com/linuxdeepin/dtkwidget/commit/416f2e64a42249ad8476a9ee2416b9fd07f2ea73))
* add property "realWindowId" for DPlatformWindowHandle ([b888a855](https://github.com/linuxdeepin/dtkwidget/commit/b888a8551f1a607e1f72b8e17b1229a17629857b))
* **DApplication:** add the property of the menu ([ff9a89d7](https://github.com/linuxdeepin/dtkwidget/commit/ff9a89d7536b2225ea341c90f3aefa2bf3b40aeb))
* **DSuggestButton:** add initialize text parameter. ([20767937](https://github.com/linuxdeepin/dtkwidget/commit/207679379da96fb52d4567dd4731a8f645c0dd81))
<a name="2.0.6"></a>
## 2.0.6 (2018-01-15)
#### Bug Fixes
* blur effect widget not set WA_TranslucentBackground ([572ca1fc](https://github.com/linuxdeepin/dtkwidget/commit/572ca1fcb6cba67fe85e8f10fd69e32107a98c04))
* connect signals for DTabBar ([44057f46](https://github.com/linuxdeepin/dtkwidget/commit/44057f462860ce11cdb58477c083ab26cc37410d))
* blur area not scale on not use dxcb window ([d990cdf6](https://github.com/linuxdeepin/dtkwidget/commit/d990cdf66f3bf62315c14265d4e7989d332eb7b9))
* memory leak in DPictureSequenceView ([4693754f](https://github.com/linuxdeepin/dtkwidget/commit/4693754f5cf3702cb58c26d87a73402294238468))
* **DDialog:** reset DLineEdit theme error ([bc6b8f33](https://github.com/linuxdeepin/dtkwidget/commit/bc6b8f33d8cfe300d21ea03b95dedeeecc610803))
#### Features
* support new dman interface ([a3e46a46](https://github.com/linuxdeepin/dtkwidget/commit/a3e46a46d6f7454a6100149e9880b614202dca83))
* add DSuggestButton and DStyleOption ([929f2154](https://github.com/linuxdeepin/dtkwidget/commit/929f2154808d4b926200daadcc5f7a5d20225e10))
* not fixed font size of DDialog ([0eb76154](https://github.com/linuxdeepin/dtkwidget/commit/0eb761540d3c8581f33aa2a67abaeee95f2812e0))
* DTabBar add scroll buttons ([2f44cd29](https://github.com/linuxdeepin/dtkwidget/commit/2f44cd29ed46e3139ff0f02e3095f0249579ee47))
* add the "dtkwidget_global.h" header file ([de47120c](https://github.com/linuxdeepin/dtkwidget/commit/de47120c6c93acfc3462d1dc52debb5310537381))
* add the "DtkWidgets" header file ([b223577e](https://github.com/linuxdeepin/dtkwidget/commit/b223577e78789d7b6ab21dea8a4596ab95c9a55c))
* add animation for DTabBar on drag move tabs ([ec3f6272](https://github.com/linuxdeepin/dtkwidget/commit/ec3f6272d5f2f16297c4d48adb1d92e415d0eda4))
* support dual-click to make crumb ([b3eaa0e8](https://github.com/linuxdeepin/dtkwidget/commit/b3eaa0e85a7b9171dccdac074dfc94ba7560ad7c))
* add the DTabBar widget ([82a45b61](https://github.com/linuxdeepin/dtkwidget/commit/82a45b6130ad98699d3dc424210611d9fdae0751))
<a name="2.0.5.3"></a>
## 2.0.5.3 (2017-12-27)
#### Bug Fixes
* double click shortcutedit not sync data ([70336737](https://github.com/linuxdeepin/dtkwidget/commit/70336737ff2759245c7f1b49de6fa18b97884d9a))
* Adapt lintian ([2709dc6d](https://github.com/linuxdeepin/dtkwidget/commit/2709dc6d574e74ae4ec1d225d77a6a221534e25e))
* test correct hint for corresponding function ([8d250da3](https://github.com/linuxdeepin/dtkwidget/commit/8d250da39870332200fe0d3949c776e225f37c13))
* margin of window mode ([982940f2](https://github.com/linuxdeepin/dtkwidget/commit/982940f26b911599acb8998f862d1043cbe6335a))
* add build depend libudev-dev ([3ddffd8b](https://github.com/linuxdeepin/dtkwidget/commit/3ddffd8b5a30c262f006893965921036639d0407))
#### Features
* add nameFilters to dfilechooseredit ([367d8431](https://github.com/linuxdeepin/dtkwidget/commit/367d84310a42bc71273c59b6525125d5abccff26))
* support get buildVersion form marco ([632228d2](https://github.com/linuxdeepin/dtkwidget/commit/632228d25b6b9e5ee0bb365f18a71b54ef7576c6))
* add hideAlertMessage to dlineedit ([87aff6ee](https://github.com/linuxdeepin/dtkwidget/commit/87aff6eedfa1f13d0cc15ad0836ef04d8dff1b36))
* add setFileMode/fileMode to dfilechooseredit ([770c8a83](https://github.com/linuxdeepin/dtkwidget/commit/770c8a831583f84a52db7c66910a2fdf572eddd9))
* support copy/paste for DCrumbEdit ([90a7388d](https://github.com/linuxdeepin/dtkwidget/commit/90a7388dae8c6510b8dd47d9dd5a35ba68187197))
* add widget "DCrumbEdit" ([04e21733](https://github.com/linuxdeepin/dtkwidget/commit/04e21733b77096b2b07126722f766ef38cfe28cd))
* add namaspace to DSpinner ([454c394d](https://github.com/linuxdeepin/dtkwidget/commit/454c394dc84f17e19e759a5bbcec73e1669fae5b))
* add DSpinner ([ad30eabe](https://github.com/linuxdeepin/dtkwidget/commit/ad30eabe456f2e42229dd73bfda25325fef2e557))
* add pixmap sequence interface to DPictureSequenceView ([6b568687](https://github.com/linuxdeepin/dtkwidget/commit/6b5686879f35dc038cb5a0b578d5e3267ede8976))
* add widget mode to darrowrectangle ([e500b48f](https://github.com/linuxdeepin/dtkwidget/commit/e500b48f6984dff5bff9c12e6bd0ecf467a06804))
* **DApplication:** add multi user single Instance parameter ([d35b96e5](https://github.com/linuxdeepin/dtkwidget/commit/d35b96e5a750233a73140e22833d619ae389386a))
* **DRegion:** add compatibility macro ([49db18a7](https://github.com/linuxdeepin/dtkwidget/commit/49db18a7b299fc029ba83c4882e1f3148879c47c))
<a name="2.0.5.2"></a>
## 2.0.5.2 (2017-11-28)
#### Features
* add bordless window on mac ([5f47b896](https://github.com/linuxdeepin/dtkwidget/commit/5f47b89671cdf84133eed6c908cb06d66a8cc2ff))
* support DTK_TITLE_DRAG_WINDOW on mac ([20782b55](https://github.com/linuxdeepin/dtkwidget/commit/20782b5502b0452bc17f15b4736043d53d42a878))
* use D_DECL_DEPRECATED ([fe75e70f](https://github.com/linuxdeepin/dtkwidget/commit/fe75e70ffa45865a969cc3c6cb7adc033f52bb0f))
* add DFileChooserEdit light theme ([0c77c6f9](https://github.com/linuxdeepin/dtkwidget/commit/0c77c6f99a432cac949391042551a8a54dec23f3))
* show system menu on right mouse button press of DTitlebar ([52ccd1e9](https://github.com/linuxdeepin/dtkwidget/commit/52ccd1e9fb81a7fd71081411c2d1428a303d0535))
#### Bug Fixes
* window motif hints is error of DMainWindow ([8f90556f](https://github.com/linuxdeepin/dtkwidget/commit/8f90556f6a8380f977f09a8bedc95a5cdd7ae760))
* fix macos build failed ([63ee2247](https://github.com/linuxdeepin/dtkwidget/commit/63ee2247367ed2fca109beda82530e2a9242e921))
* popup system menu in window content ([c481eec6](https://github.com/linuxdeepin/dtkwidget/commit/c481eec63da02acaf77d7847e403f0e5f5028688))
* correct typos in multiple files ([be8ea417](https://github.com/linuxdeepin/dtkwidget/commit/be8ea417b337a2b2c34a3523c3b73b5627d18e71))
* windows build failed ([4dd39533](https://github.com/linuxdeepin/dtkwidget/commit/4dd3953353c1ce32145e9b3da5e89e7603099d03))
<a name="2.0.5.1"></a>
## 2.0.5.1 (2017-11-16)
#### Bug Fixes
* add DTK_DMAN_PORTAL support ([3c03ee65](3c03ee65))
* change the QGuiApplication::platformName() to "xcb" on dxcb platform ([4356268d](4356268d))
* isDXcbPlatform for new version dxcb plugin ([d8b5c040](d8b5c040))
* **DRegionMonitor:**
* properly handle scale ([95766b45](95766b45))
* possible double freed object ([708a5fbe](708a5fbe))
#### Features
* add shortcut to DMainWindow ([5e9d5b6c](5e9d5b6c))
* add F1 shortcut ([7e311564](7e311564))
* add setState to DImageButton ([fcf9c3ef](fcf9c3ef))
<a name="2.0.5"></a>
## 2.0.5 (2017-11-06)
#### Features
* optimize shift up/down keypress for DSimpleListView ([7019967f](7019967f))
* DTitlebar add disable API ([ea92fae9](ea92fae9))
* add embed mode ([266f4337](266f4337))
* add trash dbus interface ([b88efbb8](b88efbb8))
* change productIcon to QIcon ([2a914b51](2a914b51))
* Add DHiDPIHelper class ([0fdbcf60](0fdbcf60))
* daboutdialog deepin logo support hidpi ([405352f0](405352f0))
* Set AA_UseHighDpiPixmaps on DApplication ([e9fb9fcf](e9fb9fcf))
* add svgc ([fedb3860](fedb3860))
* lineedit support hidpi ([026ecb65](026ecb65))
* titlebar buttons support hidpi ([56b11074](56b11074))
* titlebar support hidpi ([dd537c17](dd537c17))
* add dbus singleton ([6ae2978f](6ae2978f))
* dpicturesequenceview support @2x files ([a299ef09](a299ef09))
* dvideowidget support set device ratio ([74eaa1d6](74eaa1d6))
* add DWaterProgress::setTextVisible ([a61d2e88](a61d2e88))
* add DSettingsWidgetFactory ([f14ff92f](f14ff92f))
* add radius set interface to pageindicator ([7bc360c0](7bc360c0))
* add border and shadow to DWaterProgress ([ecc4ba17](ecc4ba17))
* **hidpi:**
* DWaterProgress support hidpi ([94350b7f](94350b7f))
* DArrowRectangle support hidpi ([d7d6a876](d7d6a876))
#### Bug Fixes
* windows build failed ([1b40d6a7](1b40d6a7))
* disable _q_onTopWindowMotifHintsChanged when use DTitlebar::setWindowFlags ([5e0149b5](5e0149b5))
* draw pixmap size error on DTitlebar ([228fd523](228fd523))
* DTitlebar button is hidden on the non DMainWindow windows ([7b131a72](7b131a72))
* paint DBlurEffectWindow error if device pixel ratio is not 1 ([dff92b1b](dff92b1b))
* min/maximize button is hidden on DMainWindow ([89279ac4](89279ac4))
* fix hidpi load icon size ([79e81f94](79e81f94))
* update DDialog message style ([2c6133c1](2c6133c1))
* crash on multiple apps registered xmouseare ([dea8651f](dea8651f))
* icon of DSearchEdit not clear on hidpi ([6ebada94](6ebada94))
* DSimpleListview arrow isn't visible ([b08e7f1c](b08e7f1c))
* DAboutDialog icon not supporting hidpi ([6ec60734](6ec60734))
* fix dtk-svgc crash if no font init ([83857265](83857265))
* fix settings dialog style ([797c3e35](797c3e35))
* dialog use same style as light ([9d7d4a61](9d7d4a61))
* fix windows build failed ([7f31ea48](7f31ea48))
* fix dialog size error on hidpi ([b9273c72](b9273c72))
* update translation ([0045c39e](0045c39e))
* crash if setIcon with svg ([9b577be3](9b577be3))
* remove useless image ([10c9607c](10c9607c))
* remove private header file ([61b375b2](61b375b2))
* dswitchbutton error calculation radius ([d742b169](d742b169))
* dimagebutton private not initialized ([146d893e](146d893e))
* **DArrowRectangle:** arrow position error ([592187fb](592187fb))
* **DPasswordEdit:** password edit icon out of content ([c1fe173a](c1fe173a))

31
CMakeLists.txt Normal file
View File

@ -0,0 +1,31 @@
cmake_minimum_required(VERSION 3.13)
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DTK_FILE_VERSION)
string(STRIP "${DTK_FILE_VERSION}" DTK_FILE_VERSION)
set(DTK_VERSION "${DTK_FILE_VERSION}" CACHE STRING "define project version")
project(DtkWidget
VERSION ${DTK_VERSION}
DESCRIPTION "DTK Widget module"
HOMEPAGE_URL "https://github.com/linuxdeepin/dtkwidget"
LANGUAGES CXX C
)
# Set install path
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX /usr)
endif()
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
if("${PROJECT_VERSION_MAJOR}" STREQUAL "5")
set(QT_VERSION_MAJOR 5)
include(dtkwidget.cmake)
elseif("${PROJECT_VERSION_MAJOR}" STREQUAL "6")
set(QT_VERSION_MAJOR "6")
set(DTK_VERSION_MAJOR "6")
include(dtkwidget.cmake)
else()
message(SEND_ERROR "not support Prject Version ${PROJECT_VERSION}.")
endif()

964
LICENSE
View File

@ -1,675 +1,305 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License.
"The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version".
The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
“This License” refers to version 3 of the GNU General Public License.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on the Program.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.

156
LICENSES/CC-BY-4.0.txt Normal file
View File

@ -0,0 +1,156 @@
Creative Commons Attribution 4.0 International
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensors permission is not necessary for any reasonfor example, because of any applicable exception or limitation to copyrightthen that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
Creative Commons Attribution 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
Section 1 Definitions.
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
h. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
Section 2 Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
A. reproduce and Share the Licensed Material, in whole or in part; and
B. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
3. Term. The term of this Public License is specified in Section 6(a).
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
5. Downstream recipients.
A. Offer from the Licensor Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this Public License.
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
Section 3 License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified form), You must:
A. retain the following if it is supplied by the Licensor with the Licensed Material:
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of warranties;
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License.
Section 4 Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
Section 5 Disclaimer of Warranties and Limitation of Liability.
a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
Section 6 Term and Termination.
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
2. upon express reinstatement by the Licensor.
c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
Section 7 Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
Section 8 Interpretation.
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
Creative Commons may be contacted at creativecommons.org.

121
LICENSES/CC0-1.0.txt Normal file
View File

@ -0,0 +1,121 @@
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.

View File

@ -0,0 +1,304 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License.
"The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version".
The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
“This License” refers to version 3 of the GNU General Public License.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on the Program.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.

View File

@ -1,12 +1,18 @@
# Deepin Tool Kit Widget {#mainpage}
# Deepin Tool Kit Widget
Deepint Tool Kit (Dtk) is the base devlopment tool of all C++/Qt Developer work on Deepin.
Deepin Tool Kit Widget(DtkWidget) provides the base widgets on Deepin.
中文说明:[README_zh_CN.md](./README.zh_CN.md)
## Documentation
中文文档:[dtkwidget文档](https://linuxdeepin.github.io/dtkwidget/index.html)
## Dependencies
### Build dependencies
* qmake >= 5.3
* Qt >= 5.6
## Installation
@ -14,20 +20,37 @@ Deepint Tool Kit (Dtk) is the base devlopment tool of all C++/Qt Developer work
1. Make sure you have installed all dependencies.
```bash
sudo apt build-dep ./
```
If you need to use the designer plugin, you can:
```bash
$ sudo apt install qttools5-dev
# build
$ cmake ./plugin/dtkuiplugin -B build -DINSTALL_PLUGIN=ON -DCMAKE_INSTALL_PREFIX=/usr
$ cmake --build build -j$(nproc)
# install
$ cd build
$ sudo make install
```
2. Build:
````
$ mkdir build
$ cd build
$ qmake ..
$ make
````
```bash
cmake -B build
cmake --build build -j$(nproc)
```
3. Install:
````
$ sudo make install
````
```bash
cd build
sudo make install
```
## Getting help
@ -36,15 +59,26 @@ Any usage issues can ask for help via
* [Gitter](https://gitter.im/orgs/linuxdeepin/rooms)
* [IRC channel](https://webchat.freenode.net/?channels=deepin)
* [Forum](https://bbs.deepin.org)
* [WiKi](http://wiki.deepin.org/)
* [WiKi](https://wiki.deepin.org/)
## Getting involved
We encourage you to report issues and contribute changes
* [Contribution guide for users](http://wiki.deepin.org/index.php?title=Contribution_Guidelines_for_Users)
* [Contribution guide for developers](http://wiki.deepin.org/index.php?title=Contribution_Guidelines_for_Developers).
* [Contribution guide for developers](https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers-en). (English)
## Made with dtkwidget
List of some open source projects using dtkwidget: (Contact us or open a pull request to add yours)
* **[DMarked](https://github.com/DMarked/DMarked)**: Markdown Editor with dtkwidget
* **[DtkTimer](https://github.com/gfdgd-xi/timer)**: Clock with dtkwidget
* **[simple-image-filter](https://github.com/dependon/simple-image-filter)**: Image Process with dtkwidget
* **[SparkStore](https://github.com/Spark-Store/Spark-Store)**: SparkStore
* **[WingHexExplorer](https://github.com/Wing-summer/WingHexExplorer)**: Powerful Hexadecimal Editor with dtkwidget
* **[WingTool](https://github.com/Wing-summer/WingTool)**: A Productivity Plugin-based Toolbox with dtkwidget
* **[ScreenLight](https://github.com/Wing-summer/ScreenLight)**: A small tool to ajust the brightness of the screen with dtkwidget
## License
deepin-tool-kit is licensed under [GPLv3](LICENSE).
deepin-tool-kit is licensed under [LGPL-3.0-or-later](LICENSE).

82
README.zh_CN.md Normal file
View File

@ -0,0 +1,82 @@
## Deepin Tool Kit Widget
Deepin Tool Kit Widget(DtkWidget) 提供各种UOS风格dtk基础控件.
## 文档
中文文档:[dtkwidget文档](https://linuxdeepin.github.io/dtkwidget/index.html)
## 依赖
### 编译依赖
* Qt >= 5.6
## 安装
### 从源代码构建
1. 确保已经安装了所有的编译依赖.
```bash
sudo apt build-dep ./
```
如果需要使用 `qtcreator` 的设计功能,可以
```bash
$ sudo apt install qttools5-dev
# build
$ cmake ./plugin/dtkuiplugin -B build -DINSTALL_PLUGIN=ON -DCMAKE_INSTALL_PREFIX=/usr
$ cmake --build build -j$(nproc)
# install
$ cd build
$ sudo make install
```
2. 构建 `dtkwidget` :
```bash
cmake -B build
cmake --build build -j$(nproc)
```
3. 安装:
```bash
cd build
sudo make install
```
## 帮助
任何使用问题都可以通过以下方式寻求帮助:
* [Gitter](https://gitter.im/orgs/linuxdeepin/rooms)
* [IRC channel](https://webchat.freenode.net/?channels=deepin)
* [Forum](https://bbs.deepin.org)
* [WiKi](https://wiki.deepin.org/)
## 参与贡献
我们鼓励您报告问题并作出更改
* [开发者代码贡献指南](https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers)
## 使用dtkwidget的项目
下面是使用dtkwidget的开源项目:(如果您想添加属于自己的开源项目请给我们提交PR)
* **[DMarked](https://github.com/DMarked/DMarked)**: 使用Dtk构建的Markdown编辑器
* **[DtkTimer](https://github.com/gfdgd-xi/timer)**: 使用DtkWidget构建的时钟
* **[simple-image-filter](https://github.com/dependon/simple-image-filter)**: 使用DtkWidget构建的图像处理软件
* **[SparkStore](https://github.com/Spark-Store/Spark-Store)**: 星火商店
* **[WingHexExplorer](https://github.com/Wing-summer/WingHexExplorer)**: 使用DtkWidget构建的强大的十六进制编辑器
* **[WingTool](https://github.com/Wing-summer/WingTool)**: 使用DtkWidget构建的基于插件的工具箱
* **[ScreenLight](https://github.com/Wing-summer/ScreenLight)**: 使用DtkWidget构建的用于调节屏幕亮度的小工具
## 协议
DTK工具包遵循协议 [LGPL-3.0-or-later](LICENSE).

1
VERSION Normal file
View File

@ -0,0 +1 @@
5.7.25

1
VERSION.in Normal file
View File

@ -0,0 +1 @@
@version@

38
archlinux/PKGBUILD Normal file
View File

@ -0,0 +1,38 @@
# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=dtkwidget-git
pkgver=5.7.25
pkgrel=1
sourcename=dtkwidget
sourcetars=("$sourcename"_"$pkgver".tar.xz)
sourcedir="$sourcename"
pkgdesc='Deepin graphical user interface library'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dtkwidget"
license=('LGPL3')
depends=('dtkcore-git' 'dtkgui-git' 'qt5-svg'
'qt5-x11extras' 'dtkcommon-git' 'startup-notification')
makedepends=('git' 'qt5-tools' 'gtest' 'ninja' 'cmake' 'doxygen')
provides=('dtkwidget')
conflicts=('dtkwidget')
groups=('deepin-git')
source=("${sourcetars[@]}")
sha512sums=('SKIP')
build() {
cd $sourcedir
cmake . -GNinja \
-DMKSPECS_INSTALL_DIR=lib/qt/mkspecs/modules/\
-DBUILD_PLUGINS=OFF \
-DBUILD_DOCS=ON \
-DQCH_INSTALL_DESTINATION=share/doc/qt \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
ninja
}
package() {
cd $sourcedir
DESTDIR="$pkgdir" ninja install
}

101
conanfile.py Normal file
View File

@ -0,0 +1,101 @@
# SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
#
# SPDX-License-Identifier: LGPL-3.0-or-later
from conans import ConanFile, tools
import os
class DtkwidgetConan(ConanFile):
name = 'dtkwidget'
version = '2.0.9'
license = 'GPL'
author = 'Iceyer me@iceyer.net'
url = 'https://github.com/linuxdeepin/dtkwidget'
description = 'cross platform ui library'
topics = ('qt', 'dtk')
settings = 'os', 'compiler', 'build_type', 'arch'
options = {'shared': [True, False]}
default_options = 'shared=False'
generators = 'qmake'
exports_sources = "*"
requires = 'qt/5.6.3@iceyer/stable', 'dtkcore/2.0.9@iceyer/stable', 'OpenSSL/1.0.2n@conan/stable', 'jom_installer/1.1.2@bincrafters/stable'
def extend_include_path(self):
return '%s/include/libdtk-%s/DWidget' % (self.package_folder, self.version)
def include_install_path(self):
return '/include/libdtk-%s' % self.version
# def source(self):
# self.run('git clone https://github.com/linuxdeepin/dtkwidget.git')
# self.run('cd dtkwidget && git checkout 2.0.9.9')
def build(self):
outdir = self.build_folder
includedir = outdir + self.include_install_path()
mkspecsdir = outdir + '/mkspecs'
libdir = outdir + '/lib'
env_vars = tools.vcvars_dict(self.settings)
env_vars['_CL_'] = '/utf-8'
with tools.environment_append(env_vars):
command = 'qmake -r'
command += ' VERSION=%s' % self.version
# command += ' CONFIG-=debug_and_release'
# command += ' CONFIG-=debug_and_release_target'
command += ' CONFIG+=release'
command += ' PREFIX=%s' % outdir
command += ' LIB_INSTALL_DIR=%s' % libdir
command += ' INCLUDE_INSTALL_DIR=%s' % includedir
command += ' MKSPECS_INSTALL_DIR=%s' % mkspecsdir
command += ' DTK_STATIC_LIB=YES'
command += ' DTK_STATIC_TRANSLATION=YES'
command += ' DTK_NO_MULTIMEDIA=YES'
command += ' %s' % self.source_folder
self.run(command)
self.run('jom clean')
self.run('jom')
self.run('jom install')
def package(self):
self.deploy()
outdir = self.build_folder
self.copy('*', dst='include', src=outdir+'/include')
self.copy('*.lib', dst='lib', src=outdir+'/lib')
self.copy('*', dst='mkspecs', src=outdir+'/mkspecs')
def package_info(self):
self.cpp_info.libs = ['dtkwidget']
self.cpp_info.includedirs.append(self.extend_include_path())
self.env_info.QMAKEPATH = self.cpp_info.rootpath + \
os.pathsep + self.deps_env_info.QMAKEPATH
self.env_info.QMAKEFEATURES = self.cpp_info.rootpath + \
'/mkspecs/features' + os.pathsep+self.deps_env_info.QMAKEFEATURES
def deploy(self):
try:
content = []
module_pri = self.build_folder + '/mkspecs/modules/qt_lib_dtkwidget.pri'
s = open(module_pri)
for line in s.readlines():
if line.startswith('QT.dtkwidget.tools'):
line = 'QT.dtkwidget.tools = %s\n' % (
self.package_folder + '/bin')
elif line.startswith('QT.dtkwidget.libs'):
line = 'QT.dtkwidget.libs = %s\n' % (
self.package_folder + '/lib')
elif line.startswith('QT.dtkwidget.includes'):
line = 'QT.dtkwidget.includes = %s\n' % (
self.extend_include_path())
content.append(line)
s.close()
# print("create module file", content)
s = open(module_pri, 'w')
s.writelines(content)
except FileNotFoundError:
print("skip update qt module file")

541
debian/changelog vendored
View File

@ -1,3 +1,544 @@
dtkwidget (5.7.25) unstable; urgency=medium
* Release 5.7.25
-- yeshanshan <yeshanshan@uniontech.com> Thu, 30 Oct 2025 21:45:45 +0800
dtkwidget (5.7.24) unstable; urgency=medium
* Release 5.7.24
-- yeshanshan <yeshanshan@uniontech.com> Thu, 16 Oct 2025 19:45:32 +0800
dtkwidget (5.7.23) unstable; urgency=medium
* Release 5.7.23
-- yeshanshan <packages@deepin.org> Thu, 25 Sep 2025 16:49:19 +0800
dtkwidget (5.7.22) unstable; urgency=medium
* Release 5.7.22
-- yeshanshan <yeshanshan@uniontech.com> Thu, 04 Sep 2025 19:27:01 +0800
dtkwidget (5.7.21) unstable; urgency=medium
* Release 5.7.21
-- yeshanshan <packages@deepin.org> Thu, 14 Aug 2025 19:48:07 +0800
dtkwidget (5.7.20) unstable; urgency=medium
* Release 5.7.20
-- yeshanshan <yeshanshan@uniontech.com> Thu, 31 Jul 2025 19:59:37 +0800
dtkwidget (5.7.19) unstable; urgency=medium
* Release 5.7.19
-- yeshanshan <yeshanshan@uniontech.com> Thu, 03 Jul 2025 21:12:54 +0800
dtkwidget (5.7.18) unstable; urgency=medium
* Release 5.7.18
-- yeshanshan <yeshanshan@uniontech.com> Fri, 27 Jun 2025 17:08:45 +0800
dtkwidget (5.7.17) unstable; urgency=medium
* Release 5.7.17
-- yeshanshan <yeshanshan@uniontech.com> Thu, 19 Jun 2025 10:06:50 +0800
dtkwidget (5.7.16) unstable; urgency=medium
* Release 5.7.16
-- YeShanShan <yeshanshan@uniontech.com> Mon, 19 May 2025 17:22:07 +0800
dtkwidget (5.7.15) unstable; urgency=medium
* fix: correct text elision behavior with shortcuts
* style: adjust website link style in about dialog
* chore: reuse warning
* fix: watermark can't select picture for PrintPreivew
* build: compiling failed with Qt 6.9
* chore: bump version to 5.7.14
-- YeShanShan <yeshanshan@uniontech.com> Thu, 08 May 2025 17:53:16 +0800
dtkwidget (5.7.14) unstable; urgency=medium
* fix: wheel event is accepted in qt6
* fix: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
* fix: DToolTip宽度计算
* fix: DFloatingMessage宽度计算
-- YeShanShan <yeshanshan@uniontech.com> Thu, 17 Apr 2025 21:51:46 +0800
dtkwidget (5.7.13) unstable; urgency=medium
* fix: accessing wild pointer for DAboutDialog
* feat: increase fallback for password character
-- YeShanShan <yeshanshan@uniontech.com> Thu, 20 Mar 2025 17:06:12 +0800
dtkwidget (5.7.12) unstable; urgency=medium
* fix: failed to save too long filename for DPrintPreviewWidget
* chore: remove warning in qt6
* feat: Add files generated by qdbusXML2cpp and DCONG2cpp
* doc: update docs for dwatermarkhelper
-- YeShanShan <yeshanshan@uniontech.com> Thu, 06 Mar 2025 17:29:50 +0800
dtkwidget (5.7.11) unstable; urgency=medium
* fix: window filickering caused by animation for DDrawer
* fix: app crashed for DBlurEffectWidget in qt6
* fix: titlebar can't drag after close DAboutDialog
* fix: PrintPreview can't switch orientation
-- YeShanShan <yeshanshan@uniontech.com> Thu, 27 Feb 2025 20:47:56 +0800
dtkwidget (5.7.10) unstable; urgency=medium
* fix: 修复 桌面/文管文件,打开属性窗口闪烁
-- YeShanShan <yeshanshan@uniontech.com> Thu, 13 Feb 2025 17:18:34 +0800
dtkwidget (5.7.9) unstable; urgency=medium
* fix: missing QT_QPA_PLATFORM for DApplication
-- Deepin Packages Builder <packages@deepin.org> Thu, 23 Jan 2025 09:07:09 +0000
dtkwidget (5.7.8) unstable; urgency=medium
* fix: access wild pointer for targetWindowHandle
-- Deepin Packages Builder <packages@deepin.org> Tue, 14 Jan 2025 11:17:32 +0000
dtkwidget (5.7.7) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Thu, 09 Jan 2025 09:28:39 +0000
dtkwidget (5.7.6) unstable; urgency=medium
* fix: resident floating message cannot be closed(Bug: 297669)
* fix: 调整滑动条横条和刻度颜色(Bug: 254295)(Influence: 调整滑动条横条和刻度颜色)
-- Deepin Packages Builder <packages@deepin.org> Thu, 02 Jan 2025 05:43:53 +0000
dtkwidget (5.7.5) unstable; urgency=medium
* fix: webengineView abnormal in DMainWindow
-- Deepin Packages Builder <packages@deepin.org> Thu, 12 Dec 2024 03:03:54 +0000
dtkwidget (5.7.4) unstable; urgency=medium
* fix: ddialog's lambda func may cause segfault
* fix: some windows have dual title bars
-- Deepin Packages Builder <packages@deepin.org> Tue, 03 Dec 2024 02:00:46 +0000
dtkwidget (5.7.3) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Wed, 20 Nov 2024 02:19:06 +0000
dtkwidget (5.7.2) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Wed, 13 Nov 2024 01:53:26 +0000
dtkwidget (5.7.1) unstable; urgency=medium
* fix: 如果窗口打开时即为最大化状态,则最大化图标显示错误 (#601)
Thanks to Whale107(Bug: 262201)(Influence: mainwindow最大化)
* feat: support treeland notitlebar mode
* chore: 新增进度条动效和一个新进度条类 (#589)
Thanks to Whale107
* chore: 新增搜索框图标移动动画 (#590)
Thanks to Whale107
* fix: adjust indeterminateprogressbar color (#597)
Thanks to Whale107
* chore: 增加滚动区域滚轮滚动到顶部或底部的回弹效果 (#596)
Thanks to Whale107
* chore: 增加ButtonBox hover 和切换动画 (#595)
Thanks to Whale107
* chore: 使用dci icon重绘toolbutton, 增加动画 (#594)
Thanks to Whale107
* chore: 使用dci icon重绘switchButton, 增加动画 (#593)
Thanks to Whale107
* chore: 增加应用内通知动画 (#592)
Thanks to Whale107
* fix: adjust switchbutton dci icon (#603)
Thanks to Whale107
* Revert "chore: 使用dci icon重绘toolbutton, 增加动画 (#594)"
* fix: obsolete interfaces
* fix: display exception of checkbox & radiobutton(Bug: 276189)
* fix: wrong status of switch button(Bug: 276221)
-- Deepin Packages Builder <packages@deepin.org> Wed, 16 Oct 2024 03:30:46 +0000
dtkwidget (5.6.34) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Wed, 21 Aug 2024 09:47:27 +0000
dtkwidget (5.6.33) unstable; urgency=medium
* fix: DMessageManager::sendMessage cause crash
Thanks to zty199
* fix: wrong product icon size in DAboutDialog
Thanks to zty199
* fix: DTitleBar动态设置Icon时间距异常
* fix: 控制中心标题栏返回按钮消失 (#588)
Thanks to Whale107(Bug: 264379)(Influence: 控制中心-标题栏)
-- Deepin Packages Builder <packages@deepin.org> Tue, 20 Aug 2024 03:30:08 +0000
dtkwidget (5.6.31) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Thu, 27 Jun 2024 09:11:34 +0000
dtkwidget (5.6.30) unstable; urgency=medium
* feat: modify the spacing between the title and the top(Issue: https://github.com/linuxdeepin/developer-center/issues/8418)
* fix: 解决wayland下DDialog窗口透明问题的问题 (#578)
Thanks to Cjq(Bug: 249975)(Influence: wayland下DDialog窗口模糊)
-- Deepin Packages Builder <packages@deepin.org> Thu, 30 May 2024 02:46:31 +0000
dtkwidget (5.6.29) unstable; urgency=medium
* fix: 修复大多数按钮不响应enter事件(Bug: 253935)(Influence: 按钮响应键盘回车事件)
* revert: "fix: 自定义页码切换问题"(Issue: https://github.com/linuxdeepin/developer-center/issues/7983)
* fix: support build on qt 6.7
-- Deepin Packages Builder <packages@deepin.org> Mon, 13 May 2024 03:02:55 +0000
dtkwidget (5.6.28) unstable; urgency=medium
* fix: window menu icon(Issue: https://github.com/linuxdeepin/developer-center/issues/8297)
-- Deepin Packages Builder <packages@deepin.org> Mon, 29 Apr 2024 08:23:39 +0000
dtkwidget (5.6.27) unstable; urgency=medium
* chore: disable broken workflow build
* fix: next action rect position error(Issue: https://github.com/linuxdeepin/developer-center/issues/6379)
* fix: fix the problem of text position in dstyleditemdelegate(issue: 7673)
* fix: Split window position error(Issue: https://github.com/linuxdeepin/developer-center/issues/4840)
-- Deepin Packages Builder <packages@deepin.org> Fri, 19 Apr 2024 08:55:35 +0000
dtkwidget (5.6.26) unstable; urgency=medium
* chore: 调整标题栏“更多/最小化/最大化/关闭按钮”的图标为最新1070图标样式(Task: 331465)(Influence: 窗口标题栏 更多/最小化/最大化/关闭按钮)
* feat: don't hide alert message automatically.(Issue: https://github.com/linuxdeepin/developer-center/issues/5622)
-- Deepin Packages Builder <packages@deepin.org> Tue, 26 Mar 2024 05:47:35 +0000
dtkwidget (5.6.25) unstable; urgency=medium
* chore: 调整关于对话框界面布局和样式(Task: 303535)(Influence: 关于对话框)
* fix: 调整关于对话框链接颜色(Task: 303535)(Influence: 关于对话框链接颜色)
* fix: 修复关于对话框在应用名称很长时内容有被截断的情况(Bug: 240835)(Influence: 关于对话框布局)
* fix: 修复dslider刻度标签内容过长时显示不下的问题(Task: 325247)(Influence: DSlider刻度标签显示)
* fix: dconfig frequent construction and destruction
* fix: black circle in PasswordEdit(Issue: https://github.com/linuxdeepin/developer-center/issues/7335)
* chore: Adapt to Qt 6.6.1
* Revert "fix: black circle in PasswordEdit"
* fix: black circle in PasswordLineEdit(Issue: https://github.com/linuxdeepin/developer-center/issues/7335)
-- Deepin Packages Builder <packages@deepin.org> Mon, 11 Mar 2024 01:16:27 +0000
dtkwidget (5.6.23) unstable; urgency=medium
* release 5.6.23
-- Mike Chen <chenke@deepin.org> Wed, 31 Jan 2024 09:29:11 +0800
dtkwidget (5.6.22) unstable; urgency=medium
* fix: double click edit incorrect format(Issue: https://github.com/linuxdeepin/developer-center/issues/6780)
* chore: remove unused headers in header
-- Deepin Packages Builder <packages@deepin.org> Wed, 10 Jan 2024 02:30:59 +0000
dtkwidget (5.6.21) unstable; urgency=medium
* chore: nullptr check in dstyleditemdelegate
* chore: logical judgment errors
-- Deepin Packages Builder <packages@deepin.org> Tue, 09 Jan 2024 01:45:43 +0000
dtkwidget (5.6.20) unstable; urgency=medium
* feat: styleHint tweak
* chore: add synchronization workflow
* fix: redefinition of verticalTabs
* fix: export inexistent classes in config
* fix: 修复DLicenseDialog内存泄漏(Influence: DLicenseDialog)
* fix: DArrowRectangle left/right style incorrect(Issue: #92)
* fix: DApplication初始化过程中会覆盖原有事件掩码导致丢失事件(Bug: 220369)
* feat: move ddesktopservices to dtkgui(Issue: #134)
-- Deepin Packages Builder <packages@deepin.org> Tue, 28 Nov 2023 05:40:53 +0000
dtkwidget (5.6.19) unstable; urgency=medium
* feat: change DTK_STATIC_TRANSLATION to the default setting.
Thanks to He Xin
-- Deepin Packages Builder <packages@deepin.org> Mon, 23 Oct 2023 07:33:18 +0000
dtkwidget (5.6.18) unstable; urgency=medium
* fix: ColorMode may be inconsistent with settings.(Bug: 219201)(Influence: PrintPreview)
* chore: correct typos about action slots
Thanks to Felix Yan
* feat: use DIconTheme::findQIcon(Issue: #4112)
* fix: 修复打印预览,切换打印机的时候预览图颜色显示异常
Thanks to zhangkun(Bug: 220315)(Influence: 打印预览切换打印机时预览图的颜色表现)
* doc: update docs for denhancedwidget
Thanks to syn(Issue: #94)
-- Deepin Packages Builder <packages@deepin.org> Wed, 18 Oct 2023 06:01:44 +0000
dtkwidget (5.6.17) unstable; urgency=medium
* Release 5.6.17
-- Deepin Packages Builder <packages@deepin.org> Fri, 08 Sep 2023 15:19:50 +0800
dtkwidget (5.6.16) unstable; urgency=medium
* feat: add ut_dpalettehelper
* chore: add test for dwatermarkhelper
* fix: update dependency libfreetype-dev
-- Deepin Packages Builder <packages@deepin.org> Tue, 22 Aug 2023 06:13:44 +0000
dtkwidget (5.6.15) unstable; urgency=medium
* chore: remove useless files
* feat: Add UT for DComboBox
* doc: update docs for dfontcombobox 更新dfontcombobox的文档
Thanks to LyYeeeYuwu(Issue: #94)
* doc: update docs for dtooltip
Thanks to syn(Issue: #94)
* doc: update docs for dcircleprogress
Thanks to homehome(Issue: #94)
* doc: update docs for dcrumbedit
Thanks to LyYeeeYuwu(Issue: #94)
-- Yixue Wang <wangyixue@deepin.org> Fri, 11 Aug 2023 14:03:59 +0800
dtkwidget (5.6.14) unstable; urgency=medium
* fix: Button background lightness display error(Issue: #82)
* doc: update docs for dpasswordedit
Thanks to homehome(Task: 26)
* doc: update docs for dtabbar
Thanks to homehome(Issue: #94)
* refactor!: deprecate some interfaces in dtk6
* doc: update docs for dcombobox
Thanks to Skye-rs(Issue: #94, #1773136810)
* doc: A small change to Dcombobox
Thanks to Skye-rs
* doc: update docs for dsuggestbutton
Thanks to homehome(Issue: #94)
* doc: update docs for dwaterprogress
Thanks to homehome(Issue: #94)
* doc: update docs for dbaseexpand
Thanks to syn(Issue: #94)
* doc: update docs for diconbutton
Thanks to syn(Issue: #94)
* doc: update docs for dipv4lineedit
Thanks to Skye-rs(Issue: #94, #1773136810)
* doc: update docs for dbuttonbox
Thanks to LyYeeeYuwu(Issue: #94)
* fix: remove ut to support DTK6.0
* chore: Sync by https://github.com/linuxdeepin/.github/commit/559e91167d4919644f37bbcf123eb0651c1528ea(Influence: none)
* doc: update docs for dwarningbutton
Thanks to LyYeeeYuwu(Issue: #94)
* doc: update docs for dframe
Thanks to LyYeeeYuwu(Issue: #94)
* doc: update docs for dtoolbutton
Thanks to Skye-rs(Issue: #94)
* fix: the 'ValueChanged' signal was never emitted in dcircleprogress
Thanks to homehome
* doc: update docs for dspinbox
Thanks to syn(Issue: #94)
* doc: update docs for dsearchedit
Thanks to LyYeeeYuwu(Issue: #94)
* doc: update docs for dbaseline
Thanks to homehome(Issue: #94)
* doc: update docs for dcoloredprogressbar
Thanks to homehome(Issue: #94)
* doc: update docs for dprogressbar
Thanks to LyYeeeYuwu(Issue: #94)
* chore: reduce compilation warnings
Thanks to SPUER(Issue: #96)
* doc: update docs for dmessagemanager
Thanks to homehome(Issue: #94)
* Revert "fix: 修改内存泄露问题"
* fix: fix memory leak in danchors.cpp
* fix: to fix unused qrc file in UT
* feat: add some UT
* doc: update docs for dtextedit
Thanks to LyYeeeYuwu(Issue: #94)
* fix: fix the bug of the test-recoverage.sh
* chore: deprecate dhidpihelper
-- Deepin Packages Builder <packages@deepin.org> Thu, 27 Jul 2023 06:56:38 +0000
dtkwidget (5.6.13) unstable; urgency=medium
* chore: change the text of the title on licensedialog
* chore: Add properties about license in dapplication interface
* chore: Change the text of the title in dlicensedialog
* fix: 修改分屏菜单位置错误(Bug: 199083)(Influence: 锁屏界面/任务栏等网络插件窗口显示,窗口分屏提示窗口)
* fix: abnormal font size(Issue: #17)
* chore: update translations abouut license
* fix: DApplication casting error
* fix: TextEdit color group not update(Bug: 196603)
* feat(build): support Qt6
* feat(lib): support Qt6
* feat(others): support Qt6
* fix: correct copy assignment operator
* fix: compile error of unit test
* fix: Attempted to overwrite a QRandomGenerator to system() or global().
* fix: unit test error under qt5
* chore: remove old dependency
* fix: fix compile error under qt6
* fix: unit test error under qt6
* fix: titlebar buttons don't recover
-- Deepin Packages Builder <packages@deepin.org> Mon, 26 Jun 2023 10:12:00 +0800
dtkwidget (5.6.12) unstable; urgency=medium
* Release 5.6.12
* add DLicenseDialog
-- Deepin Packages Builder <packages@deepin.com> Mon, 15 May 2023 11:28:59 +0800
dtkwidget (5.6.11) unstable; urgency=medium
* Release 5.6.11
* FIX dtk#51 dtk#62 dtk#36
* FIX bug-195913 DArrowRectangle postion calc error
-- Deepin Packages Builder <packages@deepin.com> Mon, 08 May 2023 13:35:05 +0800
dtkwidget (5.6.10) unstable; urgency=medium
* Release 5.6.10
* FIX #364 #373 #389 #390 #403 #408
* FIX Build error for Qt 5.15~6.1
* FIX DFloatingButton can't display dci icon
-- Deepin Packages Builder <packages@deepin.com> Mon, 17 Apr 2023 17:14:10 +0800
dtkwidget (5.6.9) unstable; urgency=medium
* Release 5.6.9
-- Deepin Packages Builder <packages@deepin.com> Mon, 03 Apr 2023 10:13:53 +0800
dtkwidget (5.6.8) unstable; urgency=medium
* Release 5.6.8
-- Deepin Packages Builder <packages@deepin.com> Wed, 22 Feb 2023 14:21:55 +0800
dtkwidget (5.6.7) unstable; urgency=medium
* Release 5.6.7
-- Deepin Packages Builder <packages@deepin.com> Fri, 17 Feb 2023 13:13:24 +0800
dtkwidget (5.6.6) unstable; urgency=medium
* Release 5.6.6 update with broken dtkcore
* Update doc, for danchors
* fix the broken case if open the popup window second time
-- Deepin Packages Builder <packages@deepin.com> Thu, 06 Feb 2023 17:22:10 +0800
dtkwidget (5.6.5) unstable; urgency=medium
* Release 5.6.5
-- Deepin Packages Builder <packages@deepin.com> Thu, 02 Feb 2023 14:15:00 +0800
dtkwidget (5.6.4) unstable; urgency=medium
* Release 5.6.4
-- Deepin Packages Builder <packages@deepin.com> Tue, 10 Jan 2023 10:36:48 +0800
dtkwidget (5.6.3) unstable; urgency=medium
* Release 5.6.3
-- Deepin Packages Builder <packages@deepin.com> Mon, 12 Dec 2022 15:26:28 +0800
dtkwidget (5.6.2.2) unstable; urgency=medium
* Release 5.6.2.2
-- Deepin Packages Builder <packages@deepin.com> Wed, 30 Nov 2022 10:41:14 +0800
dtkwidget (5.6.1) unstable; urgency=medium
* snipe release 5.6.1
-- Deepin Packages Builder <packages@deepin.com> Mon, 11 Jul 2022 17:18:51 +0800
dtkwidget (5.6.0.1) unstable; urgency=medium
* develop/snipe 5.6.0.1
-- Deepin Packages Builder <packages@deepin.com> Fri, 01 Jul 2022 12:03:04 +0800
dtkwidget (5.5.42.1) unstable; urgency=medium
* Release 5.5.42.1
-- Deepin Packages Builder <packages@deepin.com> Tue, 14 Jun 2022 10:11:06 +0800
dtkwidget (5.0.0) unstable; urgency=medium
* Release 5.0.0
-- Deepin Packages Builder <packages@deepin.com> Tue, 03 Sep 2019 10:50:03 +0800
dtkwidget (2.0.7.2) unstable; urgency=medium
* Release 2.0.7.2
-- Iceyer <me@iceyer.net> Wed, 02 May 2018 09:56:59 +0800
dtkwidget (2.0.0-0) unstable; urgency=medium
* Release 2.0.0.

1
debian/compat vendored
View File

@ -1 +0,0 @@
9

56
debian/control vendored
View File

@ -1,31 +1,63 @@
Source: dtkwidget
Section: devel
Section: libdevel
Priority: optional
Maintainer: Deepin Sysdev <sysdev@deepin.com>
Build-Depends: debhelper (>= 9), qt5-default, pkg-config,
qtmultimedia5-dev, libqt5x11extras5-dev, libxext-dev, qttools5-dev-tools,
Maintainer: Deepin Packages Builder <packages@deepin.com>
Build-Depends: debhelper-compat (= 12), pkg-config, libudev-dev,
libqt5x11extras5-dev, libxext-dev, qttools5-dev-tools, qttools5-dev,
x11proto-xext-dev, libxcb-util0-dev, libstartup-notification0-dev,
libmtdev-dev, qtbase5-private-dev, libegl1-mesa-dev, libudev-dev,
libfontconfig1-dev, libfreetype6-dev, libglib2.0-dev, libxrender-dev,
libdtkcore-dev, libgsettings-qt-dev, librsvg2-dev, libdframeworkdbus-dev,
libqt5svg5-dev
Standards-Version: 3.9.6
libfontconfig1-dev, libfreetype-dev, libglib2.0-dev, libxrender-dev,
libdtkcore-dev, libgsettings-qt-dev, libqt5svg5-dev, libxi-dev,
libdtkgui-dev, libcups2-dev, libgtest-dev, libdtkcore5-bin, cmake, doxygen
Standards-Version: 3.9.8
Package: libdtkwidget2
Package: libdtkwidget5
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}, libdtkdata,
libqt5widgets5(>= 5.11.3.33) | libqt5widgets5(<= 5.11.3.28)
Multi-Arch: same
Description: Deepin graphical user interface library
DtkWidget is Deepin graphical user interface for deepin desktop development.
.
This package contains the shared libraries.
Package: libdtkwidget5-bin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libdtkwidget5( =${binary:Version}),
libqt5x11extras5-dev, libdtkcore-dev, libqt5svg5-dev
Description: Deepin graphical user interface library utilities
DtkWidget is Deepin graphical user interface for deepin desktop development.
.
This package contains the utilities which are
needed for developing Deepin applications.
Package: libdtkwidget-dev
Architecture: any
Depends: ${misc:Depends}, libdtkwidget2,
qtmultimedia5-dev, libqt5x11extras5-dev, libdtkcore-dev, libqt5svg5-dev
Depends: ${shlibs:Depends}, ${misc:Depends},
libdtkwidget5( =${binary:Version}),
libqt5x11extras5-dev, libdtkcore-dev, libqt5svg5-dev,
libdtkgui-dev, libcups2-dev
Description: Deepin graphical user interface library
DtkWidget is Deepin graphical user interface for deepin desktop development.
.
This package contains the header files and static libraries which are
needed for developing Deepin applications.
Package: dtkwidget5-examples
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libdtkwidget5( =${binary:Version}), libdtkdata
Description: dtkwidget-examples is generated by dtkwidget.
DtkWidget is Deepin graphical user interface for deepin desktop development.
.
This package contains example application which are
needed for developing Deepin applications.
Package: dtkwidget-doc
Architecture: any
Description: Deepin graphical user interface library (Document)
DtkWidget is Deepin graphical user interface for deepin desktop development.
.
This package contains example application which are
needed for developing Deepin applications.

14
debian/copyright vendored
View File

@ -3,20 +3,20 @@ Upstream-Name: deepin-tool-kit
Source: https://github.com/linuxdeepin/deepin-tool-kit
Files: *
Copyright: Deepin Technology Co., Ltd.
License: GPL-3+
Copyright: 2017 Deepin Technology Co., Ltd.
License: LGPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GNU Lesser General Public License for more details.
.
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
On Debian systems, the complete text of the GNU Lesser General
Public License version 3 can be found in "/usr/share/common-licenses/LGPL-3".

0
debian/docs vendored
View File

1
debian/dtkwidget5-examples.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/*/*/examples/*

View File

@ -1,4 +1,5 @@
usr/lib/*/lib*.so
usr/lib/*/*.so
usr/include
usr/lib/*/pkgconfig/*.pc
usr/lib/dtk2/*
usr/lib/*/cmake/*/*.cmake
usr/lib/*/qt5/mkspecs/modules/*

1
debian/libdtkwidget-doc.install vendored Normal file
View File

@ -0,0 +1 @@
usr/share/qt5/doc/dtkwidget.qch

View File

@ -1,2 +0,0 @@
usr/lib/*/lib*.so.*
usr/share/*/translations/*

1
debian/libdtkwidget5-bin.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/*/*/bin/*

2
debian/libdtkwidget5.install vendored Normal file
View File

@ -0,0 +1,2 @@
usr/lib/*/lib*.so.*
usr/share/*/*/translations/*

3
debian/libdtkwidget5.install.amd64 vendored Normal file
View File

@ -0,0 +1,3 @@
usr/lib/*/lib*.so.*
#usr/lib/*/libmsc.so
usr/share/*/*/translations/*

3
debian/libdtkwidget5.install.i386 vendored Normal file
View File

@ -0,0 +1,3 @@
usr/lib/*/lib*.so.*
#usr/lib/*/libmsc.so
usr/share/*/*/translations/*

34
debian/rules vendored
View File

@ -2,12 +2,40 @@
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
export QT_SELECT = qt5
# 安全编译参数
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall
export DEB_CXXFLAGS_MAINT_APPEND = -Wall
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-E
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
VERSION = $(DEB_VERSION_UPSTREAM)
_PACK_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$1}')
_BUILD_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$2}' | sed 's/[^0-9]//g' | awk '{print int($$1)}')
ifeq ($(_BUILD_VER),)
CONFIG_VERSION = $(_PACK_VER)
else
CONFIG_VERSION = $(_PACK_VER).$(_BUILD_VER)
endif
%:
dh $@ --parallel
dh $@
override_dh_auto_configure:
dh_auto_configure -- LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
dh_auto_configure -- -DBUILD_PLUGINS=OFF -DBUILD_DOCS=ON -DDTK_VERSION=$(_PACK_VER) -DDTK_STATIC_TRANSLATION=YES
#override_dh_auto_configure:
# dh_auto_configure -- LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
#override_dh_makeshlibs:
# dh_makeshlibs -V
#ifeq ($(DEB_BUILD_ARCH), sw_64)
#override_dh_makeshlibs:
# dh_makeshlibs -V -- -c0
#endif
override_dh_makeshlibs:
dh_makeshlibs -V
dh_makeshlibs -V "libdtkwidget5 (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2))"

89
docs/CMakeLists.txt Normal file
View File

@ -0,0 +1,89 @@
find_package (Doxygen REQUIRED)
set (QCH_INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/qt${QT_VERSION_MAJOR}/doc CACHE STRING "QCH install location")
set (DOXYGEN_GENERATE_HTML "YES" CACHE STRING "Doxygen HTML output")
set (DOXYGEN_GENERATE_XML "YES" CACHE STRING "Doxygen XML output")
set (DOXYGEN_GENERATE_QHP "YES" CACHE STRING "Doxygen QHP output")
set (DOXYGEN_FILE_PATTERNS *.cpp *.h *.zh_CN.md *.zh_CN.dox CACHE STRING "Doxygen File Patterns")
set (DOXYGEN_PROJECT_NUMBER ${CMAKE_PROJECT_VERSION} CACHE STRING "") # Should be the same as this project is using.
set (DOXYGEN_EXTRACT_STATIC YES)
set (DOXYGEN_OUTPUT_LANGUAGE "Chinese" CACHE STRING "Doxygen Output Language")
set (DOXYGEN_IMAGE_PATH ${CMAKE_CURRENT_LIST_DIR}/images/)
if("${QT_VERSION_MAJOR}" STREQUAL "5")
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Help)
else()
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS ToolsTools)
endif()
get_target_property(_qhelpgenerator_location Qt${QT_VERSION_MAJOR}::qhelpgenerator IMPORTED_LOCATION)
if("${_qhelpgenerator_location}" STREQUAL "")
set(_qhelpgenerator_location "qhelpgenerator")
endif()
set (DOXYGEN_QHG_LOCATION ${_qhelpgenerator_location} CACHE STRING "Doxygen QHG path")
set (DOXYGEN_QHP_NAMESPACE "org.deepin.dtk.widget")
set (DOXYGEN_QCH_FILE "dtkwidget.qch")
set (DOXYGEN_QHP_VIRTUAL_FOLDER "dtkwidget")
set (DOXYGEN_HTML_EXTRA_STYLESHEET "" CACHE STRING "Doxygen custom stylesheet for HTML output")
set (DOXYGEN_TAGFILES "qtcore.tags=qthelp://org.qt-project.qtcore/qtcore/" CACHE STRING "Doxygen tag files")
set (DOXYGEN_PREDEFINED
"D_DECL_DEPRECATED_X(x)="
"DCORE_BEGIN_NAMESPACE=namespace Dtk { namespace Core {"
"DCORE_END_NAMESPACE=}}"
"DCORE_USE_NAMESPACE=using namespace Dtk::Core;"
"DWIDGET_BEGIN_NAMESPACE=namespace Dtk { namespace Widget {"
"DWIDGET_END_NAMESPACE=}}"
"DWIDGET_USE_NAMESPACE=using namespace Dtk::Widget;"
)
set (BUILD_THEME OFF CACHE BOOL "Build doxgen theme")
if(BUILD_THEME)
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/doxygen-theme")
message(STATUS "doxygen-theme exist")
else()
execute_process(COMMAND git clone https://github.com/linuxdeepin/doxygen-theme.git --depth=1
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
TIMEOUT 60
)
execute_process(COMMAND bash themesetting.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/doxygen-theme/
)
endif()
set (DOXYGEN_HTML_EXTRA_STYLESHEET "docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome.css"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-sidebar-only.css"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-sidebar-only-darkmode-toggle.css"
)
set (DOXYGEN_HTML_EXTRA_FILES "docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-paragraph-link.js"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-interactive-toc.js"
)
set (DOXYGEN_GENERATE_TREEVIEW "YES")
set (DOXYGEN_DISABLE_INDEX "NO")
set (DOXYGEN_FULL_SIDEBAR "NO")
set (DOXYGEN_HTML_HEADER "docs/doxygen-theme/doxygen-awesome-css/header.html")
set (DOXYGEN_HTML_FOOTER "docs/doxygen-theme/doxygen-awesome-css/footer.html")
endif()
set (DOXYGEN_MACRO_EXPANSION "YES")
set (DOXYGEN_EXPAND_ONLY_PREDEF "YES")
# Exclude private classes.
set(DOXYGEN_EXCLUDE_PATTERNS
${PROJECT_SOURCE_DIR}/src/widgets/private/dimageviewer_p.h
${PROJECT_SOURCE_DIR}/src/widgets/private/dimagevieweritems_p.h
${PROJECT_SOURCE_DIR}/src/widgets/private/dsplitscreen_p.h
${PROJECT_SOURCE_DIR}/src/widgets/dimagevieweritems.cpp
)
doxygen_add_docs (doxygen
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/docs
ALL
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "Generate documentation via Doxygen"
)
install (FILES ${PROJECT_BINARY_DIR}/docs/html/dtkwidget.qch DESTINATION ${QCH_INSTALL_DESTINATION})

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

BIN
docs/images/DBaseExpand.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
docs/images/DButtonBox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
docs/images/DComboBox_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

BIN
docs/images/DComboBox_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

BIN
docs/images/DCrumbEdit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
docs/images/DFrame.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

BIN
docs/images/DHeaderLine.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
docs/images/DSearchEdit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

BIN
docs/images/DSpinBox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
docs/images/DSpinner.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
docs/images/DTextEdit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

BIN
docs/images/DToast.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
docs/images/DToolButton.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
docs/images/blur-effect.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1023 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
docs/images/dbaseline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Some files were not shown because too many files have changed in this diff Show More