diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2009-11-24 21:18:09 +0200 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2009-11-24 21:18:09 +0200 |
commit | 87d7c6d6f962281f11b35e02a399e3d0e1dd9e12 (patch) | |
tree | 5a8c0e1aa42c009e1a9cdedf35ac1aba89d11481 /indra/newview/llpanelprofile.cpp | |
parent | 417bba0957d9d0e86c28e357e8409c6ef5ce1cae (diff) |
Work on task EXT-2092 (Task Panel tabs should toggle visibility of the panel).
Made the People and Me task panels support the desired tri-state behavior.
Until all the other task panels support that behavior, it is disabled.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llpanelprofile.cpp')
-rw-r--r-- | indra/newview/llpanelprofile.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index 02f45c1b48..4d152a13f3 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -158,28 +158,14 @@ void LLPanelProfile::onOpen(const LLSD& key) } //*TODO redo panel toggling -void LLPanelProfile::togglePanel(LLPanel* panel) +void LLPanelProfile::togglePanel(LLPanel* panel, const LLSD& key) { // TRUE - we need to open/expand "panel" bool expand = getChildList()->front() != panel; // mTabCtrl->getVisible(); if (expand) { - if (panel->getParent() != this) - { - addChild(panel); - } - else - { - sendChildToFront(panel); - } - - panel->setVisible(TRUE); - - LLRect new_rect = getRect(); - panel->reshape(new_rect.getWidth(), new_rect.getHeight()); - new_rect.setLeftTopAndSize(0, new_rect.getHeight(), new_rect.getWidth(), new_rect.getHeight()); - panel->setRect(new_rect); + openPanel(panel, key); } else { |