6 * John Levon, moz@compsoc.man.ac.uk
14 #include <qcombobox.h>
15 #include <krestrictedline.h>
19 #ifdef CXX_WORKING_NAMESPACES
20 namespace kde_helpers {
25 * \brief sets the minimum size of a widget
26 * \param widget the widget
28 * Sets a widget's minimum size to its sizeHint()
30 inline void setSizeHint(QWidget *widget)
32 widget->setMinimumSize(widget->sizeHint());
37 * \brief sets a combo box item given a string matching one of the entries.
38 * \param box the box to change
39 * \param str the string to match
41 * Set a combobox current item matching the given string. false is returned if
42 * the item could not be found.
44 bool setComboFromStr(QComboBox *box, const string & str);
46 #ifdef CXX_WORKING_NAMESPACES
47 }; /* namespace kde_helpers */
50 #endif /* HELPERS_H */