summaryrefslogtreecommitdiff
authorzecke <zecke>2004-05-10 19:32:44 (UTC)
committer zecke <zecke>2004-05-10 19:32:44 (UTC)
commit0e1086dfe7238cbee8553828afaf32aae4cee70d (patch) (unidiff)
tree69f430dd09f46a0c0918dbff691bb5b38f9b8859
parent68ed690928707c8ca5d324e35c8866ad3b1e84df (diff)
downloadopie-0e1086dfe7238cbee8553828afaf32aae4cee70d.zip
opie-0e1086dfe7238cbee8553828afaf32aae4cee70d.tar.gz
opie-0e1086dfe7238cbee8553828afaf32aae4cee70d.tar.bz2
Somehow unstable feed build is confuses of Opie::Ui::OTabWidget and looks in OTabWidget...
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/tabwidget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/tabwidget.cpp b/noncore/apps/opie-console/tabwidget.cpp
index 41a91ed..152c26b 100644
--- a/noncore/apps/opie-console/tabwidget.cpp
+++ b/noncore/apps/opie-console/tabwidget.cpp
@@ -1,48 +1,50 @@
1
2
1#include "tabwidget.h" 3#include "tabwidget.h"
2 4
3/* OPIE */ 5/* OPIE */
4#include <opie2/odebug.h> 6#include <opie2/odebug.h>
5using namespace Opie::Core; 7using namespace Opie::Core;
6using namespace Opie::Ui; 8using Opie::Ui::OTabWidget;
7 9
8TabWidget::TabWidget( QWidget* parent, const char* name ) 10TabWidget::TabWidget( QWidget* parent, const char* name )
9 : OTabWidget( parent, name ) { 11 : OTabWidget( parent, name ) {
10 connect(this, SIGNAL( currentChanged(QWidget*) ), 12 connect(this, SIGNAL( currentChanged(QWidget*) ),
11 this, SLOT( slotCurChanged(QWidget*) ) ); 13 this, SLOT( slotCurChanged(QWidget*) ) );
12} 14}
13 15
14TabWidget::~TabWidget() { 16TabWidget::~TabWidget() {
15} 17}
16 18
17void TabWidget::add( Session* ses ) { 19void TabWidget::add( Session* ses ) {
18 owarn << "session ses " + ses->name() << oendl; 20 owarn << "session ses " + ses->name() << oendl;
19 if ( !ses->widgetStack() ) return; 21 if ( !ses->widgetStack() ) return;
20 //reparent( ses->widgetStack(), QPoint() ); 22 //reparent( ses->widgetStack(), QPoint() );
21 addTab( ses->widgetStack(), "console/konsole", ses->name() ); 23 addTab( ses->widgetStack(), "console/konsole", ses->name() );
22 //addTab( ses->widgetStack(), ses->name() ); 24 //addTab( ses->widgetStack(), ses->name() );
23 m_map.insert( ses->widgetStack(), ses ); 25 m_map.insert( ses->widgetStack(), ses );
24} 26}
25 27
26void TabWidget::remove( Session* ses ) { 28void TabWidget::remove( Session* ses ) {
27 m_map.remove( ses->widgetStack() ); 29 m_map.remove( ses->widgetStack() );
28 removePage( ses->widgetStack() ); 30 removePage( ses->widgetStack() );
29} 31}
30 32
31void TabWidget::slotCurChanged( QWidget* wid ) { 33void TabWidget::slotCurChanged( QWidget* wid ) {
32 QMap<QWidget*, Session*>::Iterator it; 34 QMap<QWidget*, Session*>::Iterator it;
33 it = m_map.find( wid ); 35 it = m_map.find( wid );
34 if ( it == m_map.end() ) { 36 if ( it == m_map.end() ) {
35 return; 37 return;
36 } 38 }
37 39
38 emit activated( it.data() ); 40 emit activated( it.data() );
39} 41}
40void TabWidget::setCurrent( Session* ses ) { 42void TabWidget::setCurrent( Session* ses ) {
41 if (!ses ) 43 if (!ses )
42 return; 44 return;
43 45
44 //showPage( ses->widgetStack() ); 46 //showPage( ses->widgetStack() );
45 setCurrentTab( ses->widgetStack() ); 47 setCurrentTab( ses->widgetStack() );
46} 48}
47 49
48 50