//// Widgets ////
+// DeclarativeCalendarWidget
+DeclarativeCalendarWidget::DeclarativeCalendarWidget(QObject *parent) : DeclarativeWidgetProxy<QCalendarWidget>(parent)
+{
+ connectAllSignals(m_proxiedObject, this);
+}
+
+CUSTOM_METAOBJECT(DeclarativeCalendarWidget, QCalendarWidget)
+
// DeclarativeCheckBox
DeclarativeCheckBox::DeclarativeCheckBox(QObject *parent) : DeclarativeWidgetProxy<QCheckBox>(parent)
{
#include <QtCore/QObject>
#include <QtCore/QPointer>
+#include <QtGui/QCalendarWidget>
#include <QtGui/QCheckBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QLabel>
};
//// Widgets ////
+class DeclarativeCalendarWidget : public DeclarativeWidgetProxy<QCalendarWidget>
+{
+ DECLARATIVE_OBJECT
+
+ public:
+ DeclarativeCalendarWidget(QObject *parent = 0);
+};
+
class DeclarativeCheckBox : public DeclarativeWidgetProxy<QCheckBox>
{
DECLARATIVE_OBJECT
: QObject(parent)
, d(new Private(this, url))
{
- qmlRegisterType<DeclarativeWidget>("QtGui", 1, 0, "Widget");
- qmlRegisterType<DeclarativeLabel>("QtGui", 1, 0, "Label");
+ // layouts
qmlRegisterType<DeclarativeHBoxLayout>("QtGui", 1, 0, "HBoxLayout");
qmlRegisterType<DeclarativeVBoxLayout>("QtGui", 1, 0, "VBoxLayout");
- qmlRegisterType<TabWidgetTabHeader>();
- qmlRegisterType<DeclarativeTabWidget>("QtGui", 1, 0, "TabWidget");
- qmlRegisterType<DeclarativePushButton>("QtGui", 1, 0, "PushButton");
+
+ // widgets
+ qmlRegisterType<DeclarativeCalendarWidget>("QtGui", 1, 0, "CalendarWidget");
qmlRegisterType<DeclarativeCheckBox>("QtGui", 1, 0, "CheckBox");
+ qmlRegisterType<DeclarativeLabel>("QtGui", 1, 0, "Label");
+ qmlRegisterType<DeclarativePushButton>("QtGui", 1, 0, "PushButton");
qmlRegisterType<DeclarativeSlider>("QtGui", 1, 0, "Slider");
+ qmlRegisterType<TabWidgetTabHeader>();
+ qmlRegisterType<DeclarativeTabWidget>("QtGui", 1, 0, "TabWidget");
+ qmlRegisterType<DeclarativeWidget>("QtGui", 1, 0, "Widget");
d->m_component->loadUrl(d->m_url);
if (d->m_component->isError()) {