From c3012d0e34a02fc85b0a5655e5776ed6dd8e69ae Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@theqtcompany.com> Date: Wed, 29 Apr 2015 11:13:32 +0200 Subject: [PATCH] QmlDesigner: Remove unused files Change-Id: I5038963f13ab82a58fddbf0dd95fa173d5f07424 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com> --- .../formeditor/formeditornodeinstanceview.cpp | 49 --- .../formeditor/formeditorsubwindow.cpp | 39 -- .../formeditor/manipulatorlayeritem.h | 40 -- .../componentsplugin/images/busyindicator.png | Bin 1145 -> 0 bytes .../images/busyindicator16.png | Bin 826 -> 0 bytes .../images/busyindicatora.png | Bin 767 -> 0 bytes .../images/busyindicatora16.png | Bin 670 -> 0 bytes .../exceptions/modificationgroupexception.cpp | 62 --- .../replaceallobjectdefinitionsvisitor.h | 60 --- .../include/widgetplugin_helper.h | 38 -- .../designercore/model/bytearraymodifier.cpp | 69 ---- .../model/modificationgrouptoken.cpp | 43 -- .../designercore/model/nodeanchors.cpp | 374 ------------------ .../model/objectpropertybinding.cpp | 56 --- .../designercore/model/propertybinding.cpp | 68 ---- 15 files changed, 898 deletions(-) delete mode 100644 src/plugins/qmldesigner/components/formeditor/formeditornodeinstanceview.cpp delete mode 100644 src/plugins/qmldesigner/components/formeditor/formeditorsubwindow.cpp delete mode 100644 src/plugins/qmldesigner/components/formeditor/manipulatorlayeritem.h delete mode 100644 src/plugins/qmldesigner/componentsplugin/images/busyindicator.png delete mode 100644 src/plugins/qmldesigner/componentsplugin/images/busyindicator16.png delete mode 100644 src/plugins/qmldesigner/componentsplugin/images/busyindicatora.png delete mode 100644 src/plugins/qmldesigner/componentsplugin/images/busyindicatora16.png delete mode 100644 src/plugins/qmldesigner/designercore/exceptions/modificationgroupexception.cpp delete mode 100644 src/plugins/qmldesigner/designercore/include/replaceallobjectdefinitionsvisitor.h delete mode 100644 src/plugins/qmldesigner/designercore/include/widgetplugin_helper.h delete mode 100644 src/plugins/qmldesigner/designercore/model/bytearraymodifier.cpp delete mode 100644 src/plugins/qmldesigner/designercore/model/modificationgrouptoken.cpp delete mode 100644 src/plugins/qmldesigner/designercore/model/nodeanchors.cpp delete mode 100644 src/plugins/qmldesigner/designercore/model/objectpropertybinding.cpp delete mode 100644 src/plugins/qmldesigner/designercore/model/propertybinding.cpp diff --git a/src/plugins/qmldesigner/components/formeditor/formeditornodeinstanceview.cpp b/src/plugins/qmldesigner/components/formeditor/formeditornodeinstanceview.cpp deleted file mode 100644 index 7083620226..0000000000 --- a/src/plugins/qmldesigner/components/formeditor/formeditornodeinstanceview.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "formeditornodeinstanceview.h" -#include "formeditorview.h" - -#include <modelnode.h> -#include <QDebug> - - -namespace QmlDesigner { - -FormEditorNodeInstanceView::FormEditorNodeInstanceView(QObject * parent) : NodeInstanceView(parent) -{ - -} - -FormEditorNodeInstanceView::~FormEditorNodeInstanceView() -{ -} - -} diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorsubwindow.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorsubwindow.cpp deleted file mode 100644 index 999d8c0ec8..0000000000 --- a/src/plugins/qmldesigner/components/formeditor/formeditorsubwindow.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "formeditorsubwindow.h" - -namespace QmlDesigner { - -FormEditorSubWindow::FormEditorSubWindow() -{ -} - -} // namespace QmlDesigner diff --git a/src/plugins/qmldesigner/components/formeditor/manipulatorlayeritem.h b/src/plugins/qmldesigner/components/formeditor/manipulatorlayeritem.h deleted file mode 100644 index de50498dc8..0000000000 --- a/src/plugins/qmldesigner/components/formeditor/manipulatorlayeritem.h +++ /dev/null @@ -1,40 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#ifndef MANIPULATORLAYERITEM_H -#define MANIPULATORLAYERITEM_H - -class ManipulatorLayerItem -{ -public: - ManipulatorLayerItem(); -}; - -#endif // MANIPULATORLAYERITEM_H diff --git a/src/plugins/qmldesigner/componentsplugin/images/busyindicator.png b/src/plugins/qmldesigner/componentsplugin/images/busyindicator.png deleted file mode 100644 index 3cf3c11ddbe4e08932efc2380e600982e7e3739d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1145 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4mJh`h6m-gKNuJoI14-?iy0WWg+Z8+Vb&Z8 z1_l;wPZ!4!kK<FrqJyKtMdFN`-v8wND_{HKiS0APnT|<TqJn3>7}jn&xuw=4eM{{N zR_ns9C6Wdg96K2o-BIQc71_B`!Ce0VYyOIgm2=i@J#6XvK}ddI;`_6=?r;AVRlT<M z!G{k5e0+QfrKO@u6E$l7-{rsaWJ!3^1?dpyR|~g9*@lGuU%8HlfB(vTrhC^~$)3wH zkXUn0{h9X9ntd@kVw-2rp1tbs-Pn`2Zq2GlPiH^%JJrI{vhnieV1~Ga<YeZigBP5I zRvdr5KW;j2+y28E1{s@gvh9t#zu^9Rc^?&_hhKtr&FN78*XyDbqapI>!oizCE5A&z zU~TkT%JlsC^9P@QR#jdS*RS(o`O~=XM9h<SfBqbrTVbPk>1Er&w`I->ANUtAtXaRl z``fo~?^29zo-f)trzkD0>{`;cg0SwXhbMmtTODd)ZOwe+)~%)xt*;I0+oSGh&-Dw} z?$eAhFc(i$V4Qxs^$DX|fQCrJp^0bH5>r!Ijb`>(Oh27{vF~!$R+&$B3r;xHTGYhN zfA`{rhs%*IhFz9FMH-(zO)V0-kS+Mk_4@tm=V$sXGkE6aQ}0p9c;|xCleqQbn`YkT zTyi<H$Bok<M>j)SX`j<Z4c4pgS4}rLc;lbXli$C8>*)WCkxROGqnAmdUgYG$voZ;C zH+;WT*wvi1=Dq*T&inF$h?xI#Shj87F8Se>qlr{&fkn+yhMS^Xt{T%%pOM>}&iBao zmy^H)b`2MWQbxXZ;YlY&xQ@<ZG1&Je%irJs@mD^kxM0R3u5<k7*A-t;nQ&g8d%=xK z%UxE~FBWI%n2_Z6Kd{lPNqoV5ZegJbrKj{3eAbq<dG|x8?(b9cX@5TC%$Vz@_nvL( zBKE2&{<8{JI`CfTm6ld~Kk4y$rjjUG2_81Hcau)eJdwI%YeUdN7T4{Io+X|?UOH#; zhtwTm3k+R0ozr_!@kQd6YLH5p(H8Gp4<~L}EOzLeT8wtU{FE%lil+~zJ`>$?cennL z9dF~LGfbqerEMsR)V=aJin0H=GQ)0lZ8@)3u8qHS<c$|fO32So*nawH5%-GcYqYl{ z1uxur@yFd6l5P6J2exk9Sl%-s=jD>6m&{h@>DWDbG|#?z-mx&lfNW95g`qO?@`oQi zQo8Y$Z$reIaIOd)v9!$_Hk`P{9cmQ%b;^DJm^%j!$m=I&W_o6ny{P2g7F(9{%DHU! z-!#VAbGM4Dz8aNX5v^+@e{N~R`bjh54>(<VSgd}DCsRSLyMB{{ju`XSsNUuGg?;O0 zT={5uBDMI@GWPV6ln`sHq%7Y={vwM!zKP7vQ+(78X2@ikO7-5ddf)l^@np~Dl`B`? z`*oas{(igLEpPMIw#IaFZZVvFw)Sgvc1+K7+h0>8W+kNORDH?szSYkB`0(|Q|JQT9 zYTB~m`s<^Q-yc`~``3P@l(~7;`Sp`^<9ImhYC9^69;r6|XLxYif_Y`n=iLkp3=E#G KelF{r5}E*n^Bzh7 diff --git a/src/plugins/qmldesigner/componentsplugin/images/busyindicator16.png b/src/plugins/qmldesigner/componentsplugin/images/busyindicator16.png deleted file mode 100644 index 15e7f442a6ba6bed24dfab8a5ff7459f760c3bd3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 826 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7I14-?iy0WWg+Z8+Vb&Z8 z1_q`#o-U3d7XGEdx&D(9MfTZk`RVxIF*-gcXX{IUje5`M+86pyxbwSy#C7TWvQ7#Y z&D9PrQ0rj*)gZNlle;p|VJ63^n5>Lt{?9k0?s|3jDBts#=ey3=-hJM9GsVqB>gbuC zzbpM#m%rR%b^gPJ4?B-0o%OAs;a9Quo=b-Emib=G&Ru@_#maHo>8J0X7Fo*3$S^Fv z7TDsnP^x#C`QotcGW+YzP4{it^5@RmxSEvhw^vV}-ukM-=3hmA{(DZ@B_DtPxxZ(= zt@X{EZOZ~Q7@C`%&u@vk+jla<PvGanssh>QPTe1WwN0+_c<`(Y;qtk6&rfOcNt+K9 zHYZoET<K#se}DH!!`sW3xlQ$8@wAX>+n}ScOR`nr$2!(YCsp|P`33vcy^`n8n|DwC zMSZLQi(~7$bJM;3mY*&tEp=62D)>{%(MIgQ_k$NNIBveN^YiOd>{5!+3lCqs$+IQs zV#F1`*I{SVyk{QGX^s2N7WZC=sWHK`VO{IrJ9dW_8hrU>p1}7rY}xf!`%f(Sq;%!1 zZn{WE>DI5JELZlecr2r)e*e(J4U=bxpQ}`ly0UhuRPhY$>00Yvyt?mbe>83Ct`%8X zdg=|1mJ>9pOlx1%T@B6(IWg7dZT^&E`Nb*@>PDx2KAHVMO>Ec2AO4NTX3l!SVFk@j z_c&&8Oxb<)$kt!G+U&z8Xu8b$#v>x~)#~r78!sYe=H6jjeYES^v~AJK#b<;idDT|+ zAIjM@W#h*`3>o>aIWA3>(9^HK<aK<*wq0%i_Az=$r(9=}DbAakHG7M)xVZR(<?l1z z^K3e-rPR4aLuh|K>*l_j|G93w<>RoE=lfLI>9kBFb{(sz(nJr{+^c;T6MW9pmxSr= z5_kOn-sFn+>6<!i$LB;B>^3wv4>vVR@|f_zPe*LE%dBrU0vuPqlw^O(dDfDf)bhx5 zSNX|Qw&Qa)-^@`ylbB~9vF7I8yR6%`Z`-(WBjfhlx{8yR<gR_2SoED;m+$?ttsKvH mq?ycG@@1*lj&}P^@kgWGDqCYpIT;uj7(8A5T-G@yGywqh1cB=S diff --git a/src/plugins/qmldesigner/componentsplugin/images/busyindicatora.png b/src/plugins/qmldesigner/componentsplugin/images/busyindicatora.png deleted file mode 100644 index 4cd7ad590a496e69462e97811fa20f658354ab74..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 767 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4mJh`h6m-gKNuJoI14-?iy0XB4ude`@%$Aj z3=B*gJzX3_JdP*-`2XLYS=aFJm6ewzrs>BYEco!i@u}}@Gyj<uiH{y`y0q!=)TvWd z9&XyS>G0*{zV=%Z|NdH~+CBZl-QDH<Ne3St^_IA{Hafrf>#3>y+w<@K`v2nL;s5^g zZ5kgP=lGVaVm70HLOqjcb;19C^%EqkzrWe}<-tK_&kd~8^<p<!*8ci(miagT-{op{ zrJtS%MF^aoWtn`fJ}O}YtDKx1_eIq{S=(QA7Z)966%!Mirlh2FEMnt|6&p1Ko<DoG zEAPgJ#Ahpmmv4xE@cgy8y@kaSdn3EjS0yq5jLe!9-{0MhzHpW?dV;|GhD1gK*AwBP zp~f28+Qtu<dwP0!^z`(2G&MDOrixB=?c?(+Fm}k<z#14B_}Nh=WzD*EdP^59IIv*p z(xVC*8XcFJEG;eB7DTaWW@@t4*Z;REDLx?9(%PCBv0(jr{k1Dsa&B{oj-K5(f4=<T zr&3Z<JkOpz<5{+B8IQwPo{54Je@5tL<YXM#uwcm&mt8AXbSzx4V#dN9J6aa**)!+h zi4z<-7Q({9&Lt%#&e74<&d$!t64$Sr8<dolC2n7^e7X4Hrf=W)GAA$^@H}bW*x9Lh z;rK%ZTOM8AwFP(X+&OgN>eb%6Obb}rSRH&XDfpg{NC|LvSHGcDvUAz8v^#bR*O+P~ z*0bK-vW;Ojf5WULj<Yh-7y~w%2pDhKwoNeAF*#ZIM3c-S-5JK|>rU>e{JhakW7p~3 zyQ>elvTnGLb1;kXLK+Wu+WC2#v)|pRoTRHO;9T&KZNcg4>faL6^kTE@i=VAAkI;Sb z`gMGho}(_$YW`K3SqE=zeSJh+FT$fV{>&UhWAU7W2b<d^!q!HeH7-4M<?0n9nHdgN z+w<<8;@Fn({~t4tcKEs^hHV@o>1XF$HO;*A<mZ8DtdSL;mYn>&%zu91hJ=GoaSL1@ cgt0Pwk4y{-OL2U~z`(%Z>FVdQ&MBb@0Fnb-wEzGB diff --git a/src/plugins/qmldesigner/componentsplugin/images/busyindicatora16.png b/src/plugins/qmldesigner/componentsplugin/images/busyindicatora16.png deleted file mode 100644 index 2e6083c1c81ecacb58ce16a33657741083cb117d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 670 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7I14-?iy0XB4ude`@%$Aj z3=B*Go-U3d7N=_`+vW>93bZ}{_N}I{=y`vH#-z0kK8}tPTvaq0n)FmveS0RnSWw{F z+#tjiHASobz&}QhLRXdF>;Veg9KBOdSg@Sjcli6%+q;v~{wm&fl+4caUp}||er4L) zEw^(&*t`!DU^(AkCnM^rqU0L*pnjqX=aL}Jy3*p$voq7|#JrEng@=YlU;Mhf)#+iO z+2oT)C8l#4@QCbGUbN!)j8C2Jg@3f>pWnYkNO!vQdlyEv$&6OBI42l9mkHLc-1q&U zR8)E7=LZiK3J3<AbC+nFmwS8pX+0;!1EsMA|N6dczMp=5NAAt%({ddv<d}9<)>r)a z`SspCxgY!d%a$hv=uKZ3w))`LqMbA2<L?*Bitjlf9^>kL_+dcan(MFcThHZNayc_I z{Ibc<yUvDhq@&h~&5@b^=gz?mI?{6{GRrtNm~Lqd`%`$>U_sDIhwZmp>-Os(y!ev; z-QDA6tQnfU{A|nx8+h$G8m4!t7R;T<QeIsxotKyE8F0mEaiDrhz}>s8Q@?0&<g~_2 zWZ?7e`rP8S&19QKm&5ha6=Cx|3}sANG%O?+>rC@x;<9`8+{QO4A<0^#;-nZ~z_YMv zI`^i`5VI;3b@V&Rp}^^vqkm?$KUZUm(aoG`Z-m!8RhZ~=Y{~DWzVhapBAsVP9GC*H zid*!?YZS~n6FIjtV`bN(4);P6<AWB5ekoV0RXE)_@SSZ^-vg#7g$X(TwD+~XId$xq zwaRbRnFp5qUT?H))te-r?&C3EmL*F4{*wQvOWp49z55GF56K;Vx^PiV{@IA?>{-V? a+Rs(jPEM<wJB@*Xfx*+&&t;ucLK6Tul`13v diff --git a/src/plugins/qmldesigner/designercore/exceptions/modificationgroupexception.cpp b/src/plugins/qmldesigner/designercore/exceptions/modificationgroupexception.cpp deleted file mode 100644 index 3272462a71..0000000000 --- a/src/plugins/qmldesigner/designercore/exceptions/modificationgroupexception.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "modificationgroupexception.h" - -/*! -\class QmlDesigner::ModificationGroupException -\ingroup CoreExceptions -\brief The ModificationGroupException class provides an exception for a -modification group. - -*/ -namespace QmlDesigner { -/*! - Constructs an exception. \a line uses the __LINE__ macro, - \a function uses the __FUNCTION__ or the Q_FUNC_INFO macro, and \a file uses - the __FILE__ macro. -*/ -ModificationGroupException::ModificationGroupException(int line, - const QString &function, - const QString &file) - : Exception(line, function, file) -{ - createWarning(); -} - -/*! - Returns the type of the exception as a string. -*/ -QString ModificationGroupException::type() const -{ - return "ModificationGroupException"; -} - -} diff --git a/src/plugins/qmldesigner/designercore/include/replaceallobjectdefinitionsvisitor.h b/src/plugins/qmldesigner/designercore/include/replaceallobjectdefinitionsvisitor.h deleted file mode 100644 index a9e9bbc41a..0000000000 --- a/src/plugins/qmldesigner/designercore/include/replaceallobjectdefinitionsvisitor.h +++ /dev/null @@ -1,60 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#ifndef REPLACEALLOBJECTDEFINITIONSVISITOR_H -#define REPLACEALLOBJECTDEFINITIONSVISITOR_H - -#include "qmlrewriter.h" - -namespace QmlDesigner { -namespace Internal { - -class ReplaceAllObjectDefinitionsVisitor: public QMLRewriter -{ -public: - ReplaceAllObjectDefinitionsVisitor(TextModifier &textModifier, - const TextLocation &objectLocation, - const QString &newContent); - -protected: - virtual bool visit(QmlJS::AST::UiObjectDefinition *ast); - virtual bool visit(QmlJS::AST::UiObjectBinding *ast); - -private: - void replaceMembers(QmlJS::AST::UiObjectInitializer *initializer); - -private: - QString m_newContent; -}; - -} // namespace Internal -} // namespace QmlDesigner - -#endif // REPLACEALLOBJECTDEFINITIONSVISITOR_H diff --git a/src/plugins/qmldesigner/designercore/include/widgetplugin_helper.h b/src/plugins/qmldesigner/designercore/include/widgetplugin_helper.h deleted file mode 100644 index 40f45d550f..0000000000 --- a/src/plugins/qmldesigner/designercore/include/widgetplugin_helper.h +++ /dev/null @@ -1,38 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#ifndef WIDGETPLUGIN_HELPER_H -#define WIDGETPLUGIN_HELPER_H - -#define QMLDESIGNER_REGISTER_WIDGET(TYPE) uiEngine->addObjectCreator(new QUiWidgetCreator<TYPE>(QStringLiteral(#TYPE))); -#define QMLDESIGNER_REGISTER_GRAPHICSWIDGET(TYPE) uiEngine->addObjectCreator(new QUiGraphicsWidgetCreator<TYPE>(QStringLiteral(#TYPE))); - -#endif //WIDGETPLUGIN_HELPER - diff --git a/src/plugins/qmldesigner/designercore/model/bytearraymodifier.cpp b/src/plugins/qmldesigner/designercore/model/bytearraymodifier.cpp deleted file mode 100644 index cc2451ee80..0000000000 --- a/src/plugins/qmldesigner/designercore/model/bytearraymodifier.cpp +++ /dev/null @@ -1,69 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "bytearraymodifier.h" - -namespace QmlDesigner { - -ByteArrayModifier::ByteArrayModifier(QPlainTextEdit* textEdit): - PlainTextEditModifier(textEdit), - m_textEdit(textEdit) -{ -} - -ByteArrayModifier::~ByteArrayModifier() -{ - delete m_textEdit; -} - -void ByteArrayModifier::undo() -{ - m_textEdit->undo(); -} - -void ByteArrayModifier::redo() -{ - m_textEdit->redo(); -} - -ByteArrayModifier* ByteArrayModifier::create(const QString& data) -{ - QPlainTextEdit* edit = new QPlainTextEdit; - edit->setPlainText(data); - return new ByteArrayModifier(edit); -} - -void ByteArrayModifier::setText(const QString& text) -{ - m_textEdit->setPlainText(text); - emit textChanged(); -} - -} diff --git a/src/plugins/qmldesigner/designercore/model/modificationgrouptoken.cpp b/src/plugins/qmldesigner/designercore/model/modificationgrouptoken.cpp deleted file mode 100644 index 4330f9ec96..0000000000 --- a/src/plugins/qmldesigner/designercore/model/modificationgrouptoken.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "modificationgrouptoken.h" - -namespace QmlDesigner { - -long ModificationGroupToken::uniqueNumberCounter = 0; - -ModificationGroupToken::ModificationGroupToken(unsigned depth): - m_depth(depth), - m_uniqueNumber(++uniqueNumberCounter) -{ -} - -} diff --git a/src/plugins/qmldesigner/designercore/model/nodeanchors.cpp b/src/plugins/qmldesigner/designercore/model/nodeanchors.cpp deleted file mode 100644 index 16f932648d..0000000000 --- a/src/plugins/qmldesigner/designercore/model/nodeanchors.cpp +++ /dev/null @@ -1,374 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -//#include "nodeanchors.h" -// -//#include <model.h> -//#include <modelnode.h> -// -//#include "internalnode_p.h" -//#include "internalnodeanchors.h" -//#include "internalnodestate.h" -//#include "invalidargumentexception.h" -// -//using namespace QmlDesigner::Internal; -// -//namespace QmlDesigner { -// -///*! -//\class QmlDesigner::NodeAnchors -//\ingroup CoreModel -//\brief NodeAnchors is a value holder for an anchor -//*/ -// -//NodeAnchors::NodeAnchors(const NodeState &nodeState): -// m_internalNode(nodeState.m_internalNode), -// m_internalNodeState(nodeState.m_internalNodeState), -// m_model(nodeState.m_model) -//{ -//} -// -//NodeAnchors::~NodeAnchors() -//{ -//} -// -//NodeAnchors::NodeAnchors(const NodeAnchors &other) -// :m_internalNode(other.m_internalNode), -// m_model(other.m_model) -//{ -// -//} -// -//NodeAnchors::NodeAnchors(const Internal::InternalNodeStatePointer &internalNodeState, Model *model): -// m_internalNode(internalNodeState->modelNode()), -// m_internalNodeState(internalNodeState), -// m_model(model) -//{ -//} -// -//NodeAnchors &NodeAnchors::operator=(const NodeAnchors &other) -//{ -// m_internalNode = other.m_internalNode; -// m_internalNodeState = other.m_internalNodeState; -// m_model = other.m_model; -// -// return *this; -//} -// -//ModelNode NodeAnchors::modelNode() const -//{ -// return ModelNode(m_internalNode, m_model.data()); -//} -// -//bool NodeAnchors::isValid() const -//{ -// return m_internalNode->isValid() -// && m_internalNodeState->isValid() && -// m_model; -//} -// -//NodeState NodeAnchors::nodeState() const -//{ -// return NodeState(m_internalNodeState, m_internalNode, m_model.data()); -//} -// -//void NodeAnchors::setAnchor(AnchorLine::Type sourceAnchorLineType, -// const ModelNode &targetModelNode, -// AnchorLine::Type targetAnchorLineType) -//{ -// Q_ASSERT(m_internalNode->isValid()); -// Q_ASSERT(m_internalNodeState->isValid()); -// Q_ASSERT(modelNode().isValid()); -// -// m_model->setAnchor(AnchorLine(nodeState(), sourceAnchorLineType), -// AnchorLine(targetModelNode.baseNodeState(), targetAnchorLineType)); -//} -// -//bool NodeAnchors::canAnchor(AnchorLine::Type sourceAnchorLineType, -// const ModelNode & targetModelNode, -// AnchorLine::Type targetAnchorLineType) const -//{ -// if (modelNode() == targetModelNode) -// return false; -// -// return InternalNodeAnchors(m_internalNodeState).canAnchor(sourceAnchorLineType, targetModelNode.baseNodeState().internalNodeState(), targetAnchorLineType); -//} -// -//bool NodeAnchors::canAnchor(const ModelNode & targetModelNode) const -//{ -// if (modelNode() == targetModelNode) -// return false; -// -// if (possibleAnchorLines(AnchorLine::Left, targetModelNode) != AnchorLine::NoAnchor) -// return true; -// else if (possibleAnchorLines(AnchorLine::Top, targetModelNode) != AnchorLine::NoAnchor) -// return true; -// else if (possibleAnchorLines(AnchorLine::Right, targetModelNode) != AnchorLine::NoAnchor) -// return true; -// else if (possibleAnchorLines(AnchorLine::Bottom, targetModelNode) != AnchorLine::NoAnchor) -// return true; -// else if (possibleAnchorLines(AnchorLine::HorizontalCenter, targetModelNode) != AnchorLine::NoAnchor) -// return true; -// else -// return possibleAnchorLines(AnchorLine::VerticalCenter, targetModelNode) != AnchorLine::NoAnchor; -//} -// -//AnchorLine::Type NodeAnchors::possibleAnchorLines(AnchorLine::Type sourceAnchorLineType, -// const ModelNode & targetModelNode) const -//{ -// if (modelNode() == targetModelNode) -// return AnchorLine::NoAnchor; -// -// int anchorTypes = AnchorLine::NoAnchor; -// const InternalNodeAnchors anchors(m_internalNodeState); -// -// if (sourceAnchorLineType & AnchorLine::HorizontalMask) { -// if (anchors.canAnchor(sourceAnchorLineType, targetModelNode.baseNodeState().internalNodeState(), AnchorLine::Left)) -// anchorTypes |= AnchorLine::Left; -// if (anchors.canAnchor(sourceAnchorLineType, targetModelNode.baseNodeState().internalNodeState(), AnchorLine::Right)) -// anchorTypes |= AnchorLine::Right; -// if (anchors.canAnchor(sourceAnchorLineType, targetModelNode.baseNodeState().internalNodeState(), AnchorLine::HorizontalCenter)) -// anchorTypes |= AnchorLine::HorizontalCenter; -// } else if (sourceAnchorLineType & AnchorLine::VerticalMask) { -// if (anchors.canAnchor(sourceAnchorLineType, targetModelNode.baseNodeState().internalNodeState(), AnchorLine::Top)) -// anchorTypes |= AnchorLine::Top; -// if (anchors.canAnchor(sourceAnchorLineType, targetModelNode.baseNodeState().internalNodeState(), AnchorLine::Bottom)) -// anchorTypes |= AnchorLine::Bottom; -// if (anchors.canAnchor(sourceAnchorLineType, targetModelNode.baseNodeState().internalNodeState(), AnchorLine::VerticalCenter)) -// anchorTypes |= AnchorLine::VerticalCenter; -// } -// -// return (AnchorLine::Type) anchorTypes; -//} -// -//AnchorLine NodeAnchors::localAnchor(AnchorLine::Type anchorLineType) const -//{ -// return InternalNodeAnchors(m_internalNodeState).anchor(anchorLineType); -//} -// -//AnchorLine NodeAnchors::anchor(AnchorLine::Type anchorLineType) const -//{ -// Internal::InternalNodeState::Pointer statePointer(m_internalNodeState); -// AnchorLine anchorLine = InternalNodeAnchors(statePointer).anchor(anchorLineType); -// -// while (!anchorLine.isValid() && statePointer->hasParentState()) { -// statePointer = statePointer->parentState(); -// anchorLine = InternalNodeAnchors(statePointer).anchor(anchorLineType); -// } -// -// return anchorLine; -//} -// -//bool NodeAnchors::hasAnchor(AnchorLine::Type sourceAnchorLineType) const -//{ -// Internal::InternalNodeState::Pointer statePointer(m_internalNodeState); -// InternalNodeAnchors internalNodeAnchors(statePointer); -// while (!internalNodeAnchors.hasAnchor(sourceAnchorLineType) && -// statePointer->hasParentState()) { -// statePointer = statePointer->parentState(); -// internalNodeAnchors = InternalNodeAnchors(statePointer); -// } -// -// return internalNodeAnchors.hasAnchor(sourceAnchorLineType); -//} -// -//void NodeAnchors::removeAnchor(AnchorLine::Type sourceAnchorLineType) -//{ -// if (hasLocalAnchor(sourceAnchorLineType)) -// m_model->removeAnchor(AnchorLine(nodeState(), sourceAnchorLineType)); -//} -// -//void NodeAnchors::removeMargins() -//{ -// removeMargin(AnchorLine::Left); -// removeMargin(AnchorLine::Right); -// removeMargin(AnchorLine::Top); -// removeMargin(AnchorLine::Bottom); -// removeMargin(AnchorLine::HorizontalCenter); -// removeMargin(AnchorLine::VerticalCenter); -// removeMargin(AnchorLine::Baseline); -//} -// -//void NodeAnchors::removeAnchors() -//{ -// removeAnchor(AnchorLine::Left); -// removeAnchor(AnchorLine::Right); -// removeAnchor(AnchorLine::Top); -// removeAnchor(AnchorLine::Bottom); -// removeAnchor(AnchorLine::HorizontalCenter); -// removeAnchor(AnchorLine::VerticalCenter); -// removeAnchor(AnchorLine::Baseline); -//} -// -//bool NodeAnchors::hasLocalAnchor(AnchorLine::Type sourceAnchorLineType) const -//{ -// return InternalNodeAnchors(m_internalNodeState).hasAnchor(sourceAnchorLineType); -//} -// -//bool NodeAnchors::hasLocalAnchors() const -//{ -// return hasLocalAnchor(AnchorLine::Top) || -// hasLocalAnchor(AnchorLine::Bottom) || -// hasLocalAnchor(AnchorLine::Left) || -// hasLocalAnchor(AnchorLine::Right) || -// hasLocalAnchor(AnchorLine::VerticalCenter) || -// hasLocalAnchor(AnchorLine::HorizontalCenter) || -// hasLocalAnchor(AnchorLine::Baseline); -//} -// -//bool NodeAnchors::hasAnchors() const -//{ -// return hasAnchor(AnchorLine::Top) || -// hasAnchor(AnchorLine::Bottom) || -// hasAnchor(AnchorLine::Left) || -// hasAnchor(AnchorLine::Right) || -// hasAnchor(AnchorLine::VerticalCenter) || -// hasAnchor(AnchorLine::HorizontalCenter) || -// hasAnchor(AnchorLine::Baseline); -//} -// -//void NodeAnchors::setMargin(AnchorLine::Type sourceAnchorLineType, double margin) const -//{ -// m_model->setAnchorMargin(AnchorLine(nodeState(), sourceAnchorLineType), margin); -//} -// -//bool NodeAnchors::hasMargin(AnchorLine::Type sourceAnchorLineType) const -//{ -// return InternalNodeAnchors(m_internalNodeState).hasMargin(sourceAnchorLineType); -//} -// -//double NodeAnchors::localMargin(AnchorLine::Type sourceAnchorLineType) const -//{ -// return InternalNodeAnchors(m_internalNodeState).margin(sourceAnchorLineType); -//} -// -//double NodeAnchors::margin(AnchorLine::Type sourceAnchorLineType) const -//{ -// Internal::InternalNodeState::Pointer statePointer(m_internalNodeState); -// InternalNodeAnchors internalNodeAnchors(statePointer); -// while (!internalNodeAnchors.hasMargin(sourceAnchorLineType) && -// statePointer->hasParentState()) { -// statePointer = statePointer->parentState(); -// internalNodeAnchors = InternalNodeAnchors(statePointer); -// } -// -// return internalNodeAnchors.margin(sourceAnchorLineType); -//} -// -//void NodeAnchors::removeMargin(AnchorLine::Type sourceAnchorLineType) -//{ -// m_model->removeAnchorMargin(AnchorLine(nodeState(), sourceAnchorLineType)); -// -//} -// -//QDebug operator<<(QDebug debug, const NodeAnchors &anchors) -//{ -// debug.nospace() << "NodeAnchors("; -// if (anchors.isValid()) { -// if (anchors.hasAnchor(AnchorLine::Top)) -// debug << "top"; -// if (anchors.hasMargin(AnchorLine::Top)) -// debug.nospace() << "(" << anchors.margin(AnchorLine::Top) << ")"; -// if (anchors.hasAnchor(AnchorLine::Bottom)) -// debug << "bottom"; -// if (anchors.hasMargin(AnchorLine::Bottom)) -// debug.nospace() << "(" << anchors.margin(AnchorLine::Bottom) << ")"; -// if (anchors.hasAnchor(AnchorLine::Left)) -// debug << "left"; -// if (anchors.hasMargin(AnchorLine::Left)) -// debug.nospace() << "(" << anchors.margin(AnchorLine::Left) << ")"; -// if (anchors.hasAnchor(AnchorLine::Right)) -// debug << "right"; -// if (anchors.hasMargin(AnchorLine::Right)) -// debug.nospace() << "(" << anchors.margin(AnchorLine::Right) << ")"; -// if (anchors.hasAnchor(AnchorLine::VerticalCenter)) -// debug << "verticalCenter"; -// if (anchors.hasMargin(AnchorLine::VerticalCenter)) -// debug.nospace() << "(" << anchors.margin(AnchorLine::VerticalCenter) << ")"; -// if (anchors.hasAnchor(AnchorLine::HorizontalCenter)) -// debug << "horizontalCenter"; -// if (anchors.hasMargin(AnchorLine::HorizontalCenter)) -// debug.nospace() << "(" << anchors.margin(AnchorLine::HorizontalCenter) << ")"; -// if (anchors.hasAnchor(AnchorLine::Baseline)) -// debug << "baseline"; -// if (anchors.hasMargin(AnchorLine::Baseline)) -// debug.nospace() << "(" << anchors.margin(AnchorLine::Baseline) << ")"; -// } else { -// debug.nospace() << "invalid"; -// } -// -// debug.nospace() << ")"; -// -// return debug.space(); -//} -// -//QTextStream& operator<<(QTextStream &stream, const NodeAnchors &anchors) -//{ -// stream << "NodeAnchors("; -// if (anchors.isValid()) { -// if (anchors.hasAnchor(AnchorLine::Top)) -// stream << "top"; -// if (anchors.hasMargin(AnchorLine::Top)) -// stream << "(" << anchors.margin(AnchorLine::Top) << ")"; -// if (anchors.hasAnchor(AnchorLine::Bottom)) -// stream << "bottom"; -// if (anchors.hasMargin(AnchorLine::Bottom)) -// stream << "(" << anchors.margin(AnchorLine::Bottom) << ")"; -// if (anchors.hasAnchor(AnchorLine::Left)) -// stream << "left"; -// if (anchors.hasMargin(AnchorLine::Left)) -// stream << "(" << anchors.margin(AnchorLine::Left) << ")"; -// if (anchors.hasAnchor(AnchorLine::Right)) -// stream << "right"; -// if (anchors.hasMargin(AnchorLine::Right)) -// stream << "(" << anchors.margin(AnchorLine::Right) << ")"; -// if (anchors.hasAnchor(AnchorLine::VerticalCenter)) -// stream << "verticalCenter"; -// if (anchors.hasMargin(AnchorLine::VerticalCenter)) -// stream << "(" << anchors.margin(AnchorLine::VerticalCenter) << ")"; -// if (anchors.hasAnchor(AnchorLine::HorizontalCenter)) -// stream << "horizontalCenter"; -// if (anchors.hasMargin(AnchorLine::HorizontalCenter)) -// stream << "(" << anchors.margin(AnchorLine::HorizontalCenter) << ")"; -// if (anchors.hasAnchor(AnchorLine::Baseline)) -// stream << "baseline"; -// if (anchors.hasMargin(AnchorLine::Baseline)) -// stream << "(" << anchors.margin(AnchorLine::Baseline) << ")"; -// } else { -// stream << "invalid"; -// } -// -// stream << ")"; -// -// return stream; -//} -// -// -//} // namespace QmlDesigner diff --git a/src/plugins/qmldesigner/designercore/model/objectpropertybinding.cpp b/src/plugins/qmldesigner/designercore/model/objectpropertybinding.cpp deleted file mode 100644 index 23a19b463f..0000000000 --- a/src/plugins/qmldesigner/designercore/model/objectpropertybinding.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "objectpropertybinding.h" - -namespace QmlDesigner { - -ObjectPropertyBinding::ObjectPropertyBinding() -{ -} - -ObjectPropertyBinding::ObjectPropertyBinding(const ModelNode &node) - : m_node(node) -{ - -} - -ModelNode ObjectPropertyBinding::modelNode() const -{ - return m_node; -} - -bool ObjectPropertyBinding::isValid() const -{ - return m_node.isValid(); -} - - -} // namespace QmlDesigner diff --git a/src/plugins/qmldesigner/designercore/model/propertybinding.cpp b/src/plugins/qmldesigner/designercore/model/propertybinding.cpp deleted file mode 100644 index ec2f2b6cbb..0000000000 --- a/src/plugins/qmldesigner/designercore/model/propertybinding.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "propertybinding.h" -#include "invalidpropertyexception.h" - -namespace QmlDesigner { - -PropertyBinding::PropertyBinding() -{ -} - -PropertyBinding::PropertyBinding(const QString &value): - m_value(value) -{ -} - -PropertyBinding::PropertyBinding(const PropertyBinding &other): - m_value(other.m_value) -{ -} - -PropertyBinding &PropertyBinding::operator=(const PropertyBinding &other) -{ - m_value = other.m_value; - - return *this; -} - -bool PropertyBinding::isValid() const -{ - return !m_value.isEmpty(); -} - -QString PropertyBinding::value() const -{ - return m_value; -} - - -} // namespace QmlDesigner -- GitLab