-
Notifications
You must be signed in to change notification settings - Fork 22
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
Implement support for further grouping HVAC library by category #713
base: develop
Are you sure you want to change the base?
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
1. implement OSCategoryPlaceholder class for further grouping inside OSCollapsibleItemList 2. Modification to search bar to use category in addition to type and name.
Q_OBJECT | ||
|
||
public: | ||
OSCategoryPlaceholder(const std::string& text, QWidget* parent = nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OSCategoryPlaceholder(const std::string& text, QWidget* parent = nullptr); | |
explicit OSCategoryPlaceholder(const std::string& text, QWidget* parent = nullptr); |
m_itemsType(OSItemType::ListItem), | ||
m_placeholderItems() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m_itemsType(OSItemType::ListItem), | |
m_placeholderItems() { | |
m_itemsType(OSItemType::ListItem) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, this is neat, thanks a lot @manuvarkey
I do question whether we shouldn't use an actual OSCollapsibleItemHeader directly, so we can expand it or not.
Here is a demo of the current code:
void OSCollapsibleItemList::addCategoryPlaceholderItem(OSCategoryPlaceholder* categoryPlaceholderItem) { | ||
|
||
m_placeholderItems.push_back(categoryPlaceholderItem); | ||
m_vLayout->insertWidget(0, categoryPlaceholderItem); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@macumber This makes me realize we have a std::vector<OSCollapsibleItem*> m_collapsibleItems;
but our void OSCollapsibleItemList::addCollapsibleItem(OSCollapsibleItem* collapsibleItem)
does not add to it... even though other functions loop on it...
OSCategoryPlaceholder
class for further grouping insideOSCollapsibleItemList