Diffstat (limited to 'noncore/unsupported/oipkg/utils.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/utils.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/utils.cpp b/noncore/unsupported/oipkg/utils.cpp new file mode 100644 index 0000000..13b17fb --- a/dev/null +++ b/noncore/unsupported/oipkg/utils.cpp @@ -0,0 +1,27 @@ +/*************************************************************************** + utils.cpp - description + ------------------- + begin : Sun Apr 28 2002 + copyright : (C) 2002 by tille + email : tille@handhelds.org + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include <qcombobox.h> +#include <qstring.h> +#include "utils.h" + +void setComboName( QComboBox* combo, QString s) +{ + for ( int i = 0; i < combo->count(); i++) + if ( combo->text( i ) == s ) + combo->setCurrentItem( i ); +}
\ No newline at end of file |