diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-11-04 15:22:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-11-12 09:49:09 +0100 |
commit | 64dcfe295762864656bc5876da10bec37b7fb6ec (patch) | |
tree | 4e8ca37b771bfd19a7cc1ae1c8dde264e05cf639 /sfx2/source/sidebar/SidebarController.cxx | |
parent | 590b4e75e3a3d4d415f71c17f2aa2aea2326daf9 (diff) |
weld panel TitleBar
use an expander for the expander-like feature
Change-Id: I3af63dc252479914a0000aab59a30744f8073fd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105310
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/sidebar/SidebarController.cxx')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 435ea63150d3..8a0e851cff66 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -734,7 +734,7 @@ void SidebarController::CreatePanels(const OUString& rDeckId, const Context& rCo { pTitleBar->SetMoreOptionsCommand( rPanelContexDescriptor.msMenuCommand, - mxFrame, xController); + mxFrame); } ++nWriteIndex; } @@ -1575,17 +1575,15 @@ void SidebarController::FadeIn() tools::Rectangle SidebarController::GetDeckDragArea() const { tools::Rectangle aRect; - - if(mpCurrentDeck) + if (mpCurrentDeck) { VclPtr<DeckTitleBar> pTitleBar(mpCurrentDeck->GetTitleBar()); - if(pTitleBar) + if (pTitleBar) { - aRect = DeckTitleBar::GetDragArea(); + aRect = pTitleBar->GetDragArea(); } } - return aRect; } |