Diffstat (limited to 'noncore/apps/opie-console/modemconfigwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/modemconfigwidget.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp index b2f5c68..eb4bd0d 100644 --- a/noncore/apps/opie-console/modemconfigwidget.cpp +++ b/noncore/apps/opie-console/modemconfigwidget.cpp | |||
@@ -2,7 +2,6 @@ | |||
2 | #include "dialdialog.h" | 2 | #include "dialdialog.h" |
3 | #include "comboboxhelper.h" | ||
3 | 4 | ||
4 | /* OPIE */ | 5 | /* OPIE */ |
5 | #include <opie2/odebug.h> | ||
6 | #include <qpe/qpeapplication.h> | 6 | #include <qpe/qpeapplication.h> |
7 | using namespace Opie::Core; | ||
8 | 7 | ||
@@ -15,15 +14,2 @@ using namespace Opie::Core; | |||
15 | 14 | ||
16 | namespace { | ||
17 | void setCurrent( const QString& str, QComboBox* bo ) { | ||
18 | uint b = bo->count(); | ||
19 | for (int i = 0; i < bo->count(); i++ ) { | ||
20 | if ( bo->text(i) == str ) { | ||
21 | bo->setCurrentItem( i ); | ||
22 | return; | ||
23 | } | ||
24 | } | ||
25 | bo->insertItem( str ); | ||
26 | bo->setCurrentItem( b ); | ||
27 | } | ||
28 | } | ||
29 | 15 | ||
@@ -148,6 +134,5 @@ void ModemConfigWidget::load( const Profile& prof ) { | |||
148 | if ( prof.readEntry( "Device" ).isEmpty() ) { | 134 | if ( prof.readEntry( "Device" ).isEmpty() ) { |
149 | owarn << "device empty!" << oendl; | ||
150 | return; | 135 | return; |
151 | } | 136 | } |
152 | setCurrent( prof.readEntry( "Device" ), m_deviceCmb ); | 137 | ComboboxHelper::setCurrent( prof.readEntry( "Device" ), m_deviceCmb ); |
153 | 138 | ||