summaryrefslogtreecommitdiff
path: root/libopie/otabwidget.cpp
Unidiff
Diffstat (limited to 'libopie/otabwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie/otabwidget.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp
index aaf14ce..bed7ef1 100644
--- a/libopie/otabwidget.cpp
+++ b/libopie/otabwidget.cpp
@@ -203,2 +203,15 @@ void OTabWidget::setCurrentTab( const QString &tabname )
203 203
204void OTabWidget::setCurrentTab(int tabindex) {
205 OTabInfo *newtab = tabs.first();
206 while ( newtab && newtab->id() != tabindex )
207 {
208 newtab = tabs.next();
209 }
210 if ( newtab && newtab->id() == tabindex )
211 {
212 selectTab( newtab );
213 }
214}
215
216
204OTabWidget::TabStyle OTabWidget::tabStyle() const 217OTabWidget::TabStyle OTabWidget::tabStyle() const
@@ -307 +320,10 @@ void OTabWidget::resizeEvent( QResizeEvent * )
307} 320}
321
322int OTabWidget::getCurrentTab() {
323 if ( currentTab )
324 {
325 return currentTab->id();
326 }
327 return -1;
328}
329