add orientation prop to SideTabBar.

This commit is contained in:
Nick D'Ademo
2022-09-14 14:25:11 +08:00
parent 48163d2679
commit 5df2467592
2 changed files with 17 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ void CSideTabBar::removeSideTab(CDockWidgetSideTab* SideTab)
d->TabsLayout->removeWidget(SideTab);
}
//============================================================================
void CSideTabBar::paintEvent(QPaintEvent* event)
{
@@ -110,4 +111,11 @@ void CSideTabBar::paintEvent(QPaintEvent* event)
QPainter painter(this);
style()->drawPrimitive(QStyle::PE_Widget, &option, &painter, this);
}
//============================================================================
Qt::Orientation CSideTabBar::orientation() const
{
return d->Orientation;
}
}