Skip to content

Commit

Permalink
Remove use of QT_MODULE from library
Browse files Browse the repository at this point in the history
These defines were there to aid in the commercial
licensing scheme we used long ago, and are no longer needed.

Keep a QT_MODULE(x) define so other modules continue compiling.

Change-Id: I8fd76cd5270df8f14aee746b6cf32ebf7c23fec7
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
Gunnar Sletta authored and Qt by Nokia committed Jan 25, 2012
1 parent 00c8984 commit 4ecf827
Show file tree
Hide file tree
Showing 561 changed files with 25 additions and 732 deletions.
8 changes: 0 additions & 8 deletions bin/syncqt
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,6 @@ if($check_includes) {
my $iheader = $subdir . "/" . $header;
if($public_header) {
if(open(F, "<$iheader")) {
my $qt_module_found = 0;
my $qt_begin_header_found = 0;
my $qt_end_header_found = 0;
my $qt_begin_namespace_found = 0;
Expand Down Expand Up @@ -1376,8 +1375,6 @@ if($check_includes) {
$qt_begin_namespace_found = 1;
} elsif ($header_skip_qt_begin_namespace_test == 0 and $line =~ /^QT_END_NAMESPACE\s*$/) {
$qt_end_namespace_found = 1;
} elsif ($header_skip_qt_module_test == 0 and $line =~ /^QT_MODULE\(.*\)\s*$/) {
$qt_module_found = 1;
}
}
if ($header_skip_qt_begin_header_test == 0) {
Expand All @@ -1400,11 +1397,6 @@ if($check_includes) {
}
}

if ($header_skip_qt_module_test == 0) {
if ($qt_module_found == 0) {
print "$lib: WARNING: $iheader does not include QT_MODULE\n";
}
}
close(F);
}
}
Expand Down
1 change: 0 additions & 1 deletion examples/animation/sub-attaq/qanimationstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Gui)

#ifndef QT_NO_ANIMATION

Expand Down
1 change: 0 additions & 1 deletion src/corelib/animation/qabstractanimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef QT_NO_ANIMATION

Expand Down
1 change: 0 additions & 1 deletion src/corelib/animation/qanimationgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef QT_NO_ANIMATION

Expand Down
1 change: 0 additions & 1 deletion src/corelib/animation/qparallelanimationgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef QT_NO_ANIMATION

Expand Down
1 change: 0 additions & 1 deletion src/corelib/animation/qpauseanimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef QT_NO_ANIMATION

Expand Down
1 change: 0 additions & 1 deletion src/corelib/animation/qpropertyanimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef QT_NO_ANIMATION

Expand Down
1 change: 0 additions & 1 deletion src/corelib/animation/qsequentialanimationgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef QT_NO_ANIMATION

Expand Down
1 change: 0 additions & 1 deletion src/corelib/animation/qvariantanimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef QT_NO_ANIMATION

Expand Down
10 changes: 0 additions & 10 deletions src/corelib/arch/qatomic_arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,12 @@
#ifndef QATOMIC_ARM_H
#define QATOMIC_ARM_H

QT_BEGIN_HEADER

#if defined(__ARM_ARCH_7__) \
|| defined(__ARM_ARCH_7A__) \
|| defined(__ARM_ARCH_7R__) \
|| defined(__ARM_ARCH_7M__)
# define QT_ARCH_ARMV7
QT_BEGIN_INCLUDE_HEADER
# include "QtCore/qatomic_armv7.h"
QT_END_INCLUDE_HEADER
#elif defined(__ARM_ARCH_6__) \
|| defined(__ARM_ARCH_6J__) \
|| defined(__ARM_ARCH_6T2__) \
Expand All @@ -61,16 +57,10 @@ QT_END_INCLUDE_HEADER
|| defined(__ARM_ARCH_6M__) \
|| (defined(__TARGET_ARCH_ARM) && (__TARGET_ARCH_ARM-0 >= 6))
# define QT_ARCH_ARMV6
QT_BEGIN_INCLUDE_HEADER
# include "QtCore/qatomic_armv6.h"
QT_END_INCLUDE_HEADER
#else
# define QT_ARCH_ARMV5
QT_BEGIN_INCLUDE_HEADER
# include "QtCore/qatomic_armv5.h"
QT_END_INCLUDE_HEADER
#endif

QT_END_HEADER

#endif // QATOMIC_ARM_H
6 changes: 0 additions & 6 deletions src/corelib/arch/qatomic_armv7.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
#ifndef QATOMIC_ARMV7_H
#define QATOMIC_ARMV7_H

QT_BEGIN_HEADER

// use the DMB instruction when compiling for ARMv7, ...
#ifndef Q_CC_RCVT
# define Q_DATA_MEMORY_BARRIER asm volatile("dmb\n":::"memory")
Expand All @@ -52,10 +50,6 @@ QT_BEGIN_HEADER
#endif

// ... but the implementation is otherwise identical to that for ARMv6
QT_BEGIN_INCLUDE_HEADER
#include "QtCore/qatomic_armv6.h"
QT_END_INCLUDE_HEADER

QT_END_HEADER

#endif // QATOMIC_ARMV7_H
1 change: 0 additions & 1 deletion src/corelib/codecs/qtextcodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef QT_NO_TEXTCODEC

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qfuture.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

template <typename T>
class QFutureWatcher;
Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qfutureinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

template <typename T> class QFuture;
class QFutureInterfaceBasePrivate;
Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qfuturesynchronizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

template <typename T>
class QFutureSynchronizer
Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qfuturewatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

class QEvent;

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qrunnable.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

class QRunnable
{
Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentcompilertest.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#if defined (Q_CC_MSVC) && (_MSC_VER < 1300)
# define QT_TYPENAME
Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentexception.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

namespace QtConcurrent
{
Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifdef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentfilterkernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentfunctionwrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentiteratekernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifdef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentmapkernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef qdoc
namespace QtConcurrent {
Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentmedian.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentreducekernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

namespace QtConcurrent {

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentresultstore.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

/*
ResultStore stores indexed results. Results can be added and retrieved
Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentrun.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifdef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentrunbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentstoredfunctioncall.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qtconcurrentthreadengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

#ifndef qdoc

Expand Down
1 change: 0 additions & 1 deletion src/corelib/concurrent/qthreadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

QT_MODULE(Core)

class QThreadPoolPrivate;
class Q_CORE_EXPORT QThreadPool : public QObject
Expand Down
1 change: 0 additions & 1 deletion src/corelib/global/qendian.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

/*
* ENDIAN FUNCTIONS
Expand Down
Loading

0 comments on commit 4ecf827

Please sign in to comment.