From: Kevin Krammer Date: Wed, 9 Jan 2013 09:35:56 +0000 (+0100) Subject: Don't need DeclarativePushButton any more X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=eb35e93d792d7b558b2fb630fefd16427962c8bc;p=web%2Fkonrad%2FDeclarativeWidgets.git Don't need DeclarativePushButton any more Works with normal widget extension --- 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 \