Don't need DeclarativePushButton any more
authorKevin Krammer <kevin.krammer@kdab.com>
Wed, 9 Jan 2013 09:35:56 +0000 (10:35 +0100)
committerKevin Krammer <kevin.krammer@kdab.com>
Wed, 9 Jan 2013 11:29:19 +0000 (12:29 +0100)
Works with normal widget extension

lib/declarativepushbutton.cpp [deleted file]
lib/declarativepushbutton_p.h [deleted file]
lib/lib.pro

diff --git a/lib/declarativepushbutton.cpp b/lib/declarativepushbutton.cpp
deleted file mode 100644 (file)
index 6c68abd..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 "declarativepushbutton_p.h"
-
-DeclarativePushButton::DeclarativePushButton(QObject *parent)
-  : DeclarativeWidgetProxy<QPushButton>(parent)
-{
-  connectAllSignals(m_proxiedObject, this, QSet<QByteArray>() << "clicked()");
-}
-
-CUSTOM_METAOBJECT(DeclarativePushButton, QPushButton)
diff --git a/lib/declarativepushbutton_p.h b/lib/declarativepushbutton_p.h
deleted file mode 100644 (file)
index 0c16c87..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 DECLARATIVEPUSHBUTTON_P_H
-#define DECLARATIVEPUSHBUTTON_P_H
-
-#include "declarativewidgetproxy_p.h"
-
-#include <QPushButton>
-
-class DeclarativePushButton : public DeclarativeWidgetProxy<QPushButton>
-{
-  DECLARATIVE_OBJECT
-
-  public:
-    explicit DeclarativePushButton(QObject *parent = 0);
-};
-
-#endif
index 4757812..5630e8a 100644 (file)
@@ -45,7 +45,6 @@ HEADERS = \
   declarativeobjectproxy_p.h \
   declarativeplaintextedit_p.h \
   declarativeprogressbar_p.h \
-  declarativepushbutton_p.h \
   declarativeradiobutton_p.h \
   declarativescrollarea_p.h \
   declarativescrollbar_p.h \
@@ -112,7 +111,6 @@ SOURCES = \
   declarativeobjectextension.cpp \
   declarativeplaintextedit.cpp \
   declarativeprogressbar.cpp \
-  declarativepushbutton.cpp \
   declarativeradiobutton.cpp \
   declarativescrollarea.cpp \
   declarativescrollbar.cpp \