26 #include <Q3VBoxLayout>
35 m_tabs.setAutoDelete(
false );
36 setSizePolicy( QSizePolicy::Fixed,QSizePolicy::MinimumExpanding);
49 connect(tab,SIGNAL(toggled(
int,
bool )),
this,SLOT(
setTabState(
int,
bool )));
57 for ( ; c; c =
m_tabs.next() )
67 QToolTip::add(tab,tip);
74 QToolTip::add(tab,tip);
80 for ( ; c; c =
m_tabs.next() )
93 VTab * c = m_tabs.first();
94 for ( ; c; c = m_tabs.next() )
107 setTabState(tab->
id(),
true);
112 setTabState(
id,
true);
119 for ( c = m_tabs.first(); c; c = m_tabs.next() )
121 c->blockSignals(
true);
122 if(c->
id() == p_id && state ==
true)
125 current->setOn(
true);
129 c->blockSignals(
false);
133 emit activatedTab( p_id);
134 emit activatedTab(current);
151 VTab *c = m_tabs.first();
152 for ( ; c; c = m_tabs.next() )
154 c->blockSignals(
true);
156 c->blockSignals(
false);
164 if(m_position == p_pos)
167 VTab * c = m_tabs.first();
void setTabToolTip(VTab *tab, const QString &tip)
void setCurrentTab(VTab *tab)
virtual void setText(const QString &s)
void setTabState(int p_id, bool state)
void setPosition(VTabPosition p_pos)
void setPosition(VTabPosition p_pos)
VTab * addTab(const QString &caption, int id=-1)
void removeTab(VTab *tab)
VTabBar(VTabPosition p=TabLeft, QWidget *parent=0l, const char *name=0l)