-
Notifications
You must be signed in to change notification settings - Fork 1
Add_readme #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
CPythoner
wants to merge
14
commits into
master
Choose a base branch
from
develop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add_readme #7
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feat(button): 添加QelButton类支持多种样式和尺寸 实现了一个新的QelButton类,该类继承自QPushButton,具有多种按钮样式和尺寸选项。QelButton类支持设置按钮的大小、类型、是否为平的、是否为圆角以及是否为圆形。样式和尺寸的自定义选项使开发人员能够灵活地集成各种界面设计。此外,通过在构造函数中传递参数,可以方便地初始化按钮的各种属性。 ```
…QelIcon类,它包含加载FontAwesome字体和根据指定图标、大小和颜色生成图标的逻辑。更新项目文件以反映新的类和资源,并确保其与现有功能兼容。
重构QelButton类,简化构造函数,添加设置方法,并引入新的NativeButtonType枚举。增强样式自定义,现在支持通过设置方法调整按钮类型、大小、样式。新增QelButtonTester类,用于展示不同配置下的按钮样式,便于界面测试。 feat(qel-button): 添加图标支持和测试界面集成 新增图标支持,修改构造函数以适应图标和文字的组合。主函数调整,现在展示测试界面,方便开发者直观查看和测试不同类型的按钮。 refactor(qel-icon): 优先从系统加载FontAwesome字体 优化FontAwesome字体加载逻辑,优先从系统加载,若系统未安装,则从资源文件加载。这提高了字体加载的效率和可靠性,减少了从资源文件加载字体的依赖性。
更改构造函数的默认颜色参数值,以将QelIcon的默认颜色从黑色更改为灰色。
重构`MainWindow`以简化页面管理。此更改包括使用`pageMap`映射来管理UI页面,允许轻松添加或删除页面,而无需在多处更新代码。此外,`addTreeItem`函数被抽象出来,以避免直接在`MainWindow`中处理树状列表项的创建细节。还重命名了一些变量以提高代码的可读性。 ```
Add_qelbutton
新增一个`QelNumberInput`类,该类提供了一个带有可选控制按钮的数字输入框,支持设置最小值、最大值、初始值、步长、只读状态、禁用状态和占位符。同时提供焦点事件处理和样式自定义功能。内部逻辑确保输入值在指定范围内,并根据设定的步长进行增减。此外,实现了不同大小和精度的数字显示支持。 增加了一个`QelNumberInputTester`类,用于展示`QelNumberInput`控件的各种使用场景和配置选项,便于用户测试和配置该控件。
重构`QelNumberInput`类,使用枚举类型`Size`和`ControlsPosition`来定义输入控件的大小和控制按钮的位置。 `Size`枚举现为`Size::Small`、`Size::Default`和`Size::Large`,而`ControlsPosition`枚举包含`ControlsPosition::Default`和`ControlsPosition::Right`。 此外,`setControlsPosition`方法已添加,用于根据`controlsPosition`参数设置控制按钮的位置。 BREAKING CHANGE: `Size`和`ControlsPosition`枚举类型的定义已更改,方法签名也已更新以使用这些枚举类型。 请确保在使用这些方法时使用新的枚举值。
refactor(QelNumberInput): 使用枚举类型进行大小和控制位置设置
Add_numberinputer_show
更新了README.md中的目录和项目描述,以反映最新结构和功能。增加了安装说明,包括如何下载源码、安装字体和引入组件。详细介绍了QelShow及其功能,提供了运行QelShow的指导,并展示了组件示例代码。此外,附上了相关图片以展示组件样式。
docs(readme): 更新目录和项目说明
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
更新了README.md中的目录和项目描述,以反映最新结构和功能。增加了安装说明,包括如何下载源码、安装字体和引入组件。详细介绍了QelShow及其功能,提供了运行QelShow的指导,并展示了组件示例代码。此外,附上了相关图片以展示组件样式。