Add support for CommandLinkButton
authorTobias Koenig <tobias.koenig@kdab.com>
Sun, 28 Oct 2012 08:23:40 +0000 (09:23 +0100)
committerTobias Koenig <tobias.koenig@kdab.com>
Sun, 28 Oct 2012 08:23:40 +0000 (09:23 +0100)
declarativeobjects.cpp
declarativeobjects_p.h
declarativewidgetdocument.cpp
gallery.qml
qwidgets.list

index d546482..7c29ddf 100644 (file)
@@ -694,6 +694,14 @@ DeclarativeColorDialogAttached *DeclarativeColorDialog::qmlAttachedProperties(QO
 
 CUSTOM_METAOBJECT(DeclarativeColorDialog, QColorDialog)
 
+// DeclarativeCommandLinkButton
+DeclarativeCommandLinkButton::DeclarativeCommandLinkButton(QObject *parent) : DeclarativeWidgetProxy<QCommandLinkButton>(parent)
+{
+  connectAllSignals(m_proxiedObject, this);
+}
+
+CUSTOM_METAOBJECT(DeclarativeCommandLinkButton, QCommandLinkButton)
+
 // DeclarativeDateEdit
 DeclarativeDateEdit::DeclarativeDateEdit(QObject *parent) : DeclarativeWidgetProxy<QDateEdit>(parent)
 {
index cbc125c..60fd0d7 100644 (file)
@@ -9,6 +9,7 @@
 #include <QtGui/QCalendarWidget>
 #include <QtGui/QCheckBox>
 #include <QtGui/QColorDialog>
+#include <QtGui/QCommandLinkButton>
 #include <QtGui/QDateTimeEdit>
 #include <QtGui/QDialog>
 #include <QtGui/QDialogButtonBox>
@@ -453,6 +454,14 @@ class DeclarativeColorDialog : public DeclarativeWidgetProxy<QColorDialog>
 
 QML_DECLARE_TYPEINFO(DeclarativeColorDialog, QML_HAS_ATTACHED_PROPERTIES)
 
+class DeclarativeCommandLinkButton : public DeclarativeWidgetProxy<QCommandLinkButton>
+{
+  DECLARATIVE_OBJECT
+
+  public:
+    DeclarativeCommandLinkButton(QObject *parent = 0);
+};
+
 class DeclarativeDateEdit : public DeclarativeWidgetProxy<QDateEdit>
 {
   DECLARATIVE_OBJECT
index 82094e3..069f18b 100644 (file)
@@ -49,6 +49,7 @@ DeclarativeWidgetDocument::DeclarativeWidgetDocument(const QUrl &url, QObject *p
   qmlRegisterType<DeclarativeCheckBox>("QtGui", 1, 0, "CheckBox");
   qmlRegisterType<DeclarativeColorDialogAttached>();
   qmlRegisterType<DeclarativeColorDialog>("QtGui", 1, 0, "ColorDialog");
+  qmlRegisterType<DeclarativeCommandLinkButton>("QtGui", 1, 0, "CommandLinkButton");
   qmlRegisterType<DeclarativeDateEdit>("QtGui", 1, 0, "DateEdit");
   qmlRegisterType<DeclarativeDateTimeEdit>("QtGui", 1, 0, "DateTimeEdit");
   qmlRegisterType<DeclarativeDialog>("QtGui", 1, 0, "Dialog");
index 4a3941a..c8cf24f 100644 (file)
@@ -24,6 +24,11 @@ TabWidget {
         text: qsTr("CheckBox")
       }
 
+      CommandLinkButton {
+        text: qsTr("CommandLinkButton")
+        description: qsTr("A short description")
+      }
+
       DialogButtonBox {
         standardButtons: DialogButtonBox.Save | DialogButtonBox.Cancel
       }
index bf25c5d..890637e 100644 (file)
@@ -10,7 +10,6 @@ qprogressdialog.h
 // widgets
 qcolumnview.h
 qcombobox.h
-qcommandlinkbutton.h
 qdial.h
 qdockwidget.h
 qfocusframe.h
@@ -23,7 +22,6 @@ qlistview.h
 qlistwidget.h
 qmdiarea.h
 qmdisubwindow.h
-qmessagebox.h
 qprintpreviewwidget.h
 qprogressbar.h
 qscrollarea.h