Ported lcd number
authorKevin Krammer <kevin.krammer@kdab.com>
Mon, 21 Jan 2013 20:18:58 +0000 (21:18 +0100)
committerKevin Krammer <kevin.krammer@kdab.com>
Mon, 21 Jan 2013 20:18:58 +0000 (21:18 +0100)
lib/declarativelcdnumber.cpp [deleted file]
lib/declarativelcdnumber_p.h [deleted file]
lib/declarativewidgetsdocument.cpp
lib/lib.pro

diff --git a/lib/declarativelcdnumber.cpp b/lib/declarativelcdnumber.cpp
deleted file mode 100644 (file)
index 4c8d30b..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 "declarativelcdnumber_p.h"
-
-DeclarativeLCDNumber::DeclarativeLCDNumber(QObject *parent)
-  : DeclarativeWidgetProxy<QLCDNumber>(parent)
-{
-  connectAllSignals(m_proxiedObject, this);
-}
-
-CUSTOM_METAOBJECT(DeclarativeLCDNumber, QLCDNumber)
diff --git a/lib/declarativelcdnumber_p.h b/lib/declarativelcdnumber_p.h
deleted file mode 100644 (file)
index 05a2706..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 DECLARATIVELCDNUMBER_P_H
-#define DECLARATIVELCDNUMBER_P_H
-
-#include "declarativewidgetproxy_p.h"
-
-#include <QLCDNumber>
-
-class DeclarativeLCDNumber : public DeclarativeWidgetProxy<QLCDNumber>
-{
-  DECLARATIVE_OBJECT
-
-  public:
-    explicit DeclarativeLCDNumber(QObject *parent = 0);
-};
-
-#endif
index 83582ed..d18069e 100644 (file)
@@ -34,7 +34,6 @@
 #include "declarativehboxlayout_p.h"
 #include "declarativeinputdialog_p.h"
 #include "declarativeitemviewextension_p.h"
-#include "declarativelcdnumber_p.h"
 #include "declarativemainwindowextension_p.h"
 #include "declarativemenubarextension_p.h"
 #include "declarativemenuextension_p.h"
@@ -67,6 +66,7 @@
 #include <QDoubleSpinBox>
 #include <QGroupBox>
 #include <QLabel>
+#include <QLCDNumber>
 #include <QListView>
 #include <QMainWindow>
 #include <QMenuBar>
@@ -109,7 +109,6 @@ DeclarativeWidgetsDocument::DeclarativeWidgetsDocument(const QUrl &url, QObject
   qmlRegisterType<DeclarativeContextProperty>("QtGui", 1, 0, "DeclarativeContextProperty");
   qmlRegisterType<DeclarativeDeclarativeView>("QtGui", 1, 0, "DeclarativeView");
   qmlRegisterType<DeclarativeLabel>("QtGui", 1, 0, "Label");
-  qmlRegisterType<DeclarativeLCDNumber>("QtGui", 1, 0, "LCDNumber");
   qmlRegisterType<DeclarativeProgressBar>("QtGui", 1, 0, "ProgressBar");
   qmlRegisterType<DeclarativeStatusBarAttached>();
   qmlRegisterType<DeclarativeTabWidgetAttached>();
@@ -152,6 +151,7 @@ DeclarativeWidgetsDocument::DeclarativeWidgetsDocument(const QUrl &url, QObject
   qmlRegisterExtendedType<DeclarativeInputDialog, DeclarativeWidgetExtension>("QtGui", 1, 0, "InputDialog");
   qmlRegisterExtendedType<QLabel, DeclarativeWidgetExtension>("QtGui", 1, 0, "Label");
   qmlRegisterExtendedType<QLineEdit, DeclarativeWidgetExtension>("QtGui", 1, 0, "LineEdit");
+  qmlRegisterExtendedType<QLCDNumber, DeclarativeWidgetExtension>("QtGui", 1, 0, "LCDNumber");
   qmlRegisterExtendedType<QListView, DeclarativeItemViewExtension>("QtGui", 1, 0, "ListView");
   qmlRegisterExtendedType<QMainWindow, DeclarativeMainWindowExtension>("QtGui", 1, 0, "MainWindow");
   qmlRegisterExtendedType<Menu, DeclarativeMenuExtension>("QtGui", 1, 0, "Menu");
index 6aed520..7419fbf 100644 (file)
@@ -22,7 +22,6 @@ HEADERS = \
   declarativeitemviewextension_p.h \
   declarativelayoutextension.h \
   declarativelayoutproxy_p.h \
-  declarativelcdnumber_p.h \
   declarativemainwindowextension_p.h \
   declarativemenubarextension_p.h \
   declarativemenuextension_p.h \
@@ -63,7 +62,6 @@ SOURCES = \
   declarativeinputdialog.cpp \
   declarativeitemviewextension.cpp \
   declarativelayoutextension.cpp \
-  declarativelcdnumber.cpp \
   declarativemainwindowextension.cpp \
   declarativemenubarextension.cpp \
   declarativemenuextension.cpp \