Diffstat (limited to 'noncore/net/opieirc/ircserverlist.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircserverlist.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircserverlist.cpp b/noncore/net/opieirc/ircserverlist.cpp index 3293591..595ae3e 100644 --- a/noncore/net/opieirc/ircserverlist.cpp +++ b/noncore/net/opieirc/ircserverlist.cpp | |||
@@ -1,10 +1,11 @@ | |||
1 | #include <qlayout.h> | 1 | #include <qlayout.h> |
2 | #include <qlabel.h> | 2 | #include <qlabel.h> |
3 | #include <qhbox.h> | 3 | #include <qhbox.h> |
4 | #include <qpushbutton.h> | 4 | #include <qpushbutton.h> |
5 | #include <qwhatsthis.h> | ||
5 | #include "ircserverlist.h" | 6 | #include "ircserverlist.h" |
6 | #include "ircservereditor.h" | 7 | #include "ircservereditor.h" |
7 | 8 | ||
8 | class IRCListBoxServer : public QListBoxText { | 9 | class IRCListBoxServer : public QListBoxText { |
9 | public: | 10 | public: |
10 | IRCListBoxServer(IRCServer server) : QListBoxText(server.name()) { | 11 | IRCListBoxServer(IRCServer server) : QListBoxText(server.name()) { |
@@ -20,24 +21,28 @@ public: | |||
20 | setText(m_server.name()); | 21 | setText(m_server.name()); |
21 | } | 22 | } |
22 | protected: | 23 | protected: |
23 | IRCServer m_server; | 24 | IRCServer m_server; |
24 | }; | 25 | }; |
25 | 26 | ||
26 | IRCServerList::IRCServerList(QWidget* parent, const char *name, bool modal, WFlags f) : QDialog(parent, name, modal, f) { | 27 | IRCServerList::IRCServerList(QWidget* parent, const char *name, bool modal, WFlags) : QDialog(parent, name, modal, WStyle_ContextHelp) { |
27 | QVBoxLayout *layout = new QVBoxLayout(this, 5, 5); | 28 | QVBoxLayout *layout = new QVBoxLayout(this, 5, 5); |
28 | setCaption(tr("Serverlist Browser")); | 29 | setCaption(tr("Serverlist Browser")); |
29 | QLabel *label = new QLabel(tr("Please choose a server profile"), this); | 30 | QLabel *label = new QLabel(tr("Please choose a server profile"), this); |
30 | label->setAlignment(AlignHCenter); | 31 | label->setAlignment(AlignHCenter); |
31 | layout->addWidget(label); | 32 | layout->addWidget(label); |
32 | m_list = new QListBox(this); | 33 | m_list = new QListBox(this); |
34 | QWhatsThis::add(m_list, tr("Select a server profile from this list and then tap on OK in the upper-right corner")); | ||
33 | layout->addWidget(m_list); | 35 | layout->addWidget(m_list); |
34 | QHBox *buttons = new QHBox(this); | 36 | QHBox *buttons = new QHBox(this); |
35 | QPushButton *del = new QPushButton(tr("Delete"), buttons); | 37 | QPushButton *del = new QPushButton(tr("Delete"), buttons); |
36 | QPushButton *edit = new QPushButton(tr("Edit"), buttons); | 38 | QPushButton *edit = new QPushButton(tr("Edit"), buttons); |
37 | QPushButton *add = new QPushButton(tr("Add"), buttons); | 39 | QPushButton *add = new QPushButton(tr("Add"), buttons); |
40 | QWhatsThis::add(del, tr("Delete the currently selected server profile")); | ||
41 | QWhatsThis::add(edit, tr("Edit the currently selected server profile")); | ||
42 | QWhatsThis::add(add, tr("Add a new server profile")); | ||
38 | connect(del, SIGNAL(clicked()), this, SLOT(delServer())); | 43 | connect(del, SIGNAL(clicked()), this, SLOT(delServer())); |
39 | connect(edit, SIGNAL(clicked()), this, SLOT(editServer())); | 44 | connect(edit, SIGNAL(clicked()), this, SLOT(editServer())); |
40 | connect(add, SIGNAL(clicked()), this, SLOT(addServer())); | 45 | connect(add, SIGNAL(clicked()), this, SLOT(addServer())); |
41 | layout->addWidget(buttons); | 46 | layout->addWidget(buttons); |
42 | /* Load the configuration file */ | 47 | /* Load the configuration file */ |
43 | m_config = new Config("OpieIRC"); | 48 | m_config = new Config("OpieIRC"); |