qt5base-lts/src
Lukas Geyer 819d0203e6 Use qualified name for QT_MOC_EXPORT_PLUGIN()
Using non-qualified name for QT_MOC_EXPORT_PLUGIN() breaks template
instatiation for QPointer<T>::operator=(T*) in qt_plugin_instance()
when the class is embedded a namespace with the same name.

namespace Test {

class Test : public QObject
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "Test")

public:
    Test(QObject *parent = 0) : QObject(parent) {}
};

} // namespace Test

In function 'QObject* qt_plugin_instance()':
 error: expected type-specifier before 'Test'
 error: no match for 'operator=' in
        '_instance = (int*)operator new(4u)'
 note: candidates are:
 In file included from qtbase\include\QtCore/qpointer.h:1:0,
                  from qtbase\include\QtCore/QtCore:68,
                  from test.cpp:1:
  qtbase/src/corelib/kernel/qpointer.h:87:25:
   note: QPointer<T>& QPointer<T>::operator=(T*) [with T = QObject]
  qtbase/src/corelib/kernel/qpointer.h:87:25:
   note:   no known conversion for argument 1
           from 'int*' to 'QObject*'
  qtbase/src/corelib/kernel/qpointer.h:79:7:
   note: QPointer<QObject>&
         QPointer<QObject>::operator=(const QPointer<QObject>&)
  qtbase/src/corelib/kernel/qpointer.h:79:7:
   note:   no known conversion for argument 1
           from 'int*' to 'const QPointer<QObject>&'
 error: expected ';' before 'Test'

Change-Id: Idd3e57ab1c888352ad2a8e8f6efca75d858089df
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-08-29 07:57:01 +02:00
..
3rdparty Harfbuzz: fix build with NO_OPENTYPE macro defined 2012-08-29 07:56:50 +02:00
concurrent QFutureInterface<void>: const-correct reportFinished() 2012-08-17 16:27:43 +02:00
corelib Plugin metadata is now updated in setFileName(), not load(). 2012-08-29 07:56:40 +02:00
dbus Add a way for QtDBus to force a call to dbus_shutdown 2012-08-25 10:34:39 +02:00
gui Harfbuzz: fix build with NO_OPENTYPE macro defined 2012-08-29 07:56:50 +02:00
network QNetworkDiskCache: avoid a 31-bit truncation 2012-08-23 18:05:31 +02:00
opengl Fix doc: qglcolormap is not the opengl module 2012-08-24 21:32:03 +02:00
platformsupport fbbackingstore: Don't overload inherited virtual function 2012-08-24 20:29:17 +02:00
plugins Fix missing cleanup of native Cocoa menus. 2012-08-28 23:34:25 +02:00
printsupport Fix qdoc errors in PrinterInfo. 2012-08-28 21:07:40 +02:00
sql Fix doc errors. 2012-08-28 23:34:25 +02:00
testlib Deprecate qWaitForWindowShown QWidget* overload since 5.0. 2012-08-27 23:25:30 +02:00
tools Use qualified name for QT_MOC_EXPORT_PLUGIN() 2012-08-29 07:57:01 +02:00
widgets doc: fix links 2012-08-28 23:34:25 +02:00
winmain fix misnomer: qt_module.prf => qt_build_config.prf 2012-06-19 16:46:08 +02:00
xml Doc: Fix spelling errors 2012-08-17 22:45:27 +02:00
src.pro src.pro: remove redundant & incorrect platformsupport dependency 2012-08-25 10:29:53 +02:00