summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp18
-rw-r--r--noncore/apps/opie-console/mainwindow.h1
2 files changed, 14 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 0a58b6c..bfd1c2e 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -77,7 +77,7 @@ void MainWindow::initUI() {
- m_transfer = new QAction();
- m_transfer->setText( tr("Transfer file...") );
- m_transfer->addTo( m_console );
- connect(m_transfer, SIGNAL(activated() ),
- this, SLOT(slotTransfer() ) );
+ m_transfer = new QAction();
+ m_transfer->setText( tr("Transfer file...") );
+ m_transfer->addTo( m_console );
+ connect(m_transfer, SIGNAL(activated() ),
+ this, SLOT(slotTransfer() ) );
@@ -166,2 +166,4 @@ void MainWindow::initUI() {
m_consoleWindow = new TabWidget( this, "blah");
+ connect(m_consoleWindow, SIGNAL(activated(Session*) ),
+ this, SLOT(slotSessionChanged(Session*) ) );
setCentralWidget( m_consoleWindow );
@@ -330 +332,7 @@ void MainWindow::slotOpenKeb(bool state) {
}
+void MainWindow::slotSessionChanged( Session* ses ) {
+ if ( ses ) {
+ qWarning("changing %s", ses->name().latin1() );
+ m_curSession = ses;
+ }
+}
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h
index 94144a4..d16d6af 100644
--- a/noncore/apps/opie-console/mainwindow.h
+++ b/noncore/apps/opie-console/mainwindow.h
@@ -64,2 +64,3 @@ private slots:
void slotRunScript();
+ void slotSessionChanged( Session* );
private: