Definition at line 48 of file VP1TabWidget.cxx.
◆ Private()
◆ isEmptyTabbarSpace()
bool VP1TabWidget::Private::isEmptyTabbarSpace |
( |
const QPoint & |
point | ) |
const |
Definition at line 79 of file VP1TabWidget.cxx.
82 if ( (
m_parent->tabPosition() == QTabWidget::North && point.y() <
size.height() ) ||
83 (
m_parent->tabPosition() == QTabWidget::South && point.y() > (
m_parent->height() -
size.height() ) ) ) {
85 QWidget *rightcorner =
m_parent->cornerWidget( Qt::TopRightCorner );
87 if ( point.x() >=
m_parent->width()-rightcorner->width() )
91 QWidget *leftcorner =
m_parent->cornerWidget( Qt::TopLeftCorner );
93 if ( point.x() <= leftcorner->width() )
98 if (
m_parent->tabBar()->tabRect(
i ).contains(
m_parent->tabBar()->mapFromParent( point ) ) )
◆ resizeTabs()
void VP1TabWidget::Private::resizeTabs |
( |
int |
changedTabIndex = -1 | ) |
|
Definition at line 107 of file VP1TabWidget.cxx.
113 int lcw = 0, rcw = 0;
115 int tabBarHeight =
m_parent->tabBar()->sizeHint().height();
116 if (
m_parent->cornerWidget( Qt::TopLeftCorner ) &&
m_parent->cornerWidget( Qt::TopLeftCorner )->isVisible() )
117 lcw = qMax(
m_parent->cornerWidget( Qt::TopLeftCorner )->width(), tabBarHeight );
119 if (
m_parent->cornerWidget( Qt::TopRightCorner ) &&
m_parent->cornerWidget( Qt::TopRightCorner )->isVisible() )
120 rcw = qMax(
m_parent->cornerWidget( Qt::TopRightCorner )->width(), tabBarHeight );
122 int maxTabBarWidth =
m_parent->width() - lcw - rcw;
124 for ( ; newMaxLength >
m_minLength; newMaxLength-- ) {
136 }
else if ( changeTabIndex != -1 )
◆ updateTab()
void VP1TabWidget::Private::updateTab |
( |
int |
index | ) |
|
◆ m_automaticResizeTabs
bool VP1TabWidget::Private::m_automaticResizeTabs |
◆ m_currentMaxLength
int VP1TabWidget::Private::m_currentMaxLength |
◆ m_maxLength
int VP1TabWidget::Private::m_maxLength |
◆ m_minLength
int VP1TabWidget::Private::m_minLength |
◆ m_parent
◆ m_tabNames
QStringList VP1TabWidget::Private::m_tabNames |
The documentation for this class was generated from the following file: