summaryrefslogtreecommitdiffstats
path: root/src/network/access/http2
diff options
context:
space:
mode:
authorFrancois Ferrand <thetypz@gmail.com>2016-10-06 12:07:29 +0200
committerFrancois Ferrand <thetypz@gmail.com>2017-08-25 12:15:36 +0000
commitfabedd399ebe4d28d6eb62c8a863f1bbcce78d3a (patch)
treedc38ba0a7d801af8998af38d4032334a2880e104 /src/network/access/http2
parenta980250a666bc87e5db006b8668c6af9340915f2 (diff)
Introduce OBJECTIVE_HEADERS
When a ObjC++ QObject subclass is listed in the regular HEADERS, qmake creates a .cpp file. The moc file will then fail to compile, as it requries ObjC++ headers. Using Q_FORWARD_DECLARE_OBJC_CLASS() can be used to let the class be parsed by The compiler, but link will still fail, as the generated methods (e.g. signals) must be built with ObjC++ compiler, in case they have ObjC parameters: Q_FORWARD_DECLARE_OBJC_CLASS(NSString); class MyClass: public QObject { Q_OBJECT signals: void objcSignal(NSString * myObj); }; The canonical workaround for that is including the .cpp file into the corresponding .mm file. This also offers a compilation speed advantage, but is somewhat counter-intuitive. Therefore, we introduce a separate variable which instructs moc to create .mm files directly. Task-number: QTBUG-1581 Change-Id: Ia98af58006efd168ea37f3a63c396979e7e81baa Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/network/access/http2')
0 files changed, 0 insertions, 0 deletions