#include "label.h"
#include "container.h"
#include "toolkit.h"
UIWIDGET ui_label(UiObject *obj,
char *label) {
QString str = QString::fromUtf8(label);
QLabel *widget = new QLabel(str);
UiContainer *ct = uic_get_current_container(obj);
ct->add(widget, false);
return widget;
}
UIWIDGET ui_space(UiObject *obj) {
QLabel *widget = new QLabel();
UiContainer *ct = uic_get_current_container(obj);
ct->add(widget, true);
return widget;
}