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)",
#define GWEN_ERROR_INVALID
int setCharProperty(GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, const char *value, GWEN_UNUSED int doSignal)
Qt5_W_LineEdit(GWEN_WIDGET *w)
#define DBG_WARN(dbg_logger, format, args...)
const char * getCharProperty(GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, const char *defaultValue)
#define GWEN_WIDGET_FLAGS_PASSWORD
#define GWEN_WIDGET_FLAGS_FILLY
QT5_DialogBox * getMainWindow()
#define GWEN_WIDGET_FLAGS_FILLX
#define QT5_DIALOG_STRING_TITLE
#define QT5_DIALOG_WIDGET_REAL