author | wazlaf <wazlaf> | 2002-10-16 21:28:25 (UTC) |
---|---|---|
committer | wazlaf <wazlaf> | 2002-10-16 21:28:25 (UTC) |
commit | 98bf2fd8027b5e10a82c0f4bde27d7977b919bcc (patch) (side-by-side diff) | |
tree | f512cd6b1d66ed69a33b57e2ffa07eb8a7e4dbb4 /noncore/net/opieirc | |
parent | fd6aee0559a2f2f68b14f9913ebbf482c2561572 (diff) | |
download | opie-98bf2fd8027b5e10a82c0f4bde27d7977b919bcc.zip opie-98bf2fd8027b5e10a82c0f4bde27d7977b919bcc.tar.gz opie-98bf2fd8027b5e10a82c0f4bde27d7977b919bcc.tar.bz2 |
qwhatsthis fix
-rw-r--r-- | noncore/net/opieirc/ircservertab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircservertab.cpp b/noncore/net/opieirc/ircservertab.cpp index a46f105..5aa447f 100644 --- a/noncore/net/opieirc/ircservertab.cpp +++ b/noncore/net/opieirc/ircservertab.cpp @@ -1,44 +1,44 @@ #include <qpe/config.h> #include <qtextstream.h> #include <qwhatsthis.h> #include "ircservertab.h" IRCServerTab::IRCServerTab(IRCServer server, MainWindow *mainWindow, QWidget *parent, const char *name, WFlags f) : IRCTab(parent, name, f) { m_server = server; m_session = new IRCSession(&m_server); m_mainWindow = mainWindow; m_close = FALSE; m_lines = 0; m_description->setText(tr("Connection to")+" <b>" + server.hostname() + ":" + QString::number(server.port()) + "</b>"); m_textview = new QTextView(this); m_textview->setHScrollBarMode(QScrollView::AlwaysOff); m_textview->setVScrollBarMode(QScrollView::AlwaysOn); m_textview->setTextFormat(RichText); QWhatsThis::add(m_textview, tr("Server messages")); m_layout->add(m_textview); m_field = new IRCHistoryLineEdit(this); - QWhatsThis::add(m_textview, tr("Type commands here. A list of available commands can be found inside the OpieIRC help")); + QWhatsThis::add(m_field, tr("Type commands here. A list of available commands can be found inside the OpieIRC help")); m_layout->add(m_field); connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); m_field->setFocus(); connect(m_session, SIGNAL(outputReady(IRCOutput)), this, SLOT(display(IRCOutput))); settingsChanged(); } void IRCServerTab::appendText(QString text) { /* not using append because it creates layout problems */ QString txt = m_textview->text() + text + "\n"; if (m_maxLines > 0 && m_lines >= m_maxLines) { int firstBreak = txt.find('\n'); if (firstBreak != -1) { txt = "<qt bgcolor=\"" + m_backgroundColor + "\"/>" + txt.right(txt.length() - (firstBreak + 1)); } } else { m_lines++; } m_textview->setText(txt); m_textview->ensureVisible(0, m_textview->contentsHeight()); emit changed(this); } IRCServerTab::~IRCServerTab() { |