-rw-r--r-- | noncore/net/opieirc/irctab.cpp | 2 | ||||
-rw-r--r-- | noncore/net/opieirc/mainwindow.cpp | 13 | ||||
-rw-r--r-- | noncore/net/opieirc/mainwindow.h | 2 |
3 files changed, 1 insertions, 16 deletions
diff --git a/noncore/net/opieirc/irctab.cpp b/noncore/net/opieirc/irctab.cpp index 36976ab..653a5de 100644 --- a/noncore/net/opieirc/irctab.cpp +++ b/noncore/net/opieirc/irctab.cpp @@ -13,3 +13,3 @@ IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, na QPushButton *close = new QPushButton(this); - close->setPixmap(Resource::loadPixmap("opieirc/close")); + close->setPixmap(Resource::loadPixmap("close")); connect(close, SIGNAL(clicked()), this, SLOT(remove())); diff --git a/noncore/net/opieirc/mainwindow.cpp b/noncore/net/opieirc/mainwindow.cpp index 3d13ee9..af4ce78 100644 --- a/noncore/net/opieirc/mainwindow.cpp +++ b/noncore/net/opieirc/mainwindow.cpp @@ -21,7 +21,2 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags f) : QMainWindo a->addTo(irc); - - m_joinAction = new QAction(tr("Join channel"), Resource::loadPixmap("forward"), QString::null, 0, this, 0); - m_joinAction->setEnabled(FALSE); - connect(m_joinAction, SIGNAL(activated()), this, SLOT(join())); - m_joinAction->addTo(irc); } @@ -29,3 +24,2 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags f) : QMainWindo void MainWindow::tabSelected(QWidget *) { - m_joinAction->setEnabled(TRUE); } @@ -41,9 +35,2 @@ void MainWindow::closeTab() { -void MainWindow::join() { - IRCTab *tab = (IRCTab *)m_tabWidget->currentPage(); - if (tab) { - tab->session()->join("#opie.de"); - } -} - void MainWindow::addTab(IRCTab *tab) { diff --git a/noncore/net/opieirc/mainwindow.h b/noncore/net/opieirc/mainwindow.h index c197f5b..dcb782f 100644 --- a/noncore/net/opieirc/mainwindow.h +++ b/noncore/net/opieirc/mainwindow.h @@ -39,3 +39,2 @@ protected slots: void closeTab(); - void join(); void tabSelected(QWidget *widget); @@ -43,3 +42,2 @@ protected: QTabWidget *m_tabWidget; - QAction *m_joinAction; }; |