CUSTOM_METAOBJECT(DeclarativeLabel, QLabel)
+// DeclarativeLineEdit
+DeclarativeLineEdit::DeclarativeLineEdit(QObject *parent) : DeclarativeWidgetProxy<QLineEdit>(parent)
+{
+ connectAllSignals(m_proxiedObject, this);
+}
+
+CUSTOM_METAOBJECT(DeclarativeLineEdit, QLineEdit)
+
// DeclarativeMainWindow
DeclarativeMainWindow::DeclarativeMainWindow(QObject *parent) : DeclarativeWidgetProxy<QMainWindow>(parent)
{
#include <QtGui/QFormLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QLabel>
+#include <QtGui/QLineEdit>
#include <QtGui/QMainWindow>
#include <QtGui/QMenu>
#include <QtGui/QMenuBar>
DeclarativeLabel(QObject *parent = 0);
};
+class DeclarativeLineEdit : public DeclarativeWidgetProxy<QLineEdit>
+{
+ DECLARATIVE_OBJECT
+
+ public:
+ DeclarativeLineEdit(QObject *parent = 0);
+};
+
class DeclarativeMainWindow : public DeclarativeWidgetProxy<QMainWindow>
{
DECLARATIVE_OBJECT
qmlRegisterType<DeclarativeInputDialogAttached>();
qmlRegisterType<DeclarativeInputDialog>("QtGui", 1, 0, "InputDialog");
qmlRegisterType<DeclarativeLabel>("QtGui", 1, 0, "Label");
+ qmlRegisterType<DeclarativeLineEdit>("QtGui", 1, 0, "LineEdit");
qmlRegisterType<DeclarativeMainWindow>("QtGui", 1, 0, "MainWindow");
qmlRegisterType<DeclarativeMenu>("QtGui", 1, 0, "Menu");
qmlRegisterType<DeclarativeMenuBar>("QtGui", 1, 0, "MenuBar");
VBoxLayout
{
CalendarWidget {}
+ LineEdit {
+ onTextChanged: console.log("Types: " + text)
+ }
}
}
qgroupbox.h
qheaderview.h
qlcdnumber.h
-qlineedit.h
qlistview.h
qlistwidget.h
qmdiarea.h