CUSTOM_METAOBJECT(DeclarativeDateTimeEdit, QDateTimeEdit)
+// DeclarativeDial
+DeclarativeDial::DeclarativeDial(QObject *parent) : DeclarativeWidgetProxy<QDial>(parent)
+{
+ connectAllSignals(m_proxiedObject, this);
+}
+
+CUSTOM_METAOBJECT(DeclarativeDial, QDial)
+
// DeclarativeDialog
DeclarativeDialog::DeclarativeDialog(QObject *parent) : DeclarativeWidgetProxy<QDialog>(parent)
{
#include <QtGui/QColorDialog>
#include <QtGui/QCommandLinkButton>
#include <QtGui/QDateTimeEdit>
+#include <QtGui/QDial>
#include <QtGui/QDialog>
#include <QtGui/QDialogButtonBox>
#include <QtGui/QFontDialog>
DeclarativeDateTimeEdit(QObject *parent = 0);
};
+class DeclarativeDial : public DeclarativeWidgetProxy<QDial>
+{
+ DECLARATIVE_OBJECT
+
+ public:
+ DeclarativeDial(QObject *parent = 0);
+};
+
class DeclarativeDialog : public DeclarativeWidgetProxy<QDialog>
{
DECLARATIVE_OBJECT
qmlRegisterType<DeclarativeCommandLinkButton>("QtGui", 1, 0, "CommandLinkButton");
qmlRegisterType<DeclarativeDateEdit>("QtGui", 1, 0, "DateEdit");
qmlRegisterType<DeclarativeDateTimeEdit>("QtGui", 1, 0, "DateTimeEdit");
+ qmlRegisterType<DeclarativeDial>("QtGui", 1, 0, "Dial");
qmlRegisterType<DeclarativeDialog>("QtGui", 1, 0, "Dialog");
qmlRegisterType<DeclarativeDialogButtonBox>("QtGui", 1, 0, "DialogButtonBox");
qmlRegisterType<DeclarativeDoubleSpinBox>("QtGui", 1, 0, "DoubleSpinBox");
DateTimeEdit {}
- Slider {}
+ Dial {}
+
+ Slider {
+ minimum: 0
+ maximum: 100
+ value: 50
+ orientation: Qt.Horizontal
+ }
}
}