5 * John Levon, moz@compsoc.man.ac.uk
10 * \brief various useful functions for manipulating dialog widgets
22 #ifdef CXX_WORKING_NAMESPACES
23 namespace kde_helpers {
26 bool setComboFromStr(QComboBox *box, const string & str)
28 for (int i = 0; i < box->count(); i++) {
29 if (str == box->text(i)) {
30 box->setCurrentItem(i);
38 #ifdef CXX_WORKING_NAMESPACES
39 }; /* namespace kde_helpers */