mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
remove redundant QFORMINTERNAL_NAMESPACE definition checks
it is no longer defined Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
49f0becf27
commit
6a6f9d5cc0
17 changed files with 3 additions and 163 deletions
|
@ -379,11 +379,6 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
#define QUI_EXPORT Q_DECL_EXPORT
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
</xsl:text>
|
||||
|
||||
<xsl:text>&endl;</xsl:text>
|
||||
|
@ -408,9 +403,6 @@ namespace QFormInternal
|
|||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
<xsl:text>
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
|
|
@ -1063,13 +1063,7 @@
|
|||
</xsl:text>
|
||||
<xsl:text>#include "ui4.h"&endl;</xsl:text>
|
||||
<xsl:text>&endl;</xsl:text>
|
||||
<xsl:text>QT_BEGIN_NAMESPACE&endl;</xsl:text>
|
||||
|
||||
<xsl:text>#ifdef QFORMINTERNAL_NAMESPACE&endl;</xsl:text>
|
||||
<xsl:text>using namespace QFormInternal;&endl;</xsl:text>
|
||||
<xsl:text>#endif&endl;</xsl:text>
|
||||
<xsl:text>&endl;</xsl:text>
|
||||
|
||||
<xsl:text>QT_BEGIN_NAMESPACE&endl;&endl;</xsl:text>
|
||||
<xsl:text>/*******************************************************************************&endl;</xsl:text>
|
||||
<xsl:text>** Implementations&endl;</xsl:text>
|
||||
<xsl:text>*/&endl;&endl;</xsl:text>
|
||||
|
|
|
@ -18,13 +18,10 @@
|
|||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "ui4.h"
|
||||
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
using namespace QFormInternal;
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
** Implementations
|
||||
|
|
|
@ -44,12 +44,6 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
#define QUI_EXPORT Q_DECL_EXPORT
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Forward declarations
|
||||
*/
|
||||
|
@ -3310,11 +3304,6 @@ private:
|
|||
void operator = (const DomStringPropertySpecification&other);
|
||||
};
|
||||
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI4_H
|
||||
|
|
|
@ -56,9 +56,7 @@
|
|||
#include <QtGui/QAbstractButton>
|
||||
#include <QtGui/QAbstractItemView>
|
||||
#include <QtGui/QHeaderView>
|
||||
#ifndef QFORMINTERNAL_NAMESPACE
|
||||
# include "qlayout_p.h" // Compiling within Designer
|
||||
#endif
|
||||
#include "qlayout_p.h"
|
||||
|
||||
#include <QtXml/QXmlStreamReader>
|
||||
|
||||
|
@ -82,20 +80,12 @@ static const char *buttonGroupPropertyC = "buttonGroup";
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
using namespace QFormInternal;
|
||||
#endif
|
||||
|
||||
class QFriendlyLayout: public QLayout
|
||||
{
|
||||
public:
|
||||
inline QFriendlyLayout() { Q_ASSERT(false); }
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
friend class QFormInternal::QAbstractFormBuilder;
|
||||
#else
|
||||
friend class QAbstractFormBuilder;
|
||||
#endif
|
||||
};
|
||||
|
||||
/*!
|
||||
|
@ -837,11 +827,7 @@ QLayoutItem *QAbstractFormBuilder::create(DomLayoutItem *ui_layoutItem, QLayout
|
|||
switch (ui_layoutItem->kind()) {
|
||||
case DomLayoutItem::Widget: {
|
||||
if (QWidget *w = create(ui_layoutItem->elementWidget(), parentWidget)) {
|
||||
#ifdef QFORMINTERNAL_NAMESPACE // uilib
|
||||
QWidgetItem *item = new QWidgetItemV2(w);
|
||||
#else // Within Designer: Use factory method that returns special items that refuse to shrink to 0,0
|
||||
QWidgetItem *item = QLayoutPrivate::createWidgetItem(layout, w);
|
||||
#endif
|
||||
item->setAlignment(alignmentFromDom(ui_layoutItem->attributeAlignment()));
|
||||
return item;
|
||||
}
|
||||
|
@ -2394,9 +2380,7 @@ void QAbstractFormBuilder::loadButtonExtraInfo(const DomWidget *ui_widget, QAbst
|
|||
ButtonGroupHash &buttonGroups = extra->buttonGroups();
|
||||
ButtonGroupHash::iterator it = buttonGroups.find(groupName);
|
||||
if (it == buttonGroups.end()) {
|
||||
#ifdef QFORMINTERNAL_NAMESPACE // Suppress the warning when copying in Designer
|
||||
uiLibWarning(QCoreApplication::translate("QAbstractFormBuilder", "Invalid QButtonGroup reference '%1' referenced by '%2'.").arg(groupName, button->objectName()));
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
// Create button group on demand?
|
||||
|
|
|
@ -50,11 +50,6 @@ class QWidget;
|
|||
class QAbstractButton;
|
||||
class QAbstractItemView;
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
class DomAction;
|
||||
class DomActionGroup;
|
||||
class DomButtonGroup;
|
||||
|
@ -238,11 +233,6 @@ private:
|
|||
friend Q_UITOOLS_EXPORT QVariant domPropertyToVariant(QAbstractFormBuilder *abstractFormBuilder,const QMetaObject *meta, const DomProperty *property);
|
||||
};
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
#endif // ABSTRACTFORMBUILDER_H
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
\class QFormBuilder
|
||||
|
||||
|
@ -511,8 +507,4 @@ void QFormBuilder::applyProperties(QObject *o, const QList<DomProperty*> &proper
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
} // namespace QFormInternal
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
@ -32,11 +32,6 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
class QCustomWidget;
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
class Q_UITOOLS_EXPORT QFormBuilder: public QAbstractFormBuilder
|
||||
{
|
||||
public:
|
||||
|
@ -77,11 +72,6 @@ private:
|
|||
QMap<QString, QCustomWidget*> m_customWidgets;
|
||||
};
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
#endif // FORMBUILDER_H
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QBoxLayout>
|
||||
#include <QtGui/QGridLayout>
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtCore/qdebug.h>
|
||||
#include <QtCore/QTextStream>
|
||||
|
@ -37,10 +36,6 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal {
|
||||
#endif
|
||||
|
||||
void uiLibWarning(const QString &message) {
|
||||
qWarning("Designer: %s", qPrintable(message));
|
||||
}
|
||||
|
@ -498,8 +493,4 @@ const QFormBuilderStrings &QFormBuilderStrings::instance()
|
|||
return rc;
|
||||
}
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
} // namespace QFormInternal
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
@ -45,15 +45,9 @@ class QWidget;
|
|||
class QObject;
|
||||
class QLabel;
|
||||
class QButtonGroup;
|
||||
|
||||
class QBoxLayout;
|
||||
class QGridLayout;
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
class DomButtonGroups;
|
||||
class DomButtonGroup;
|
||||
class DomCustomWidget;
|
||||
|
@ -216,9 +210,6 @@ struct Q_UITOOLS_EXPORT QFormBuilderStrings {
|
|||
QList<TextRoleNName> itemTextRoles;
|
||||
QHash<QString, QPair<Qt::ItemDataRole, Qt::ItemDataRole> > treeItemTextRoleHash;
|
||||
};
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include <QtCore/QDateTime>
|
||||
#include <QtCore/QUrl>
|
||||
#include <QtCore/qdebug.h>
|
||||
|
||||
#include <QtGui/QIcon>
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QFont>
|
||||
|
@ -37,11 +36,6 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
static inline void fixEnum(QString &s)
|
||||
{
|
||||
int qualifierIndex = s.lastIndexOf(QLatin1Char(':'));
|
||||
|
@ -649,10 +643,6 @@ DomProperty *variantToDomProperty(QAbstractFormBuilder *afb, const QMetaObject *
|
|||
return dom_prop;
|
||||
}
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_properties_p.h"
|
||||
|
|
|
@ -43,11 +43,6 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
class QAbstractFormBuilder;
|
||||
class DomProperty;
|
||||
|
||||
|
@ -142,10 +137,6 @@ inline EnumType enumKeyOfObjectToValue(const char *enumName, const char *key, co
|
|||
return enumKeyToValue<EnumType>(me, key);
|
||||
}
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UILIBPROPERTIES_H
|
||||
|
|
|
@ -52,11 +52,6 @@ Q_GLOBAL_STATIC(QStringList, g_widgets)
|
|||
class QUiLoader;
|
||||
class QUiLoaderPrivate;
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
class TranslatingTextBuilder : public QTextBuilder
|
||||
{
|
||||
public:
|
||||
|
@ -506,18 +501,10 @@ bool FormBuilderPrivate::addItem(DomWidget *ui_widget, QWidget *widget, QWidget
|
|||
return true;
|
||||
}
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
class QUiLoaderPrivate
|
||||
{
|
||||
public:
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
QFormInternal::FormBuilderPrivate builder;
|
||||
#else
|
||||
FormBuilderPrivate builder;
|
||||
#endif
|
||||
|
||||
void setupWidgetMap() const;
|
||||
};
|
||||
|
|
|
@ -30,10 +30,6 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal {
|
||||
#endif
|
||||
|
||||
enum { themeDebug = 0 };
|
||||
|
||||
QResourceBuilder::QResourceBuilder()
|
||||
|
@ -153,8 +149,4 @@ bool QResourceBuilder::isResourceType(const QVariant &value) const
|
|||
return false;
|
||||
}
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
} // namespace QFormInternal
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
@ -41,11 +41,6 @@ QT_BEGIN_NAMESPACE
|
|||
class QDir;
|
||||
class QVariant;
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
class DomProperty;
|
||||
class DomResourceIcon;
|
||||
|
||||
|
@ -73,11 +68,6 @@ public:
|
|||
static int iconStateFlags(const DomResourceIcon *resIcon);
|
||||
};
|
||||
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // RESOURCEBUILDER_H
|
||||
|
|
|
@ -25,18 +25,12 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal {
|
||||
#endif
|
||||
|
||||
QTextBuilder::QTextBuilder()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QTextBuilder::~QTextBuilder()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QVariant QTextBuilder::loadText(const DomProperty *property) const
|
||||
|
@ -57,8 +51,4 @@ DomProperty *QTextBuilder::saveText(const QVariant &value) const
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
} // namespace QFormInternal
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
@ -40,11 +40,6 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
class QVariant;
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
namespace QFormInternal
|
||||
{
|
||||
#endif
|
||||
|
||||
class DomProperty;
|
||||
class DomString;
|
||||
|
||||
|
@ -61,11 +56,6 @@ public:
|
|||
virtual DomProperty *saveText(const QVariant &value) const;
|
||||
};
|
||||
|
||||
|
||||
#ifdef QFORMINTERNAL_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // TEXTBUILDER_H
|
||||
|
|
Loading…
Add table
Reference in a new issue