Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

utils.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  ***************************************************************************/
00009 // (c) 2002 Patrick S. Vogt <tille@handhelds.org>
00010 
00011 #include <qcombobox.h>
00012 #include <qstring.h>
00013 #include "utils.h"
00014 
00015 void setComboName( QComboBox* combo, QString s)
00016 {
00017   for ( int i = 0; i < combo->count(); i++)
00018       if ( combo->text( i ) == s )
00019                                 combo->setCurrentItem( i );
00020 }

Generated on Sat Nov 5 16:17:48 2005 for OPIE by  doxygen 1.4.2