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

index a96a0d6..74fa375 100644 (file)
@@ -874,6 +874,14 @@ DeclarativeFontDialog::DeclarativeFontDialog(QObject *parent) : DeclarativeWidge
 
 CUSTOM_METAOBJECT(DeclarativeFontDialog, QFontDialog)
 
+// DeclarativeFrame
+DeclarativeFrame::DeclarativeFrame(QObject *parent) : DeclarativeWidgetProxy<QFrame>(parent)
+{
+  connectAllSignals(m_proxiedObject, this);
+}
+
+CUSTOM_METAOBJECT(DeclarativeFrame, QFrame)
+
 // DeclarativeInputDialog
 DeclarativeInputDialogAttached::DeclarativeInputDialogAttached(QObject *parent) : QObject(parent)
 {
index 89efa6d..b7b098c 100644 (file)
@@ -533,6 +533,14 @@ class DeclarativeFontDialog : public DeclarativeWidgetProxy<QFontDialog>
     DeclarativeFontDialog(QObject *parent = 0);
 };
 
+class DeclarativeFrame : public DeclarativeWidgetProxy<QFrame>
+{
+  DECLARATIVE_OBJECT
+
+  public:
+    DeclarativeFrame(QObject *parent = 0);
+};
+
 class DeclarativeInputDialogAttached : public QObject
 {
   Q_OBJECT
index e2ff173..026904a 100644 (file)
@@ -54,6 +54,7 @@ DeclarativeWidgetDocument::DeclarativeWidgetDocument(const QUrl &url, QObject *p
   qmlRegisterType<DeclarativeFileDialogAttached>();
   qmlRegisterType<DeclarativeFileDialog>("QtGui", 1, 0, "FileDialog");
   qmlRegisterType<DeclarativeFontDialog>("QtGui", 1, 0, "FontDialog");
+  qmlRegisterType<DeclarativeFrame>("QtGui", 1, 0, "Frame");
   qmlRegisterType<DeclarativeInputDialogAttached>();
   qmlRegisterType<DeclarativeInputDialog>("QtGui", 1, 0, "InputDialog");
   qmlRegisterType<DeclarativeLabel>("QtGui", 1, 0, "Label");
index f7b90b6..77a91a2 100644 (file)
@@ -7,5 +7,11 @@ Widget {
     LineEdit {
       onTextChanged: console.log("Types: " + text)
     }
+    Frame {
+      frameShape: Frame.Panel
+      frameShadow: Frame.Sunken
+      minimumWidth: 100
+      minimumHeight: 100
+    }
   }
 }
index 66d4d35..be37b09 100644 (file)
@@ -16,7 +16,6 @@ qdial.h
 qdockwidget.h
 qfocusframe.h
 qfontcombobox.h
-qframe.h
 qgraphicsview.h
 qgraphicswidget.h
 qgroupbox.h