Ported slider
authorKevin Krammer <kevin.krammer@kdab.com>
Mon, 21 Jan 2013 19:40:51 +0000 (20:40 +0100)
committerKevin Krammer <kevin.krammer@kdab.com>
Mon, 21 Jan 2013 19:40:51 +0000 (20:40 +0100)
lib/declarativeslider.cpp [deleted file]
lib/declarativeslider_p.h [deleted file]
lib/declarativewidgetsdocument.cpp
lib/lib.pro

diff --git a/lib/declarativeslider.cpp b/lib/declarativeslider.cpp
deleted file mode 100644 (file)
index d22e39e..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 "declarativeslider_p.h"
-
-DeclarativeSlider::DeclarativeSlider(QObject *parent)
-  : DeclarativeWidgetProxy<QSlider>(parent)
-{
-  connectAllSignals(m_proxiedObject, this);
-}
-
-CUSTOM_METAOBJECT(DeclarativeSlider, QSlider)
diff --git a/lib/declarativeslider_p.h b/lib/declarativeslider_p.h
deleted file mode 100644 (file)
index 81cc965..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 DECLARATIVESLIDER_P_H
-#define DECLARATIVESLIDER_P_H
-
-#include "declarativewidgetproxy_p.h"
-
-#include <QSlider>
-
-class DeclarativeSlider : public DeclarativeWidgetProxy<QSlider>
-{
-  DECLARATIVE_OBJECT
-
-  public:
-    explicit DeclarativeSlider(QObject *parent = 0);
-};
-
-#endif
index 3ffc6e1..07b2801 100644 (file)
@@ -51,7 +51,6 @@
 #include "declarativescrollarea_p.h"
 #include "declarativescrollbar_p.h"
 #include "declarativeseparator_p.h"
-#include "declarativeslider_p.h"
 #include "declarativespinbox_p.h"
 #include "declarativestackedlayout_p.h"
 #include "declarativestackedwidget_p.h"
@@ -125,7 +124,6 @@ DeclarativeWidgetsDocument::DeclarativeWidgetsDocument(const QUrl &url, QObject
   qmlRegisterType<DeclarativeProgressBar>("QtGui", 1, 0, "ProgressBar");
   qmlRegisterType<DeclarativeScrollArea>("QtGui", 1, 0, "ScrollArea");
   qmlRegisterType<DeclarativeScrollBar>("QtGui", 1, 0, "ScrollBar");
-  qmlRegisterType<DeclarativeSlider>("QtGui", 1, 0, "Slider");
   qmlRegisterType<DeclarativeSpinBox>("QtGui", 1, 0, "SpinBox");
   qmlRegisterType<DeclarativeStackedWidget>("QtGui", 1, 0, "StackedWidget");
   qmlRegisterType<DeclarativeStatusBarAttached>();
@@ -171,6 +169,7 @@ DeclarativeWidgetsDocument::DeclarativeWidgetsDocument(const QUrl &url, QObject
   qmlRegisterExtendedType<DeclarativeMessageBox, DeclarativeWidgetExtension>("QtGui", 1, 0, "MessageBox");
   qmlRegisterExtendedType<QPushButton, DeclarativeWidgetExtension>("QtGui", 1, 0, "PushButton");
   qmlRegisterExtendedType<QRadioButton, DeclarativeWidgetExtension>("QtGui", 1, 0, "RadioButton");
+  qmlRegisterExtendedType<QSlider, DeclarativeWidgetExtension>("QtGui", 1, 0, "Slider");
   qmlRegisterExtendedType<DeclarativeStatusBar, DeclarativeStatusBarExtension>("QtGui", 1, 0, "StatusBar");
   qmlRegisterExtendedType<QTableView, DeclarativeItemViewExtension>("QtGui", 1, 0, "TableView");
   qmlRegisterExtendedType<DeclarativeTabWidget, DeclarativeTabWidgetExtension>("QtGui", 1, 0, "TabWidget");
index 833d98a..5d019cc 100644 (file)
@@ -41,7 +41,6 @@ HEADERS = \
   declarativescrollarea_p.h \
   declarativescrollbar_p.h \
   declarativeseparator_p.h \
-  declarativeslider_p.h \
   declarativespinbox_p.h \
   declarativestackedlayout_p.h \
   declarativestackedwidget_p.h \
@@ -94,7 +93,6 @@ SOURCES = \
   declarativescrollarea.cpp \
   declarativescrollbar.cpp \
   declarativeseparator.cpp \
-  declarativeslider.cpp \
   declarativespinbox.cpp \
   declarativestackedlayout.cpp \
   declarativestackedwidget.cpp \