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