summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircservereditor.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/opieirc/ircservereditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircservereditor.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircservereditor.cpp b/noncore/net/opieirc/ircservereditor.cpp
index f976c84..8604835 100644
--- a/noncore/net/opieirc/ircservereditor.cpp
+++ b/noncore/net/opieirc/ircservereditor.cpp
@@ -3,5 +3,6 @@
#include <qlabel.h>
+#include <qwhatsthis.h>
#include "ircservereditor.h"
-IRCServerEditor::IRCServerEditor(IRCServer server, QWidget* parent, const char* name, bool modal = FALSE, WFlags f) : QDialog(parent, name, modal, f) {
+IRCServerEditor::IRCServerEditor(IRCServer server, QWidget* parent, const char* name, bool modal = FALSE, WFlags) : QDialog(parent, name, modal, WStyle_ContextHelp) {
QGridLayout *layout = new QGridLayout(this, 7, 2, 5, 5);
@@ -9,2 +10,3 @@ IRCServerEditor::IRCServerEditor(IRCServer server, QWidget* parent, const char*
m_name = new QLineEdit(server.name(), this);
+ QWhatsThis::add(m_name, tr("The name of this server profile in the overview"));
layout->addWidget(label, 0, 0);
@@ -13,2 +15,3 @@ IRCServerEditor::IRCServerEditor(IRCServer server, QWidget* parent, const char*
m_hostname = new QLineEdit(server.hostname(), this);
+ QWhatsThis::add(m_hostname, tr("The server to connect to - can be any valid host name or IP address"));
layout->addWidget(label, 1, 0);
@@ -17,2 +20,3 @@ IRCServerEditor::IRCServerEditor(IRCServer server, QWidget* parent, const char*
m_port = new QLineEdit(QString::number(server.port()), this);
+ QWhatsThis::add(m_port, tr("The server port to connect to. Usually 6667"));
layout->addWidget(label, 2, 0);
@@ -21,2 +25,3 @@ IRCServerEditor::IRCServerEditor(IRCServer server, QWidget* parent, const char*
m_nickname = new QLineEdit(server.nick(), this);
+ QWhatsThis::add(m_nickname, tr("Your nick name on the IRC network"));
layout->addWidget(label, 3, 0);
@@ -25,2 +30,3 @@ IRCServerEditor::IRCServerEditor(IRCServer server, QWidget* parent, const char*
m_realname = new QLineEdit(server.realname(), this);
+ QWhatsThis::add(m_realname, tr("Your real name"));
layout->addWidget(label, 4, 0);
@@ -29,2 +35,3 @@ IRCServerEditor::IRCServerEditor(IRCServer server, QWidget* parent, const char*
m_password = new QLineEdit(server.password(), this);
+ QWhatsThis::add(m_password, tr("Password to connect to the server (if required)"));
layout->addWidget(label, 5, 0);
@@ -33,2 +40,3 @@ IRCServerEditor::IRCServerEditor(IRCServer server, QWidget* parent, const char*
m_channels = new QLineEdit(server.channels(), this);
+ QWhatsThis::add(m_channels, tr("Comma-Separated list of all channels you would like to join automatically"));
layout->addWidget(label, 6, 0);