summaryrefslogtreecommitdiff
path: root/libopie/otabwidget.cpp
Side-by-side diff
Diffstat (limited to 'libopie/otabwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/otabwidget.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp
index a1fd2c0..05aafd4 100644
--- a/libopie/otabwidget.cpp
+++ b/libopie/otabwidget.cpp
@@ -77,9 +77,9 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi
setTabStyle( s );
setTabPosition( p );
- currentTab= 0x0;
+ currTab= 0x0;
}
OTabWidget::~OTabWidget()
{
@@ -146,10 +146,10 @@ void OTabWidget::removePage( QWidget *childwidget )
}
widgetStack->removeWidget( childwidget );
tabs.remove( tab );
delete tab;
- currentTab = tabs.current();
- if ( !currentTab )
+ currTab = tabs.current();
+ if ( !currTab )
{
widgetStack->setFrameStyle( QFrame::NoFrame );
}
@@ -249,9 +249,9 @@ void OTabWidget::setTabStyle( TabStyle s )
currtab = tabBar->tab( tabinfo->id() );
if ( tabBarStyle == IconTab )
{
currtab->iconset = new QIconSet( loadSmooth( tabinfo->icon() ) );
- if ( tabinfo == currentTab )
+ if ( tabinfo == currTab )
currtab->setText( tabinfo->label() );
else
currtab->setText( QString::null );
}
@@ -334,11 +334,11 @@ QPixmap OTabWidget::loadSmooth( const QString &name )
void OTabWidget::selectTab( OTabInfo *tab )
{
if ( tabBarStyle == IconTab )
{
- if ( currentTab )
+ if ( currTab )
{
- tabBar->tab( currentTab->id() )->setText( QString::null );
+ tabBar->tab( currTab->id() )->setText( QString::null );
setUpLayout();
}
tabBar->tab( tab->id() )->setText( tab->label() );
tabBar->setCurrentTab( tab->id() );
@@ -353,9 +353,9 @@ void OTabWidget::selectTab( OTabInfo *tab )
widgetStack->raiseWidget( tab->control() );
emit currentChanged( tab->control() );
- currentTab = tab;
+ currTab = tab;
}
void OTabWidget::setUpLayout()
{
@@ -397,13 +397,13 @@ void OTabWidget::resizeEvent( QResizeEvent * )
{
setUpLayout();
}
-int OTabWidget::getCurrentTab()
+int OTabWidget::currentTab()
{
- if ( currentTab )
+ if ( currTab )
{
- return currentTab->id();
+ return currTab->id();
}
return -1;
}