summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/utils.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/utils.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/utils.cpp27
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 @@
1/***************************************************************************
2 utils.cpp - description
3 -------------------
4 begin : Sun Apr 28 2002
5 copyright : (C) 2002 by tille
6 email : tille@handhelds.org
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#include <qcombobox.h>
19#include <qstring.h>
20#include "utils.h"
21
22void setComboName( QComboBox* combo, QString s)
23{
24 for ( int i = 0; i < combo->count(); i++)
25 if ( combo->text( i ) == s )
26 combo->setCurrentItem( i );
27} \ No newline at end of file