BTabView: Style fixes
Fix misleading indentation remove extra newline just a newline selTabRect => selectedTabRect
This commit is contained in:
parent
3490eda827
commit
24cb14bc3d
@ -416,10 +416,10 @@
|
||||
|
||||
|
||||
/*!
|
||||
\fn void BTabView::DrawBox(BRect selTabRect)
|
||||
\fn void BTabView::DrawBox(BRect selectedTabRect)
|
||||
\brief Draws the box that encloses the container view.
|
||||
|
||||
\param selTabRect The frame rectangle of the currently selected tab.
|
||||
\param selectedTabRect The frame rectangle of the currently selected tab.
|
||||
|
||||
\since BeOS R3
|
||||
*/
|
||||
@ -736,4 +736,3 @@
|
||||
|
||||
\since Haiku R1
|
||||
*/
|
||||
|
||||
|
@ -47,7 +47,6 @@ static property_info sPropertyList[] = {
|
||||
};
|
||||
|
||||
|
||||
|
||||
BTab::BTab(BView* contentsView)
|
||||
:
|
||||
fEnabled(true),
|
||||
@ -698,6 +697,7 @@ BTabView::Select(int32 index)
|
||||
if (tab != NULL && fContainerView != NULL) {
|
||||
if (index == 0)
|
||||
fTabOffset = 0.0f;
|
||||
|
||||
tab->Select(fContainerView);
|
||||
fSelection = index;
|
||||
|
||||
@ -840,14 +840,14 @@ BTabView::DrawTabs()
|
||||
|
||||
|
||||
void
|
||||
BTabView::DrawBox(BRect selTabRect)
|
||||
BTabView::DrawBox(BRect selectedTabRect)
|
||||
{
|
||||
BRect rect(Bounds());
|
||||
rect.top = selTabRect.bottom;
|
||||
rect.top = selectedTabRect.bottom;
|
||||
if (fBorderStyle != B_FANCY_BORDER)
|
||||
rect.top += 1.0f;
|
||||
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
|
||||
|
||||
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
|
||||
if (fBorderStyle == B_FANCY_BORDER)
|
||||
be_control_look->DrawGroupFrame(this, rect, rect, base);
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user