Skip to content

Commit

Permalink
Correctly display construction inheritance in the gridview, and apply…
Browse files Browse the repository at this point in the history
… new policies to resource objects to allow viewing (but not editing) in Inspector Gadget.
  • Loading branch information
evanweaver committed Mar 22, 2016
1 parent 8296251 commit 5b3b3c4
Show file tree
Hide file tree
Showing 2 changed files with 368 additions and 422 deletions.
11 changes: 2 additions & 9 deletions openstudiocore/src/openstudio_lib/OSDropZone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,8 @@ void OSDropZone2::dropEvent(QDropEvent *event)
refresh();
}
}

// A dropped object cannot be inherited
this->setIsDefaulted(false);
}
}

Expand Down Expand Up @@ -795,14 +796,6 @@ void OSDropZone2::makeItem()

void OSDropZone2::setIsDefaulted(bool defaulted)
{
if (!m_item) {
makeItem();
}

if (m_item) {
m_item->setIsDefaulted(defaulted);
}

if (defaulted) {
m_label->setStyleSheet("QLabel { color:green }"); // color: #006837
} else {
Expand Down
Loading

2 comments on commit 5b3b3c4

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

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

constructionInheritance2 (evanweaver) - x86_64-Linux-Ubuntu-14.04-clang-3.5: OK (2342 of 2406 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

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

constructionInheritance2 (evanweaver) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed, 0 test warnings)

Build Badge

Please sign in to comment.