Commit Graph

13 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
Friedemann Kleint e63eceabc4 Fix compiler warnings in ActiveQt (MSVC/MinGW).
- Unused variables/parameters
- Assigned/unused values
- default missing in switch
- QString/ASCII conversions

Change-Id: I2c71473525d4075d13e7fea3bda3292de62f17aa
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2012-11-29 08:32:23 +01: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 f4fb6abcc5 Fix signals to COM events conversion
Events were not generated to IDL files for signals of activeQt servers,
because QMetaMethod::typeName() now properly returns "void" instead of
empty stringfor methods with void return type. The same issue was
present in few other places in code, so fixed those as well.

Also fixed incorrect use of return type instead of parameter type
where signal paremeters were converted to event parameters in
QAxServerBase::qt_metacall(). Previously this bug has gone unnoticed as
"type" has typically been empty in this case, which does the default
conversion based on QVariant type.

Task-number: QTBUG-26411
Change-Id: I3684805bc900d3cad6fbcc8ccabbb3ecac120092
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-07-04 14:59:57 +02:00
Bill King 9f5ad02d51 Fix: Uninitialised variable causing allocation crash down the line.
Task-Number: QTBUG-26192

Change-Id: Ifdd332544a5017e3465e65e9127b852db03001f6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
2012-06-19 11:06:35 +02:00
Miikka Heikkinen 25949fb852 Fix IDL generation for struct type optional parameters
A recently added optional QRect parameter for QWidget::grab()
caused a build failure in most ActiveQt examples.
Optional parameters apparently need to use VARIANT type in .idl file,
but the parameter replacement logic didn't account for struct keyword,
which is what QRect parameters get in earlier type conversion.

Fixed similarly to the enum case.

Note that QRect parameters don't seem to work at all even in 4.8,
so this is simply a compile fix at this point.

Task-number: QTBUG-25955
Change-Id: Ic1a2a2e69d5b9b34e4a2e1199275b961fe82d2c8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-06-07 10:00:56 +02:00
Miikka Heikkinen 21aa7ac4d1 Fixes to metaobject handling
1) Due to changes to metaobjects, QAxBase::qt_static_metacall has
replaced a direct qt_metacall use in ActiveQt. The qt_static_metacall
function offsets the method id, which seems to be necessary when slots
are invoked via Qt, but breaks when invocation comes via COM interface.
Fixed by correcting the offset where necessary.

2) In MetaObjectGenerator::metaObject() function (qaxbase.cpp), the
assert Q_ASSERT(!typeName.isEmpty()) is wrong, as empty typename is a
valid result here. Removed the assert.

3) The type_map in qaxserver.cpp needs "void" -> "void" mapping, as
QMetaMethod::typeName() no longer returns empty string for void.

Task-number: QTBUG-25804
Change-Id: I53fcae5ac3134b7da85ff2ab2e93f01460da7583
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-05-21 09:46:31 +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
João Abecasis e507ca4748 Don't register previously registered types as aliases
Some types were being registered in multiple places in different ways.
This patch tries to ensure that types are preferentially registered in
the canonical qRegisterMetaType<T>(#T) form.

Where this is not possible, we first check whether the type is already
registered, and only then attempt aliasing to void*/QObject*.

Hid away IsPointerToTypeDerivedFromQObject monstruosity, as QtCore now
provides a macro for this purpose.

Change-Id: I564b6ad3cd14daed9452d85a775c980f5772c703
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-02-15 12:46:02 +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
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