summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircsettings.cpp
authorzecke <zecke>2004-09-06 23:51:20 (UTC)
committer zecke <zecke>2004-09-06 23:51:20 (UTC)
commite6798d7ec0a3b86e412bd67faad24a737a67aa5f (patch) (unidiff)
treeff10e927aff440d8dca2e0fe8976aadb3ff011d2 /noncore/net/opieirc/ircsettings.cpp
parent8f18e8b46dfaaa7e03b9ed1f3faed12da5b30cd5 (diff)
downloadopie-e6798d7ec0a3b86e412bd67faad24a737a67aa5f.zip
opie-e6798d7ec0a3b86e412bd67faad24a737a67aa5f.tar.gz
opie-e6798d7ec0a3b86e412bd67faad24a737a67aa5f.tar.bz2
Use OKeyConfigWidget/Manager for managing next and prev tab
keyboard shortcuts
Diffstat (limited to 'noncore/net/opieirc/ircsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircsettings.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircsettings.cpp b/noncore/net/opieirc/ircsettings.cpp
index 13fcc24..1fba030 100644
--- a/noncore/net/opieirc/ircsettings.cpp
+++ b/noncore/net/opieirc/ircsettings.cpp
@@ -3,2 +3,3 @@
3#include "irctab.h" 3#include "irctab.h"
4#include "ircmisc.h"
4 5
@@ -7,2 +8,3 @@
7#include <opie2/otabwidget.h> 8#include <opie2/otabwidget.h>
9#include <opie2/okeyconfigwidget.h>
8#include <qpe/qpeapplication.h> 10#include <qpe/qpeapplication.h>
@@ -80,4 +82,15 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags)
80 tw->addTab(view, "opieirc/colors", tr("Colors")); 82 tw->addTab(view, "opieirc/colors", tr("Colors"));
81 tw->setCurrentTab( genwidget );
82 83
84
85 /*
86 * IRC EditLine KeyConfiguration
87 */
88 m_keyConf = new Opie::Ui::OKeyConfigWidget(tw, "KEyConfig GUI" );
89 m_keyConf->setChangeMode( OKeyConfigWidget::Queue );
90 m_keyConf->insert( tr("Keyboard Shortcuts"),
91 IRCHistoryLineEdit::keyConfigInstance() );
92 m_keyConf->load();
93 tw->addTab(m_keyConf, "SettingsIcon", tr("Keyboard Shortcuts") );
94
95 tw->setCurrentTab( genwidget );
83 QPEApplication::showDialog( this ); 96 QPEApplication::showDialog( this );
@@ -95,2 +108,5 @@ void IRCSettings::accept()
95 IRCTab::m_maxLines = m_lines->text().toInt(); 108 IRCTab::m_maxLines = m_lines->text().toInt();
109 m_keyConf->save();
110
111
96 m_config->writeEntry("BackgroundColor", IRCTab::m_backgroundColor); 112 m_config->writeEntry("BackgroundColor", IRCTab::m_backgroundColor);
@@ -103,2 +119,4 @@ void IRCSettings::accept()
103 m_config->writeEntry("Lines", m_lines->text()); 119 m_config->writeEntry("Lines", m_lines->text());
120 IRCHistoryLineEdit::keyConfigInstance()->save();
121
104 QDialog::accept(); 122 QDialog::accept();