CUSTOM_METAOBJECT(DeclarativeMessageBox, QMessageBox)
+// DeclarativePlainTextEdit
+DeclarativePlainTextEdit::DeclarativePlainTextEdit(QObject *parent) : DeclarativeWidgetProxy<QPlainTextEdit>(parent)
+{
+ connectAllSignals(m_proxiedObject, this);
+}
+
+CUSTOM_METAOBJECT(DeclarativePlainTextEdit, QPlainTextEdit)
+
// DeclarativePushButton
DeclarativePushButton::DeclarativePushButton(QObject *parent) : DeclarativeWidgetProxy<QPushButton>(parent)
{
#include <QtGui/QMenu>
#include <QtGui/QMenuBar>
#include <QtGui/QMessageBox>
+#include <QtGui/QPlainTextEdit>
#include <QtGui/QPushButton>
#include <QtGui/QSlider>
#include <QtGui/QStatusBar>
QML_DECLARE_TYPEINFO(DeclarativeMessageBox, QML_HAS_ATTACHED_PROPERTIES)
+class DeclarativePlainTextEdit : public DeclarativeWidgetProxy<QPlainTextEdit>
+{
+ DECLARATIVE_OBJECT
+
+ public:
+ DeclarativePlainTextEdit(QObject *parent = 0);
+};
+
class DeclarativePushButton : public DeclarativeWidgetProxy<QPushButton>
{
DECLARATIVE_OBJECT
qmlRegisterType<DeclarativeMenuBar>("QtGui", 1, 0, "MenuBar");
qmlRegisterType<DeclarativeMessageBoxAttached>();
qmlRegisterType<DeclarativeMessageBox>("QtGui", 1, 0, "MessageBox");
+ qmlRegisterType<DeclarativePlainTextEdit>("QtGui", 1, 0, "PlainTextEdit");
qmlRegisterType<DeclarativePushButton>("QtGui", 1, 0, "PushButton");
qmlRegisterType<DeclarativeSlider>("QtGui", 1, 0, "Slider");
qmlRegisterType<DeclarativeStatusBarAttached>();
minimumWidth: 100
minimumHeight: 100
}
+ PlainTextEdit {
+ plainText: qsTr("Hello World")
+ }
}
}
qmdiarea.h
qmdisubwindow.h
qmessagebox.h
-qplaintextedit.h
qprintpreviewwidget.h
qprogressbar.h
qradiobutton.h