Commit Graph

24 Commits

Author SHA1 Message Date
Sergio Ahumada b5366d0fa7 Update copyright year in Digia's license headers
Change-Id: Ia19cb01ac9f0c5e3863e684d2f701ac424ba64f4
Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
2013-01-10 17:54:38 +01:00
Miikka Heikkinen 409516d5bb Fix namespace generation for ** parameters in dumpcpp
Pointer to a pointer (**) type parameters didn't get namespace
prepended to them.

Task-number: QTBUG-28383
Change-Id: I9379fecfad5814b897af7757d0b7b650b31d01e1
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2012-12-14 08:56:45 +01:00
Joerg Bornemann f224d3c106 dumpcpp: compile with QT_NO_CAST_TO_ASCII
Change-Id: I96750ea25c6b4499dccf55509510c076bc4ad371
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
(cherry picked from commit 59a003faaf)
2012-12-06 11:49:01 +01:00
Joerg Bornemann 5277586c68 dumpcpp: use temporary file as class implementation buffer
Instead of writing vast amounts of data into a QByteArray, we're using
a temporary file as clipboard. This enables us to handle much larger
import tables without worrying about running out of RAM.

Task-number: QTBUG-28325

Change-Id: Ied9567651cd859400ba3ed9a45cbbaac603300b6
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
2012-12-04 12:42:11 +01:00
Joerg Bornemann 056d9b57ce dumpcpp: properly clean up temporary metaobjects
All qax_* functions that return QMetaObject instances actually return
instances of QAxMetaObject. To make sure that ~QAxMetaObject is
called, we introduce the qax_deleteMetaObject function and call it in
the appropriate places.

The explicit call to QByteArray::detach is needed because the
affected QMetaObject/Method calls return a QByteArray that directly
holds a pointer to the QByteArrayData contained in QAxMetaObject.
Once the QAxMetaObject is destroyed, the QByteArray objects will hold
pointers to freed memory. Therefore we make a deep copy of the
QByteArray by detaching it.

Task-number: QTBUG-28325

Change-Id: I97613f12f1a30608dd5acd67d0faebb3f39cdf70
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
2012-12-04 12:42:07 +01:00
Joerg Bornemann 27a802f198 fix activeqt module structure
The formerly monolithic ActiveQt module has been split into three
modules:

axserver
    A static library for creating a server project.
axcontainer
    A static libary for creating a container project.
axbase
    A static library with shared code for the latter two libraries.
    This module also is responsible for the installation of header
    files in the include/ActiveQt directory.

"CONFIG += qaxserver" has been deprecated.
Use "QT += axserver" instead.

"CONFIG += qaxcontainer" has been deprecated.
Use "QT += axcontainer" instead.

Code from qaxtypes.cpp that does not depend on the QAX_SERVER define
has been moved to qaxtypefunctions.cpp and resides in the axbase
module.

Task-number: QTBUG-27776
Change-Id: Ib39fc897ccfce16849be0e3c084817d2cd0fc926
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
2012-11-28 08:56:19 +01:00
Friedemann Kleint 7d07dea521 Use newly added QtPrivate::isBuiltInType().
Remove duplicated code.

Task-number: QTBUG-28131
Change-Id: I134a248e661eb90cd187c2b027e9cf1eed88764e
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
2012-11-26 17:38:07 +01:00
Oswald Buddenhagen d9d588d728 remove useless CONFIG+=console
qt_tool.prf already does that

Change-Id: I8adac2d5adda6c9a0ebc2cfb460ccbf01e90d44d
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2012-11-01 22:46:00 +01:00
Oswald Buddenhagen ca1ae70bdb follow qt_tool.prf now setting up DESTDIR
Change-Id: I16d2fe9fb36489e04c3884846157617e25715f9d
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2012-11-01 22:45:52 +01:00
Jędrzej Nowacki 9bd8fe40ad Update usage of qMetaType helper functions.
QMetaType private API was changed therefore the dumper tool has to be
upgraded.

Change-Id: Ibf200b71a7b12a4c011dd9ce426439ad1eec62dc
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
2012-09-27 09:52:14 +02:00
Iikka Eklund 30fc29ae5c Change copyrights from Nokia to Digia
Change copyrights and license headers from Nokia to Digia

Change-Id: I4060147644d7ca34ccff71b3deb30e242b611dab
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
2012-09-23 08:12:54 +02:00
Miikka Heikkinen 827a616c3a Fix dumpcpp tool to work with revision 7 metaobject format.
Dumpcpp tool still generated revision 1 moc format, so generated code
would no longer compile. Ported relevant revision 7 generation code
from moc tool to dumpcpp tool. Also squashed multiple generated string
tables into a single string table.

QVariant::nameToType(typeName) no longer returns UserType for QVariant,
so fixed few comparisons to take this into account.

Removed warning print from MetaObjectGenerator::addProperty(), as
this just spams warnings unnecessarily when generating properties.
Normally the required metatypes are not registered at time of
generation (e.g. when running dumpcpp tool). Note that the check for
this warning was buggy in Qt4, so it already never printed there.

Added a simple autotest to verify dumpcpp generates working code.

Task-number: QTBUG-26587
Change-Id: If12d2301890c209e7fbcb3bc054791a1c9d492c3
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
2012-09-12 10:35:00 +02:00
Miikka Heikkinen f1d18a2ede Fix generation of return statements for void functions in dumpcpp
Changes in QMetaMethod::typeName() return value caused functions
that return void to incorrectly generate return statments in dumpcpp.

Task-number: QTBUG-26587
Change-Id: Id0abea96234a0a75cab8b53473cfee7e60846499
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
2012-08-07 11:24:23 +02:00
Friedemann Kleint 707a39b2ec ActiveQt: Fix compiler warnings (g++).
- Unused variables.
- Struct initialization.

Change-Id: Ia1ad76b27ffcd12c50fdbc9776def53a47ba5951
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
2012-06-28 16:04:40 +02:00
Kent Hansen 02d4cd7ac2 Port ActiveQt to meta-object revision 7
Change-Id: Ia87652ade4a2905d6feecd852403af9a9c705976
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-04-18 12:00:49 +02:00
Kent Hansen 2013def33a Adapt to Qt5 meta-object changes
QMetaMethod::signature() has been renamed to methodSignature(),
and it now returns a QByteArray.

The (internal) QMetaObject::d::stringdata member is now of type
const QByteArrayData *. Use reinterpret_cast to keep it compiling
until ActiveQt's meta-object generator has been ported to the new
meta-object format (revision 7).

Change-Id: Iba6e867f719eae9f72b78d3cd206f27ae13d1328
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-04-18 12:00:36 +02:00
Jędrzej Nowacki 7942208529 Fix code generator example.
qMetaTypeConstructHelper(const T*) is a private api which was changed to
qMetaTypeCreateHelper(const void*).

Change-Id: I81e434cef9b1f15eadcb6e2f2d28eb979274ed64
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
2012-02-27 15:30:29 +01:00
Jason McDonald 75a00446bc Remove "All rights reserved" line from license headers.
As in the past, to avoid rewriting various autotests that contain
line-number information, an extra blank line has been inserted at the
end of the license text to ensure that this commit does not change the
total number of lines in the license header.

Change-Id: I82638e41d9adc9180fef26a5548f775399afafb2
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-01-30 06:39:24 +01:00
Jason McDonald a5928f1d78 Update obsolete contact address.
Replace Nokia contact email address with Qt Project website.

Change-Id: I63ca8dd2d86ed3428448556a02a19004f662402a
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-01-20 07:40:09 +01:00
Jason McDonald d5e48ccae2 Update copyright year in license headers.
Change-Id: I2bab6c14208911188d66eeab71ee6b2707355483
Sanity-Review: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-01-06 02:12:36 +01:00
Friedemann Kleint 551cdaf951 Active Qt: Move idc tool here.
Fix targets of tools.

Change-Id: I8886d0aa3a3e7b62337709afbdbc953a90914f1d
Reviewed-on: http://codereview.qt-project.org/6341
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-10-10 15:43:08 +02:00
Friedemann Kleint 53ca8a7a66 Fix compilation after refactor merge.
Comment out Some functionality for the moment.

Change-Id: Ia7d1d3ba982e97776ae7259be06689b5477450a1
Reviewed-on: http://codereview.qt-project.org/5972
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-10-04 11:16:34 +02:00
Jyri Tahtela 25952178a6 Update licenseheader text in source files for qtactiveqt Qt module
Updated version of LGPL and FDL licenseheaders.
Apply release phase licenseheaders for all source files.

Reviewed-by: Trust Me
2011-05-24 16:22:46 +03:00
Qt by Nokia 41c8d3db37 Initial import from the monolithic Qt.
This is the beginning of revision history for this module. If you
want to look at revision history older than this, please refer to the
Qt Git wiki for how to use Git history grafting. At the time of
writing, this wiki is located here:

http://qt.gitorious.org/qt/pages/GitIntroductionWithQt

If you have already performed the grafting and you don't see any
history beyond this commit, try running "git log" with the "--follow"
argument.

Branched from the monolithic repo, Qt master branch, at commit
896db169ea224deb96c59ce8af800d019de63f12
2011-04-27 12:05:43 +02:00