From 64dcfe295762864656bc5876da10bec37b7fb6ec Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Nov 2020 15:22:53 +0000 Subject: weld panel TitleBar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- sfx2/source/sidebar/SidebarController.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sfx2/source/sidebar/SidebarController.cxx') 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 pTitleBar(mpCurrentDeck->GetTitleBar()); - if(pTitleBar) + if (pTitleBar) { - aRect = DeckTitleBar::GetDragArea(); + aRect = pTitleBar->GetDragArea(); } } - return aRect; } -- cgit