Ported frame
authorKevin Krammer <kevin.krammer@kdab.com>
Mon, 21 Jan 2013 19:53:52 +0000 (20:53 +0100)
committerKevin Krammer <kevin.krammer@kdab.com>
Mon, 21 Jan 2013 19:53:52 +0000 (20:53 +0100)
lib/declarativeframe.cpp [deleted file]
lib/declarativeframe_p.h [deleted file]
lib/declarativewidgetsdocument.cpp
lib/lib.pro

diff --git a/lib/declarativeframe.cpp b/lib/declarativeframe.cpp
deleted file mode 100644 (file)
index 8b8418e..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
-  Copyright (C) 2012 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
-  Author: Kevin Krammer, krake@kdab.com
-  Author: Tobias Koenig, tokoe@kdab.com
-
-  This program is free software; you can redistribute it and/or modify
-  it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
-  (at your option) any later version.
-
-  This program is distributed in the hope that it will be useful,
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License along
-  with this program; if not, write to the Free Software Foundation, Inc.,
-  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-*/
-
-#include "declarativeframe_p.h"
-
-DeclarativeFrame::DeclarativeFrame(QObject *parent)
-  : DeclarativeWidgetProxy<QFrame>(parent)
-{
-  connectAllSignals(m_proxiedObject, this);
-}
-
-CUSTOM_METAOBJECT(DeclarativeFrame, QFrame)
diff --git a/lib/declarativeframe_p.h b/lib/declarativeframe_p.h
deleted file mode 100644 (file)
index 97b9db6..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
-  Copyright (C) 2012 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
-  Author: Kevin Krammer, krake@kdab.com
-  Author: Tobias Koenig, tokoe@kdab.com
-
-  This program is free software; you can redistribute it and/or modify
-  it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
-  (at your option) any later version.
-
-  This program is distributed in the hope that it will be useful,
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License along
-  with this program; if not, write to the Free Software Foundation, Inc.,
-  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-*/
-
-#ifndef DECLARATIVEFRAME_P_H
-#define DECLARATIVEFRAME_P_H
-
-#include "declarativewidgetproxy_p.h"
-
-#include <QFrame>
-
-class DeclarativeFrame : public DeclarativeWidgetProxy<QFrame>
-{
-  DECLARATIVE_OBJECT
-
-  public:
-    explicit DeclarativeFrame(QObject *parent = 0);
-};
-
-#endif
index aaa7f74..bb3639e 100644 (file)
@@ -35,7 +35,6 @@
 #include "declarativefiledialog_p.h"
 #include "declarativefontdialog_p.h"
 #include "declarativeformlayout_p.h"
-#include "declarativeframe_p.h"
 #include "declarativegridlayout_p.h"
 #include "declarativehboxlayout_p.h"
 #include "declarativeinputdialog_p.h"
@@ -116,7 +115,6 @@ DeclarativeWidgetsDocument::DeclarativeWidgetsDocument(const QUrl &url, QObject
   qmlRegisterType<DeclarativeDeclarativeView>("QtGui", 1, 0, "DeclarativeView");
   qmlRegisterType<DeclarativeDial>("QtGui", 1, 0, "Dial");
   qmlRegisterType<DeclarativeDoubleSpinBox>("QtGui", 1, 0, "DoubleSpinBox");
-  qmlRegisterType<DeclarativeFrame>("QtGui", 1, 0, "Frame");
   qmlRegisterType<DeclarativeLabel>("QtGui", 1, 0, "Label");
   qmlRegisterType<DeclarativeLCDNumber>("QtGui", 1, 0, "LCDNumber");
   qmlRegisterType<DeclarativePlainTextEdit>("QtGui", 1, 0, "PlainTextEdit");
@@ -156,6 +154,7 @@ DeclarativeWidgetsDocument::DeclarativeWidgetsDocument(const QUrl &url, QObject
   qmlRegisterExtendedType<Dialog, DeclarativeWidgetExtension>("QtGui", 1, 0, "Dialog");
   qmlRegisterExtendedType<QDialogButtonBox, DeclarativeWidgetExtension>("QtGui", 1, 0, "DialogButtonBox");
   qmlRegisterExtendedType<DeclarativeFileDialog, DeclarativeWidgetExtension>("QtGui", 1, 0, "FileDialog");
+  qmlRegisterExtendedType<QFrame, DeclarativeWidgetExtension>("QtGui", 1, 0, "Frame");
   qmlRegisterExtendedType<DeclarativeFontDialog, DeclarativeWidgetExtension>("QtGui", 1, 0, "FontDialog");
   qmlRegisterExtendedType<QGroupBox, DeclarativeWidgetExtension>("QtGui", 1, 0, "GroupBox");
   qmlRegisterExtendedType<DeclarativeInputDialog, DeclarativeWidgetExtension>("QtGui", 1, 0, "InputDialog");
index d490438..2e35888 100644 (file)
@@ -21,7 +21,6 @@ HEADERS = \
   declarativefiledialog_p.h \
   declarativefontdialog_p.h \
   declarativeformlayout_p.h \
-  declarativeframe_p.h \
   declarativegridlayout_p.h \
   declarativehboxlayout_p.h \
   declarativeinputdialog_p.h \
@@ -74,7 +73,6 @@ SOURCES = \
   declarativefiledialog.cpp \
   declarativefontdialog.cpp \
   declarativeformlayout.cpp \
-  declarativeframe.cpp \
   declarativegridlayout.cpp \
   declarativehboxlayout.cpp \
   declarativeinputdialog.cpp \