Skip to content

Fix inspector in loads tab#685

Merged
jmarrec merged 2 commits intodevelopfrom
fix_683
Mar 22, 2024
Merged

Fix inspector in loads tab#685
jmarrec merged 2 commits intodevelopfrom
fix_683

Conversation

@macumber
Copy link
Copy Markdown
Collaborator

@macumber macumber commented Mar 4, 2024

Need to clearSelection for collapsibleItem when not expanded, that way when it is clicked again it will re-emit the itemSelected signal to re-draw the inspector in the loads, construction, and materials tabs. Fixes #683.

collapsibleItem->setExpanded(false);
}
//collapsibleItem->itemList()->clearSelection();
collapsibleItem->itemList()->clearSelection();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the one below in onItemSelected, does that need uncommenting too?

//collapsibleItem->itemList()->clearSelection();

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good question. I have not found an instance where it causes an issue. In the library tabs the items aren't selectable so it doesn't matter if the individual items are selected or not. For the item lists in the materials tab, the first item is reselected when the category item is expanded anyway. So deselecting the hidden items seems like a waste of time. However, I got bit by being too aggressive earlier so I would be happy to put it back. I plan to ask the reporter of the bug to test an installer to see if they can find anything else.

…y when it is clicked again it will re-emit the itemSelected signal to re-draw the inspector in the loads (and possibly other) tabs
m_targetTemperatureScheduleDZ = new OSDropZone(m_targetTemperatureScheduleVC);
m_targetTemperatureScheduleDZ->setMinItems(0);
m_targetTemperatureScheduleDZ->setMaxItems(1);
m_targetTemperatureScheduleDZ->setItemsAcceptDrops(true);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Configure all the drop zones to accept item drops. Fixes @Ski90Moo 's comment at #683 (comment)

Demo:

683_draggable

@jmarrec
Copy link
Copy Markdown
Collaborator

jmarrec commented Mar 19, 2024

@macumber I added a change to fix something just reported, if you're ok with it, merge away please

@jmarrec jmarrec merged commit 5328753 into develop Mar 22, 2024
@jmarrec jmarrec deleted the fix_683 branch March 22, 2024 08:05
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to edit Water Use Equipment Definition

2 participants