Kaydet (Commit) 6894ebff authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Adolfo Jayme Barrientos

tdf#93318 reintroduce first/last button in Calc tab bar

Seems that first/last button are still useful when there are a lot
of tabs. Using ctrl+click is not discoverable enough for the users
so for now bring the buttons back.
Also turn on enabling/disabling buttons when they have some
effect (this was turned off for Calc for unknown reasons).

Change-Id: I6bbb04d44066ebc6b89fe3d941ecafdbb378284a
(cherry picked from commit b6fe593c)
Reviewed-on: https://gerrit.libreoffice.org/19380Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAdolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: 's avatarAdolfo Jayme Barrientos <fitojb@ubuntu.com>
üst a5961be2
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
// STATIC DATA ----------------------------------------------------------- // STATIC DATA -----------------------------------------------------------
ScTabControl::ScTabControl( vcl::Window* pParent, ScViewData* pData ) ScTabControl::ScTabControl( vcl::Window* pParent, ScViewData* pData )
: TabBar(pParent, WB_3DLOOK | WB_MINSCROLL | WB_RANGESELECT | WB_MULTISELECT | WB_DRAG) : TabBar(pParent, WB_3DLOOK | WB_MINSCROLL | WB_SCROLL | WB_RANGESELECT | WB_MULTISELECT | WB_DRAG)
, DropTargetHelper(this) , DropTargetHelper(this)
, DragSourceHelper(this) , DragSourceHelper(this)
, pViewData(pData) , pViewData(pData)
...@@ -79,7 +79,7 @@ ScTabControl::ScTabControl( vcl::Window* pParent, ScViewData* pData ) ...@@ -79,7 +79,7 @@ ScTabControl::ScTabControl( vcl::Window* pParent, ScViewData* pData )
EnableEditMode(); EnableEditMode();
UpdateInputContext(); UpdateInputContext();
SetScrollAlwaysEnabled(true); SetScrollAlwaysEnabled(false);
SetScrollAreaContextHdl( LINK( this, ScTabControl, ShowPageList ) ); SetScrollAreaContextHdl( LINK( this, ScTabControl, ShowPageList ) );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment