11 #include <gwen-gui-cpp/cppwidget.hpp>
30 QSizePolicy::Policy hpolicy=QSizePolicy::Minimum;
31 QSizePolicy::Policy vpolicy=QSizePolicy::Minimum;
35 wParent=GWEN_Widget_Tree_GetParent(
_widget);
41 hpolicy=QSizePolicy::Expanding;
43 vpolicy=QSizePolicy::Expanding;
44 qw->setSizePolicy(hpolicy, vpolicy);
52 qw->connect(qw, SIGNAL(activated(
int)),
54 SLOT(slotActivated()));
75 qw->setCurrentIndex(value);
99 return qw->currentIndex();
122 text=QString::fromUtf8(value);
141 "Function is not appropriate for this type of widget (%s)",
150 const char *defaultValue) {
159 str=qw->itemText(index);
173 "Function is not appropriate for this type of widget (%s)",