11 #include <gwen-gui-cpp/cppwidget.hpp>
30 QSizePolicy::Policy hpolicy=QSizePolicy::Minimum;
31 QSizePolicy::Policy vpolicy=QSizePolicy::Minimum;
37 wParent=GWEN_Widget_Tree_GetParent(
_widget);
40 text=QString::fromUtf8(s);
42 qw=
new QPushButton(text);
46 hpolicy=QSizePolicy::Expanding;
48 vpolicy=QSizePolicy::Expanding;
49 qw->setSizePolicy(hpolicy, vpolicy);
56 qw->connect(qw, SIGNAL(clicked(
bool)),
58 SLOT(slotActivated()));
78 text=QString::fromUtf8(value);
89 "Function is not appropriate for this type of widget (%s)",
98 const char *defaultValue) {
121 "Function is not appropriate for this type of widget (%s)",