From eb35e93d792d7b558b2fb630fefd16427962c8bc Mon Sep 17 00:00:00 2001 From: Kevin Krammer Date: Wed, 9 Jan 2013 10:35:56 +0100 Subject: [PATCH] Don't need DeclarativePushButton any more Works with normal widget extension --- lib/declarativepushbutton.cpp | 29 ----------------------------- lib/declarativepushbutton_p.h | 36 ------------------------------------ lib/lib.pro | 2 -- 3 files changed, 0 insertions(+), 67 deletions(-) delete mode 100644 lib/declarativepushbutton.cpp delete mode 100644 lib/declarativepushbutton_p.h diff --git a/lib/declarativepushbutton.cpp b/lib/declarativepushbutton.cpp deleted file mode 100644 index 6c68abd..0000000 --- a/lib/declarativepushbutton.cpp +++ /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(parent) -{ - connectAllSignals(m_proxiedObject, this, QSet() << "clicked()"); -} - -CUSTOM_METAOBJECT(DeclarativePushButton, QPushButton) diff --git a/lib/declarativepushbutton_p.h b/lib/declarativepushbutton_p.h deleted file mode 100644 index 0c16c87..0000000 --- a/lib/declarativepushbutton_p.h +++ /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 - -class DeclarativePushButton : public DeclarativeWidgetProxy -{ - DECLARATIVE_OBJECT - - public: - explicit DeclarativePushButton(QObject *parent = 0); -}; - -#endif diff --git a/lib/lib.pro b/lib/lib.pro index 4757812..5630e8a 100644 --- a/lib/lib.pro +++ b/lib/lib.pro @@ -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 \ -- 1.7.2.5