Diffstat (limited to 'noncore/net/opieirc/ircquerytab.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircquerytab.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircquerytab.cpp b/noncore/net/opieirc/ircquerytab.cpp index c6b8211..b946174 100644 --- a/noncore/net/opieirc/ircquerytab.cpp +++ b/noncore/net/opieirc/ircquerytab.cpp | |||
@@ -16,24 +16,25 @@ IRCQueryTab::IRCQueryTab(IRCPerson *person, IRCServerTab *parentTab, MainWindow | |||
16 | m_layout->add(hbox); | 16 | m_layout->add(hbox); |
17 | hbox->show(); | 17 | hbox->show(); |
18 | m_layout->add(m_field); | 18 | m_layout->add(m_field); |
19 | m_field->setFocus(); | 19 | m_field->setFocus(); |
20 | connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); | 20 | connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); |
21 | settingsChanged(); | 21 | settingsChanged(); |
22 | } | 22 | } |
23 | 23 | ||
24 | void IRCQueryTab::appendText(QString text) { | 24 | void IRCQueryTab::appendText(QString text) { |
25 | /* not using append because it creates layout problems */ | 25 | /* not using append because it creates layout problems */ |
26 | m_textview->setText(m_textview->text() + text); | 26 | m_textview->setText(m_textview->text() + text); |
27 | m_textview->ensureVisible(0, m_textview->contentsHeight()); | 27 | m_textview->ensureVisible(0, m_textview->contentsHeight()); |
28 | emit changed(this); | ||
28 | } | 29 | } |
29 | 30 | ||
30 | IRCQueryTab::~IRCQueryTab() { | 31 | IRCQueryTab::~IRCQueryTab() { |
31 | m_parentTab->removeQueryTab(this); | 32 | m_parentTab->removeQueryTab(this); |
32 | delete m_person; | 33 | delete m_person; |
33 | } | 34 | } |
34 | 35 | ||
35 | void IRCQueryTab::processCommand() { | 36 | void IRCQueryTab::processCommand() { |
36 | QString text = m_field->text(); | 37 | QString text = m_field->text(); |
37 | if (text.length()>0) { | 38 | if (text.length()>0) { |
38 | if (session()->isSessionActive()) { | 39 | if (session()->isSessionActive()) { |
39 | if (text.startsWith("/") && !text.startsWith("//")) { | 40 | if (text.startsWith("/") && !text.startsWith("//")) { |