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 QTextEdit(text);
46 hpolicy=QSizePolicy::Expanding;
48 vpolicy=QSizePolicy::Expanding;
49 qw->setSizePolicy(hpolicy, vpolicy);
62 qw->connect(qw, SIGNAL(returnPressed()),
63 qtDialog->getMainWindow(),
64 SLOT(slotActivated()));
85 text=QString::fromUtf8(value);
96 "Function is not appropriate for this type of widget (%s)",
105 const char *defaultValue) {
114 str=qw->toPlainText();
128 "Function is not appropriate for this type of widget (%s)",
int setCharProperty(GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, const char *value, GWEN_UNUSED int doSignal)
#define GWEN_ERROR_INVALID
Qt5_W_TextEdit(GWEN_WIDGET *w)
#define DBG_WARN(dbg_logger, format, args...)
#define GWEN_WIDGET_FLAGS_FILLY
#define GWEN_WIDGET_FLAGS_FILLX
#define QT5_DIALOG_STRING_TITLE
const char * getCharProperty(GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, const char *defaultValue)
#define QT5_DIALOG_WIDGET_REAL