author | wazlaf <wazlaf> | 2002-10-16 21:28:25 (UTC) |
---|---|---|
committer | wazlaf <wazlaf> | 2002-10-16 21:28:25 (UTC) |
commit | 98bf2fd8027b5e10a82c0f4bde27d7977b919bcc (patch) (unidiff) | |
tree | f512cd6b1d66ed69a33b57e2ffa07eb8a7e4dbb4 | |
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 | |||
@@ -8,25 +8,25 @@ IRCServerTab::IRCServerTab(IRCServer server, MainWindow *mainWindow, QWidget *pa | |||
8 | m_session = new IRCSession(&m_server); | 8 | m_session = new IRCSession(&m_server); |
9 | m_mainWindow = mainWindow; | 9 | m_mainWindow = mainWindow; |
10 | m_close = FALSE; | 10 | m_close = FALSE; |
11 | m_lines = 0; | 11 | m_lines = 0; |
12 | m_description->setText(tr("Connection to")+" <b>" + server.hostname() + ":" + QString::number(server.port()) + "</b>"); | 12 | m_description->setText(tr("Connection to")+" <b>" + server.hostname() + ":" + QString::number(server.port()) + "</b>"); |
13 | m_textview = new QTextView(this); | 13 | m_textview = new QTextView(this); |
14 | m_textview->setHScrollBarMode(QScrollView::AlwaysOff); | 14 | m_textview->setHScrollBarMode(QScrollView::AlwaysOff); |
15 | m_textview->setVScrollBarMode(QScrollView::AlwaysOn); | 15 | m_textview->setVScrollBarMode(QScrollView::AlwaysOn); |
16 | m_textview->setTextFormat(RichText); | 16 | m_textview->setTextFormat(RichText); |
17 | QWhatsThis::add(m_textview, tr("Server messages")); | 17 | QWhatsThis::add(m_textview, tr("Server messages")); |
18 | m_layout->add(m_textview); | 18 | m_layout->add(m_textview); |
19 | m_field = new IRCHistoryLineEdit(this); | 19 | m_field = new IRCHistoryLineEdit(this); |
20 | QWhatsThis::add(m_textview, tr("Type commands here. A list of available commands can be found inside the OpieIRC help")); | 20 | QWhatsThis::add(m_field, tr("Type commands here. A list of available commands can be found inside the OpieIRC help")); |
21 | m_layout->add(m_field); | 21 | m_layout->add(m_field); |
22 | connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); | 22 | connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); |
23 | m_field->setFocus(); | 23 | m_field->setFocus(); |
24 | connect(m_session, SIGNAL(outputReady(IRCOutput)), this, SLOT(display(IRCOutput))); | 24 | connect(m_session, SIGNAL(outputReady(IRCOutput)), this, SLOT(display(IRCOutput))); |
25 | settingsChanged(); | 25 | settingsChanged(); |
26 | } | 26 | } |
27 | 27 | ||
28 | void IRCServerTab::appendText(QString text) { | 28 | void IRCServerTab::appendText(QString text) { |
29 | /* not using append because it creates layout problems */ | 29 | /* not using append because it creates layout problems */ |
30 | QString txt = m_textview->text() + text + "\n"; | 30 | QString txt = m_textview->text() + text + "\n"; |
31 | if (m_maxLines > 0 && m_lines >= m_maxLines) { | 31 | if (m_maxLines > 0 && m_lines >= m_maxLines) { |
32 | int firstBreak = txt.find('\n'); | 32 | int firstBreak = txt.find('\n'); |