summaryrefslogtreecommitdiff
authordrw <drw>2003-04-13 23:00:25 (UTC)
committer drw <drw>2003-04-13 23:00:25 (UTC)
commit377a172d8b497674d14d7e3580a008228f83d081 (patch) (unidiff)
tree7a4fdb5986db9ce9b3b26c9c0b56ece9ec63a468
parentf744559411664bc8c017bd642302ffe72dfbbb84 (diff)
downloadopie-377a172d8b497674d14d7e3580a008228f83d081.zip
opie-377a172d8b497674d14d7e3580a008228f83d081.tar.gz
opie-377a172d8b497674d14d7e3580a008228f83d081.tar.bz2
OTabWidget::getCurrentTab() is now OTabWidget::currentTab()
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/otabwidget.cpp20
-rw-r--r--libopie/otabwidget.h7
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp2
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp2
4 files changed, 15 insertions, 16 deletions
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp
index a1fd2c0..05aafd4 100644
--- a/libopie/otabwidget.cpp
+++ b/libopie/otabwidget.cpp
@@ -80,3 +80,3 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi
80 80
81 currentTab= 0x0; 81 currTab= 0x0;
82} 82}
@@ -149,4 +149,4 @@ void OTabWidget::removePage( QWidget *childwidget )
149 delete tab; 149 delete tab;
150 currentTab = tabs.current(); 150 currTab = tabs.current();
151 if ( !currentTab ) 151 if ( !currTab )
152 { 152 {
@@ -252,3 +252,3 @@ void OTabWidget::setTabStyle( TabStyle s )
252 currtab->iconset = new QIconSet( loadSmooth( tabinfo->icon() ) ); 252 currtab->iconset = new QIconSet( loadSmooth( tabinfo->icon() ) );
253 if ( tabinfo == currentTab ) 253 if ( tabinfo == currTab )
254 currtab->setText( tabinfo->label() ); 254 currtab->setText( tabinfo->label() );
@@ -337,5 +337,5 @@ void OTabWidget::selectTab( OTabInfo *tab )
337 { 337 {
338 if ( currentTab ) 338 if ( currTab )
339 { 339 {
340 tabBar->tab( currentTab->id() )->setText( QString::null ); 340 tabBar->tab( currTab->id() )->setText( QString::null );
341 setUpLayout(); 341 setUpLayout();
@@ -356,3 +356,3 @@ void OTabWidget::selectTab( OTabInfo *tab )
356 356
357 currentTab = tab; 357 currTab = tab;
358} 358}
@@ -400,7 +400,7 @@ void OTabWidget::resizeEvent( QResizeEvent * )
400 400
401int OTabWidget::getCurrentTab() 401int OTabWidget::currentTab()
402{ 402{
403 if ( currentTab ) 403 if ( currTab )
404 { 404 {
405 return currentTab->id(); 405 return currTab->id();
406 } 406 }
diff --git a/libopie/otabwidget.h b/libopie/otabwidget.h
index 23fe774..bcd9a85 100644
--- a/libopie/otabwidget.h
+++ b/libopie/otabwidget.h
@@ -197,7 +197,6 @@ public:
197/** 197/**
198 * @fn getCurrentTab( ) 198 * @fn currentTab( )
199 * @brief returns current tab id. 199 * @brief returns current tab id.
200 */ 200 */
201 //FIXME TT coding style currentTab() -zecke 201 int currentTab();
202 int getCurrentTab();
203 202
@@ -214,3 +213,3 @@ private:
214 OTabInfoList tabs; 213 OTabInfoList tabs;
215 OTabInfo *currentTab; 214 OTabInfo *currTab;
216 215
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 1a5e131..41e83c7 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -349,3 +349,3 @@ void AdvancedFm::fillCombo(const QString &currentPath)
349{ 349{
350// qDebug("%d",TabWidget->getCurrentTab()); 350// qDebug("%d",TabWidget->currentTab());
351 if ( whichTab == 1) 351 if ( whichTab == 1)
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index eac13f6..93203cd 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -710,3 +710,3 @@ void AdvancedFm::selectAll()
710{ 710{
711// if (TabWidget->getCurrentTab() == 0) { 711// if (TabWidget->currentTab() == 0) {
712 QListView *thisView = CurrentView(); 712 QListView *thisView = CurrentView();