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 QLineEdit(text);
46 hpolicy=QSizePolicy::Expanding;
48 vpolicy=QSizePolicy::Expanding;
49 qw->setSizePolicy(hpolicy, vpolicy);
52 qw->setEchoMode(QLineEdit::Password);
54 qw->setEchoMode(QLineEdit::Normal);
61 qw->connect(qw, SIGNAL(returnPressed()),
63 SLOT(slotActivated()));
65 qw->connect(qw, SIGNAL(textChanged(
const QString&)),
67 SLOT(slotValueChanged()));
88 text=QString::fromUtf8(value);
99 "Function is not appropriate for this type of widget (%s)",
108 const char *defaultValue) {
131 "Function is not appropriate for this type of widget (%s)",