Diffstat (limited to 'noncore/net/opieirc/ircquerytab.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircquerytab.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
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 | |||
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 | 21 | settingsChanged(); | |
22 | } | 22 | } |
23 | 23 | ||
24 | void IRCQueryTab::appendText(QString text) { | 24 | void IRCQueryTab::appendText(QString text) { |
@@ -43,10 +43,10 @@ void IRCQueryTab::processCommand() { | |||
43 | if (text.startsWith("//")) | 43 | if (text.startsWith("//")) |
44 | text = text.right(text.length()-1); | 44 | text = text.right(text.length()-1); |
45 | session()->sendMessage(m_person, m_field->text()); | 45 | session()->sendMessage(m_person, m_field->text()); |
46 | appendText("<<font color=\"#dd0000\">"+m_parentTab->server()->nick()+"</font>> "+IRCOutput::toHTML(m_field->text())+"<br>"); | 46 | appendText("<font color=\"" + m_textColor + "\"><</font><font color=\"" + m_selfColor + "\">"+m_parentTab->server()->nick()+"</font><font color=\"" + m_textColor + "\">> "+IRCOutput::toHTML(m_field->text())+"</font><br>"); |
47 | } | 47 | } |
48 | } else { | 48 | } else { |
49 | appendText("<font color=\"#ff0000\">"+tr("Disconnected")+"</font><br>"); | 49 | appendText("<font color=\"" + m_errorColor + "\">"+tr("Disconnected")+"</font><br>"); |
50 | } | 50 | } |
51 | } | 51 | } |
52 | m_field->clear(); | 52 | m_field->clear(); |
@@ -54,10 +54,14 @@ void IRCQueryTab::processCommand() { | |||
54 | 54 | ||
55 | void IRCQueryTab::display(IRCOutput output) { | 55 | void IRCQueryTab::display(IRCOutput output) { |
56 | if (output.type() == OUTPUT_QUERYPRIVMSG) { | 56 | if (output.type() == OUTPUT_QUERYPRIVMSG) { |
57 | appendText("<<font color=\"#0000dd\">"+m_person->nick()+"</font>> " + output.htmlMessage() + "<br>"); | 57 | appendText("<font color=\"" + m_textColor + "\"><</font><font color=\"" + m_otherColor + "\">"+m_person->nick()+"</font><font color=\"" + m_textColor + "\">> " + output.htmlMessage() + "</font><br>"); |
58 | } else if (output.type() == OUTPUT_QUERYACTION) { | 58 | } else if (output.type() == OUTPUT_QUERYACTION) { |
59 | appendText("<font color=\"#0000dd\">" + output.htmlMessage() + "<br>"); | 59 | appendText("<font color=\"" + m_otherColor + "\">" + output.htmlMessage() + "<br>"); |
60 | } | ||
60 | } | 61 | } |
62 | |||
63 | void IRCQueryTab::settingsChanged() { | ||
64 | m_textview->setText("<qt bgcolor=\"" + m_backgroundColor + "\"/>"); | ||
61 | } | 65 | } |
62 | 66 | ||
63 | QString IRCQueryTab::title() { | 67 | QString IRCQueryTab::title() { |