author | harlekin <harlekin> | 2002-10-05 22:21:04 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-05 22:21:04 (UTC) |
commit | 48b16b3a3557e70abf90e83b84396258b92b652e (patch) (side-by-side diff) | |
tree | 9dad37a08e79da5705a8297b2bf09a0b2441f3b6 /noncore/apps/opie-console/tabwidget.cpp | |
parent | 99425255c4afcd75ee6b2f903487cb958d3acdee (diff) | |
download | opie-48b16b3a3557e70abf90e83b84396258b92b652e.zip opie-48b16b3a3557e70abf90e83b84396258b92b652e.tar.gz opie-48b16b3a3557e70abf90e83b84396258b92b652e.tar.bz2 |
otabwidget instead of qtabwidget
Diffstat (limited to 'noncore/apps/opie-console/tabwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/tabwidget.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/noncore/apps/opie-console/tabwidget.cpp b/noncore/apps/opie-console/tabwidget.cpp index 6091aa2..783bf13 100644 --- a/noncore/apps/opie-console/tabwidget.cpp +++ b/noncore/apps/opie-console/tabwidget.cpp @@ -3,26 +3,32 @@ TabWidget::TabWidget( QWidget* parent, const char* name ) - : QTabWidget( parent, name ) -{ - connect(this, SIGNAL(currentChanged(QWidget*) ), - this, SLOT(slotCurChanged(QWidget*) ) ); + : OTabWidget( parent, name ) { + connect(this, SIGNAL( currentChanged(QWidget*) ), + this, SLOT( slotCurChanged(QWidget*) ) ); } + TabWidget::~TabWidget() { } + void TabWidget::add( Session* ses ) { if ( !ses->widget() ) return; - addTab( ses->widget(), ses->name() ); + addTab( ses->widget(), "console/konsole", ses->name() ); m_map.insert( ses->widget(), ses ); } + void TabWidget::remove( Session* ses ) { m_map.remove( ses->widget() ); removePage( ses->widget() ); } + void TabWidget::slotCurChanged( QWidget* wid ) { - QMap<QWidget*, Session*>::Iterator it; - it = m_map.find(wid ); - if (it == m_map.end() ) + QMap<QWidget*, Session*>::Iterator it; + it = m_map.find( wid ); + if ( it == m_map.end() ) { return; + } emit activated( it.data() ); } + + |