29 m_layout =
new QVBoxLayout(
this);
30 m_layout->addStretch(800);
33 m_tabs.setAutoDelete(
false );
34 setSizePolicy( QSizePolicy::Fixed,QSizePolicy::MinimumExpanding);
42 VTab *tab =
new VTab(m_position,
id,
this);
44 m_layout->insertWidget(m_index,tab);
47 connect(tab,SIGNAL(toggled(
int,
bool )),
this,SLOT(setTabState(
int,
bool )));
54 VTab *
c = m_tabs.first();
55 for ( ;
c; c = m_tabs.next() )
65 QToolTip::add(tab,tip);
72 QToolTip::add(tab,tip);
77 VTab *
c = m_tabs.first();
78 for ( ;
c; c = m_tabs.next() )
90 VTab *
c = m_tabs.first();
91 for ( ;
c; c = m_tabs.next() )
103 setTabState(tab->
id(),
true);
108 setTabState(
id,
true);
111 void VTabBar::setTabState(
int p_id,
bool state)
115 for ( c = m_tabs.first();
c; c = m_tabs.next() )
117 c->blockSignals(
true);
118 if(c->
id() == p_id && state ==
true)
121 current->setOn(
true);
125 c->blockSignals(
false);
147 VTab *c = m_tabs.first();
148 for ( ;
c; c = m_tabs.next() )
150 c->blockSignals(
true);
152 c->blockSignals(
false);
160 if(m_position == p_pos)
163 VTab * c = m_tabs.first();