Skip to content

Commit

Permalink
Merge pull request #2166 from NREL/constructionInheritance2
Browse files Browse the repository at this point in the history
Correctly display construction inheritance in the gridview, and apply…
  • Loading branch information
macumber committed Mar 22, 2016
2 parents 8296251 + 5b3b3c4 commit 689a394
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

6 comments on commit 689a394

@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.

develop (macumber) - x86_64-Linux-Ubuntu-14.04-clang-3.5: OK (2340 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.

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

Build 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.

iteration (macumber) - x86_64-Linux-Ubuntu-14.04-clang-3.5: OK (2344 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.

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

Build Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

iteration (macumber) - Win64-Windows-7-VisualStudio-12: Tests Failed (0 of 2406 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

iteration (macumber) - i386-Windows-7-VisualStudio-12: OK (2391 of 2406 tests passed, 0 test warnings)

Build Badge Test Badge

Please sign in to comment.