author | zecke <zecke> | 2004-10-16 21:06:28 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-16 21:06:28 (UTC) |
commit | 999a0f2d22f132005bde62558ace48a0ce8b1dcc (patch) (unidiff) | |
tree | 75f528b52a8a89289925e62bbd4c48d316c8ddcf /noncore/apps/opie-console/profileeditordialog.cpp | |
parent | e70f226f5c4c2f488f6c4406034a04e128c0ca93 (diff) | |
download | opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.zip opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.gz opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.bz2 |
-Remove never finished classes by ibotty for the console widget
-Put setCurrent into ComboboxHelper and remove duplication from the
dialogs
-Remove old and unneeded debug output
-IOBt, IOIrda can share the implementation for sening,recieving
and supports with IOSerial
Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index dc42d8b..8109070 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp | |||
@@ -1 +1,6 @@ | |||
1 | #include "profileeditordialog.h" | ||
2 | #include "metafactory.h" | ||
3 | #include "comboboxhelper.h" | ||
4 | |||
5 | |||
1 | #include <qlayout.h> | 6 | #include <qlayout.h> |
@@ -8,15 +13,6 @@ | |||
8 | 13 | ||
9 | #include "metafactory.h" | 14 | |
10 | #include "profileeditordialog.h" | ||
11 | 15 | ||
12 | using namespace Opie::Ui; | 16 | using namespace Opie::Ui; |
13 | namespace { | 17 | |
14 | void setCurrent( const QString& str, QComboBox* bo ) { | ||
15 | for (int i = 0; i < bo->count(); i++ ) { | ||
16 | if ( bo->text(i) == str ) { | ||
17 | bo->setCurrentItem( i ); | ||
18 | } | ||
19 | } | ||
20 | }; | ||
21 | } | ||
22 | 18 | ||
@@ -126,4 +122,4 @@ void ProfileEditorDialog::initUI() | |||
126 | slotKeyActivated( "Default Keyboard" ); | 122 | slotKeyActivated( "Default Keyboard" ); |
127 | setCurrent( m_fact->external(m_prof.ioLayerName() ), m_conCmb ); | 123 | ComboboxHelper::setCurrent( m_fact->external(m_prof.ioLayerName() ), m_conCmb ); |
128 | setCurrent( m_fact->external(m_prof.terminalName() ), m_termCmb ); | 124 | ComboboxHelper::setCurrent( m_fact->external(m_prof.terminalName() ), m_termCmb ); |
129 | slotConActivated( m_fact->external(m_prof.ioLayerName() ) ); | 125 | slotConActivated( m_fact->external(m_prof.ioLayerName() ) ); |