Skip to content

Update#6

Closed
Mostafa-Mahmoud95 wants to merge 20 commits intodevelopfrom
main
Closed

Update#6
Mostafa-Mahmoud95 wants to merge 20 commits intodevelopfrom
main

Conversation

@Mostafa-Mahmoud95
Copy link

No description provided.

Introduces clearProperties() and propertyNames() methods to PropertyGrid, allowing clients to reset the property grid and retrieve all property names. Implements supporting clearModel() and getPropertiesNames() methods in PropertyGridTreeModel for internal functionality.
Introduces PropertyGrid::removePropertyEditor, allowing property editors to be removed by type. Also refactors PropertyGridTreeModel to add an update() method for model refresh, and uses it in setShowCategories for consistency.
Relocated the implementation of the addProperty template function from inline in the class definition to an out-of-class inline definition. This improves code organization and maintains template visibility for header-only usage.
Moved PropertyContext and PropertyContextPrivate to their own files, decoupling them from PropertyEditor and PropertyGrid internals. Updated all relevant includes and usages to reference the new module, improving code organization and maintainability.
Introduces a new replacePropertyEditor method to allow replacing an existing property editor with a new one. The implementation ensures the old editor is removed, the new one is added, and property entries are updated accordingly. The previous removePropertyEditor method and its implementation have been removed.
Property editors are now registered by default and managed via shared_ptr instead of unique_ptr. Manual registration in examples and README has been removed, and internal APIs updated to use shared_ptr for property editors. This simplifies usage and improves memory management.
Renamed PropertyGridTreeItem.h and PropertyGridTreeModel.h to PropertyGridTreeItem_p.h and PropertyGridTreeModel_p.h to clarify their internal status. Updated all relevant #include directives and CMakeLists.txt entries. Added internal-use warning comments to affected headers for better API boundary documentation.
Introduced stringLeft and stringMid helper functions in QtCompat_p.h to handle QString slicing across different Qt versions. Updated FontPropertyEditor to use these helpers for improved compatibility and code clarity.
Updated Linux, macOS, and Windows GitHub Actions workflows to ignore pushes and pull requests that only modify .md files. This reduces unnecessary CI runs triggered by documentation changes.
…licitly-set-the-built-in-PropertyEditors-for-each-new-PropertyGrid

PM-140 eliminate the need to explicitly set the built in property editors for each new property grid
Updated the README to reflect the current status and planned features for Qt type support.
Introduces the PM_BUILD_PROPERTY_GRID_EXAMPLES CMake option to enable or disable building example projects. Updates documentation to show how to disable examples when integrating as a subdirectory. Also moves include_directories to target_include_directories for better CMake practices.
Added PropertyContext files to the project structure.
…-example

PM-183 add an object property grid example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants