From: Ivailo Monev Date: Wed, 25 Dec 2019 18:39:35 +0000 (+0000) Subject: remove uic3 leftovers X-Git-Tag: 4.12.0~4552 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5ab0bd19cf62506fdcc805b0614a33cfc9569b6a;p=kde%2FKatie.git remove uic3 leftovers Signed-off-by: Ivailo Monev --- diff --git a/src/designer/data/generate_header.xsl b/src/designer/data/generate_header.xsl index ad0a36c01..33da0dc28 100644 --- a/src/designer/data/generate_header.xsl +++ b/src/designer/data/generate_header.xsl @@ -248,9 +248,6 @@ ();&endl;&endl; void read(QXmlStreamReader &reader);&endl; - #ifdef QUILOADER_QDOM_READ&endl; - void read(const QDomElement &node);&endl; - #endif&endl; void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;&endl; @@ -398,21 +395,12 @@ #include <QtCore/QXmlStreamWriter> #include <QtCore/qglobal.h> -#if defined(QT_UIC3) - #define QUILOADER_QDOM_READ -#endif - QT_BEGIN_NAMESPACE -#ifdef QUILOADER_QDOM_READ - class QDomElement; -#endif - - #define QDESIGNER_UILIB_EXTERN Q_DECL_EXPORT #define QDESIGNER_UILIB_IMPORT Q_DECL_IMPORT -#if defined(QT_DESIGNER_STATIC) || defined(QT_UIC) || defined(QT_UIC3) +#if defined(QT_DESIGNER_STATIC) || defined(QT_UIC) # define QDESIGNER_UILIB_EXPORT #elif defined(QDESIGNER_UILIB_LIBRARY) # define QDESIGNER_UILIB_EXPORT QDESIGNER_UILIB_EXTERN diff --git a/src/designer/data/generate_impl.xsl b/src/designer/data/generate_impl.xsl index 8ef6eaecb..655c410c2 100644 --- a/src/designer/data/generate_impl.xsl +++ b/src/designer/data/generate_impl.xsl @@ -574,56 +574,6 @@ - - - - - #ifdef QUILOADER_QDOM_READ&endl; - - void - - ::read(const QDomElement &node)&endl; - - { - - - - - - &endl; - - for (QDomNode n = node.firstChild(); !n.isNull(); n = n.nextSibling()) {&endl; - if (!n.isElement())&endl; - continue;&endl; - QDomElement e = n.toElement();&endl; - QString tag = e.tagName().toLower();&endl; - - - - - - - - }&endl; - - - - m_text = QLatin1String("");&endl; - - - m_text.clear();&endl; - - - - for (QDomNode child = node.firstChild(); !child.isNull(); child = child.nextSibling()) {&endl; - if (child.isText())&endl; - m_text.append(child.nodeValue());&endl; - }&endl; - - }&endl; - #endif&endl; - &endl; - @@ -1133,10 +1083,6 @@ #include "ui4_p.h"&endl; &endl; - #ifdef QUILOADER_QDOM_READ&endl; - #include <QtXml/QDomElement>&endl; - #endif&endl; - &endl; QT_BEGIN_NAMESPACE&endl; #ifdef QFORMINTERNAL_NAMESPACE&endl;