Diffstat (limited to 'noncore/net/opieirc/ircsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircsettings.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircsettings.cpp b/noncore/net/opieirc/ircsettings.cpp index 1903e87..78eaed3 100644 --- a/noncore/net/opieirc/ircsettings.cpp +++ b/noncore/net/opieirc/ircsettings.cpp @@ -3,2 +3,3 @@ #include <qscrollview.h> +#include <qwhatsthis.h> #include "ircsettings.h" @@ -7,3 +8,3 @@ -IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags f) : QDialog(parent, name, modal, f) { +IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags) : QDialog(parent, name, modal, WStyle_ContextHelp) { setCaption("Settings"); @@ -20,2 +21,3 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags f m_lines = new QLineEdit(m_config->readEntry("Lines", "100"), widget); + QWhatsThis::add(m_lines, tr("Amount of lines to be displayed in chats before old lines get deleted - this is necessary to restrain memory consumption. Set to 0 if you don't need this")); QIntValidator *validator = new QIntValidator(this); @@ -36,2 +38,3 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags f m_background = new IRCFramedColorLabel(QColor(m_config->readEntry("BackgroundColor", "#FFFFFF")), widget); + QWhatsThis::add(m_background, tr("Background color to be used in chats")); layout->addWidget(m_background, 0, 1); @@ -40,2 +43,3 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags f m_text = new IRCFramedColorLabel(m_config->readEntry("TextColor", "#000000"), widget); + QWhatsThis::add(m_text, tr("Text color to be used in chats")); layout->addWidget(m_text, 1, 1); @@ -44,2 +48,3 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags f m_error = new IRCFramedColorLabel(m_config->readEntry("ErrorColor", "#FF0000"), widget); + QWhatsThis::add(m_error, tr("Text color to be used to display errors")); layout->addWidget(m_error, 2, 1); @@ -48,2 +53,3 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags f m_self = new IRCFramedColorLabel(m_config->readEntry("SelfColor", "#CC0000"), widget); + QWhatsThis::add(m_self, tr("Text color to be used to identify text written by yourself")); layout->addWidget(m_self, 3, 1); @@ -52,2 +58,3 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags f m_other = new IRCFramedColorLabel(m_config->readEntry("OtherColor", "#0000BB"), widget); + QWhatsThis::add(m_other, tr("Text color to be used to identify text written by others")); layout->addWidget(m_other, 4, 1); @@ -56,2 +63,3 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags f m_server = new IRCFramedColorLabel(m_config->readEntry("ServerColor", "#0000FF"), widget); + QWhatsThis::add(m_server, tr("Text color to be used to identify text written by the server")); layout->addWidget(m_server, 5, 1); @@ -60,2 +68,3 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags f m_notification = new IRCFramedColorLabel(m_config->readEntry("NotificationColor", "#AAE300"), widget); + QWhatsThis::add(m_notification, tr("Text color to be used to display notifications")); layout->addWidget(m_notification, 6, 1); |