Diffstat (limited to 'noncore/net/opieirc/ircsettings.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircsettings.cpp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/noncore/net/opieirc/ircsettings.cpp b/noncore/net/opieirc/ircsettings.cpp index 2862296..f69d2c4 100644 --- a/noncore/net/opieirc/ircsettings.cpp +++ b/noncore/net/opieirc/ircsettings.cpp | |||
@@ -1,10 +1,17 @@ | |||
1 | |||
2 | #include "ircsettings.h" | ||
3 | #include "irctab.h" | ||
4 | |||
5 | /* OPIE */ | ||
1 | #include <opie/ocolorbutton.h> | 6 | #include <opie/ocolorbutton.h> |
2 | #include <opie/otabwidget.h> | 7 | #include <opie/otabwidget.h> |
8 | #include <qpe/qpeapplication.h> | ||
9 | |||
10 | /* QT */ | ||
3 | #include <qvalidator.h> | 11 | #include <qvalidator.h> |
4 | #include <qwhatsthis.h> | 12 | #include <qwhatsthis.h> |
5 | #include "ircsettings.h" | ||
6 | #include "irctab.h" | ||
7 | 13 | ||
8 | IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags) : QDialog(parent, name, modal, WStyle_ContextHelp) { | 14 | IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags) : QDialog(parent, name, modal, WStyle_ContextHelp) |
15 | { | ||
9 | setCaption(tr("Settings") ); | 16 | setCaption(tr("Settings") ); |
10 | m_config = new Config("OpieIRC"); | 17 | m_config = new Config("OpieIRC"); |
@@ -71,8 +78,10 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags) | |||
71 | tw->addTab(view, "opieirc/colors", tr("Colors")); | 78 | tw->addTab(view, "opieirc/colors", tr("Colors")); |
72 | tw->setCurrentTab( genwidget ); | 79 | tw->setCurrentTab( genwidget ); |
73 | showMaximized(); | 80 | |
81 | QPEApplication::showDialog( this ); | ||
74 | } | 82 | } |
75 | 83 | ||
76 | void IRCSettings::accept() { | 84 | void IRCSettings::accept() |
85 | { | ||
77 | IRCTab::m_backgroundColor = m_background->color().name(); | 86 | IRCTab::m_backgroundColor = m_background->color().name(); |
78 | IRCTab::m_textColor = m_text->color().name(); | 87 | IRCTab::m_textColor = m_text->color().name(); |
@@ -94,5 +103,6 @@ void IRCSettings::accept() { | |||
94 | } | 103 | } |
95 | 104 | ||
96 | IRCSettings::~IRCSettings() { | 105 | IRCSettings::~IRCSettings() |
106 | { | ||
97 | delete m_config; | 107 | delete m_config; |
98 | } | 108 | } |