Kaydet (Commit) 87d5859b authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

mbHasInsertTab is not needed anymore

Change-Id: Icc7eb914a16d6492146879967a6dc8b634d50b6e
üst 5ccf6718
...@@ -347,7 +347,6 @@ private: ...@@ -347,7 +347,6 @@ private:
bool mbSelColor : 1; bool mbSelColor : 1;
bool mbSelTextColor : 1; bool mbSelTextColor : 1;
bool mbMirrored : 1; bool mbMirrored : 1;
bool mbHasInsertTab : 1; // if true, the tab bar has an extra tab at the end.
bool mbScrollAlwaysEnabled : 1; bool mbScrollAlwaysEnabled : 1;
Link<> maSelectHdl; Link<> maSelectHdl;
......
...@@ -820,7 +820,7 @@ void TabBar::ImplInitControls() ...@@ -820,7 +820,7 @@ void TabBar::ImplInitControls()
mpImpl->mpSizer.disposeAndClear(); mpImpl->mpSizer.disposeAndClear();
} }
if (mbHasInsertTab && !mpImpl->mpAddButton) if ((mnWinStyle & WB_INSERTTAB) && !mpImpl->mpAddButton)
{ {
Link<> aLink = LINK(this, TabBar, ImplAddClickHandler); Link<> aLink = LINK(this, TabBar, ImplAddClickHandler);
mpImpl->mpAddButton.reset(VclPtr<ImplTabButton>::Create(this, WB_REPEAT)); mpImpl->mpAddButton.reset(VclPtr<ImplTabButton>::Create(this, WB_REPEAT));
...@@ -878,8 +878,6 @@ void TabBar::ImplInitControls() ...@@ -878,8 +878,6 @@ void TabBar::ImplInitControls()
mpImpl->mpFirstButton.disposeAndClear(); mpImpl->mpFirstButton.disposeAndClear();
mpImpl->mpLastButton.disposeAndClear(); mpImpl->mpLastButton.disposeAndClear();
} }
mbHasInsertTab = (mnWinStyle & WB_INSERTTAB);
} }
void TabBar::ImplEnableControls() void TabBar::ImplEnableControls()
......
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