summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/modemconfigwidget.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/modemconfigwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/modemconfigwidget.cpp19
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 @@
#include "dialdialog.h"
+#include "comboboxhelper.h"
/* OPIE */
-#include <opie2/odebug.h>
#include <qpe/qpeapplication.h>
-using namespace Opie::Core;
@@ -15,15 +14,2 @@ using namespace Opie::Core;
-namespace {
- void setCurrent( const QString& str, QComboBox* bo ) {
- uint b = bo->count();
- for (int i = 0; i < bo->count(); i++ ) {
- if ( bo->text(i) == str ) {
- bo->setCurrentItem( i );
- return;
- }
- }
- bo->insertItem( str );
- bo->setCurrentItem( b );
- }
-}
@@ -148,6 +134,5 @@ void ModemConfigWidget::load( const Profile& prof ) {
if ( prof.readEntry( "Device" ).isEmpty() ) {
- owarn << "device empty!" << oendl;
return;
}
- setCurrent( prof.readEntry( "Device" ), m_deviceCmb );
+ ComboboxHelper::setCurrent( prof.readEntry( "Device" ), m_deviceCmb );