-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 | |||
@@ -12,5 +12,5 @@ IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, na | |||
12 | descLayout->setStretchFactor(m_description, 5); | 12 | descLayout->setStretchFactor(m_description, 5); |
13 | QPushButton *close = new QPushButton(this); | 13 | QPushButton *close = new QPushButton(this); |
14 | close->setPixmap(Resource::loadPixmap("opieirc/close")); | 14 | close->setPixmap(Resource::loadPixmap("close")); |
15 | connect(close, SIGNAL(clicked()), this, SLOT(remove())); | 15 | connect(close, SIGNAL(clicked()), this, SLOT(remove())); |
16 | descLayout->addWidget(close); | 16 | descLayout->addWidget(close); |
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 | |||
@@ -20,13 +20,7 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags f) : QMainWindo | |||
20 | connect(a, SIGNAL(activated()), this, SLOT(newConnection())); | 20 | connect(a, SIGNAL(activated()), this, SLOT(newConnection())); |
21 | a->addTo(irc); | 21 | a->addTo(irc); |
22 | |||
23 | m_joinAction = new QAction(tr("Join channel"), Resource::loadPixmap("forward"), QString::null, 0, this, 0); | ||
24 | m_joinAction->setEnabled(FALSE); | ||
25 | connect(m_joinAction, SIGNAL(activated()), this, SLOT(join())); | ||
26 | m_joinAction->addTo(irc); | ||
27 | } | 22 | } |
28 | 23 | ||
29 | void MainWindow::tabSelected(QWidget *) { | 24 | void MainWindow::tabSelected(QWidget *) { |
30 | m_joinAction->setEnabled(TRUE); | ||
31 | } | 25 | } |
32 | 26 | ||
@@ -40,11 +34,4 @@ void MainWindow::closeTab() { | |||
40 | } | 34 | } |
41 | 35 | ||
42 | void MainWindow::join() { | ||
43 | IRCTab *tab = (IRCTab *)m_tabWidget->currentPage(); | ||
44 | if (tab) { | ||
45 | tab->session()->join("#opie.de"); | ||
46 | } | ||
47 | } | ||
48 | |||
49 | void MainWindow::addTab(IRCTab *tab) { | 36 | void MainWindow::addTab(IRCTab *tab) { |
50 | m_tabWidget->addTab(tab, tab->title()); | 37 | m_tabWidget->addTab(tab, tab->title()); |
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 | |||
@@ -38,9 +38,7 @@ protected slots: | |||
38 | void newConnection(); | 38 | void newConnection(); |
39 | void closeTab(); | 39 | void closeTab(); |
40 | void join(); | ||
41 | void tabSelected(QWidget *widget); | 40 | void tabSelected(QWidget *widget); |
42 | protected: | 41 | protected: |
43 | QTabWidget *m_tabWidget; | 42 | QTabWidget *m_tabWidget; |
44 | QAction *m_joinAction; | ||
45 | }; | 43 | }; |
46 | 44 | ||