summaryrefslogtreecommitdiff
authorzecke <zecke>2004-05-10 19:32:44 (UTC)
committer zecke <zecke>2004-05-10 19:32:44 (UTC)
commit0e1086dfe7238cbee8553828afaf32aae4cee70d (patch) (side-by-side diff)
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 @@
+
+
#include "tabwidget.h"
/* OPIE */
#include <opie2/odebug.h>
using namespace Opie::Core;
-using namespace Opie::Ui;
+using Opie::Ui::OTabWidget;
TabWidget::TabWidget( QWidget* parent, const char* name )
: OTabWidget( parent, name ) {
connect(this, SIGNAL( currentChanged(QWidget*) ),
this, SLOT( slotCurChanged(QWidget*) ) );
}
TabWidget::~TabWidget() {
}
void TabWidget::add( Session* ses ) {
- owarn << "session ses " + ses->name() << oendl;
+ owarn << "session ses " + ses->name() << oendl;
if ( !ses->widgetStack() ) return;
//reparent( ses->widgetStack(), QPoint() );
addTab( ses->widgetStack(), "console/konsole", ses->name() );
//addTab( ses->widgetStack(), ses->name() );
m_map.insert( ses->widgetStack(), ses );
}
void TabWidget::remove( Session* ses ) {
m_map.remove( ses->widgetStack() );
removePage( ses->widgetStack() );
}
void TabWidget::slotCurChanged( QWidget* wid ) {
QMap<QWidget*, Session*>::Iterator it;
it = m_map.find( wid );
if ( it == m_map.end() ) {
return;
}
emit activated( it.data() );
}
void TabWidget::setCurrent( Session* ses ) {
if (!ses )
return;
//showPage( ses->widgetStack() );
setCurrentTab( ses->widgetStack() );
}