From 074769a4adb816153e47d63087e9e326bd3a04bf Mon Sep 17 00:00:00 2001 From: wazlaf Date: Mon, 23 Sep 2002 22:12:39 +0000 Subject: configuration dialog + color configurability throughout the program + popup menu on the channel person list --- (limited to 'noncore/net/opieirc/ircquerytab.cpp') diff --git a/noncore/net/opieirc/ircquerytab.cpp b/noncore/net/opieirc/ircquerytab.cpp index 642cc5b..c6b8211 100644 --- a/noncore/net/opieirc/ircquerytab.cpp +++ b/noncore/net/opieirc/ircquerytab.cpp @@ -18,7 +18,7 @@ IRCQueryTab::IRCQueryTab(IRCPerson *person, IRCServerTab *parentTab, MainWindow m_layout->add(m_field); m_field->setFocus(); connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); - + settingsChanged(); } void IRCQueryTab::appendText(QString text) { @@ -43,10 +43,10 @@ void IRCQueryTab::processCommand() { if (text.startsWith("//")) text = text.right(text.length()-1); session()->sendMessage(m_person, m_field->text()); - appendText("<"+m_parentTab->server()->nick()+"> "+IRCOutput::toHTML(m_field->text())+"
"); + appendText("<"+m_parentTab->server()->nick()+"> "+IRCOutput::toHTML(m_field->text())+"
"); } } else { - appendText(""+tr("Disconnected")+"
"); + appendText(""+tr("Disconnected")+"
"); } } m_field->clear(); @@ -54,12 +54,16 @@ void IRCQueryTab::processCommand() { void IRCQueryTab::display(IRCOutput output) { if (output.type() == OUTPUT_QUERYPRIVMSG) { - appendText("<"+m_person->nick()+"> " + output.htmlMessage() + "
"); + appendText("<"+m_person->nick()+"> " + output.htmlMessage() + "
"); } else if (output.type() == OUTPUT_QUERYACTION) { - appendText("" + output.htmlMessage() + "
"); + appendText("" + output.htmlMessage() + "
"); } } +void IRCQueryTab::settingsChanged() { + m_textview->setText(""); +} + QString IRCQueryTab::title() { return m_person->nick(); } -- cgit v0.9.0.2