author | zecke <zecke> | 2004-05-10 19:32:44 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-05-10 19:32:44 (UTC) |
commit | 0e1086dfe7238cbee8553828afaf32aae4cee70d (patch) (unidiff) | |
tree | 69f430dd09f46a0c0918dbff691bb5b38f9b8859 | |
parent | 68ed690928707c8ca5d324e35c8866ad3b1e84df (diff) | |
download | opie-0e1086dfe7238cbee8553828afaf32aae4cee70d.zip opie-0e1086dfe7238cbee8553828afaf32aae4cee70d.tar.gz opie-0e1086dfe7238cbee8553828afaf32aae4cee70d.tar.bz2 |
Somehow unstable feed build is confuses of Opie::Ui::OTabWidget and looks in OTabWidget...
-rw-r--r-- | noncore/apps/opie-console/tabwidget.cpp | 6 |
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> |
5 | using namespace Opie::Core; | 7 | using namespace Opie::Core; |
6 | using namespace Opie::Ui; | 8 | using Opie::Ui::OTabWidget; |
7 | 9 | ||
8 | TabWidget::TabWidget( QWidget* parent, const char* name ) | 10 | TabWidget::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 | ||
14 | TabWidget::~TabWidget() { | 16 | TabWidget::~TabWidget() { |
15 | } | 17 | } |
16 | 18 | ||
17 | void TabWidget::add( Session* ses ) { | 19 | void 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 | ||
26 | void TabWidget::remove( Session* ses ) { | 28 | void 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 | ||
31 | void TabWidget::slotCurChanged( QWidget* wid ) { | 33 | void 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 | } |
40 | void TabWidget::setCurrent( Session* ses ) { | 42 | void 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 | ||