Commit Graph

1305 Commits

Author SHA1 Message Date
Qt Submodule Update Bot 5fd57e9679 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ibc60adddda9887d5b9f37b51339b4a3cfae1878f
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-06-19 05:23:17 +00:00
Volker Hilsheimer f8c918916f QAxScriptManager: move private members into the private class
Remove implementation details from the public header. Use lambdas
to replace the one-liner private slots.

Change-Id: I1a55af6bf9e67025e656ff90545887998395d9f9
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Wladimir Leuschner <wladimir.leuschner@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
2023-06-15 16:23:08 +02:00
Volker Hilsheimer 75d027d27d Add test for QAxScript::error signal
Make sure it gets emitted in case of syntax errors. Details are engine
specific anyway, but from testing we get errorCode 0 with both JS and
VB script engines.

Change-Id: I820aa14ed454fb641b3c4ca03b8a08874b0ca769
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
2023-06-15 16:23:01 +02:00
Qt Submodule Update Bot 45b2aa875b Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ib5752a4c6d3849af582262a3157647c0e3f91850
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-06-14 11:54:05 +00:00
Jani Heikkinen 8595f635f4 Bump version to 6.7.0
Change-Id: I42587e21d78243b3b9f84f106f2be6cff9db09be
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2023-06-13 05:54:36 +01:00
Qt Submodule Update Bot cee776a9c6 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I8960c39a1f17ee31018dcd7a7700e5b4156af082
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-06-13 04:54:35 +00:00
Qt Submodule Update Bot 8cbb1f7777 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I57d87d07455361401b06b5da398007b4406a4f28
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-06-08 03:24:47 +00:00
Tor Arne Vestbø f000c1e320 Remove conanfile.py
The conan experiment has ended, and the file is only bitrotting
nowadays.

Pick-to: 6.5 6.6
Change-Id: Iaa6a64f95e174048e74a13d09cbea8cc99b398e4
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-06-07 09:54:50 +02:00
Amir Masoud Abdol 25eecddedb Remove the manual undef of the min/max macros, or def NOMINMAX
We now add NOMINMAX to PlatformCommonInternal target which will be
linked to everything else, so min/max will not be defined upon the
inclusion of `windows.h`, or other headers.

Pick-to: 6.5 6.6
Change-Id: I2d8618f1f73e7edde941b21fad1a8528c998106b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2023-06-06 15:55:08 +00:00
Qt Submodule Update Bot bd214648bf Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I2fea489a2f0cf72411a0fc77c7c163de5cb0aa0b
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-06-06 07:11:28 +00:00
Qt Submodule Update Bot 7db717f007 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Iae3da0f54a9d213616b88a30810c9b6d14d7c205
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-06-04 18:12:57 +00:00
Qt Submodule Update Bot e39b6bcba6 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ifbb88738a775f8031e555b8b712ae6c4418d9967
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-06-02 04:30:47 +00:00
Qt Submodule Update Bot 7e9a76880d Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I468126da18b8edadbdfa2a4dcf8e1f85806791eb
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-06-01 03:22:55 +00:00
Alexey Edelev 13253bd122 Add the use of the qt_internal_project_setup function
The function sets the required CMake variables and policies.

Pick-to: 6.5
Task-number: QTBUG-112685
Change-Id: Ib2398f46802f34631c129aa2c5c66338f7f02291
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2023-05-31 13:55:52 +02:00
Qt Submodule Update Bot 7b60de6efd Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I0132091fa21a95a331fb27d9d94be24cc370f907
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-05-29 06:06:22 +00:00
Qt Submodule Update Bot 17915a8d81 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I37cfa5ae9232e450a5207d4ba631423a1d1928c7
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-05-26 04:21:36 +00:00
Qt Submodule Update Bot aea73fe145 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: If0fb711de512d176220323b70b0d087dd5f93bed
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-05-24 03:22:57 +00:00
Qt Submodule Update Bot 3fc24cc11f Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I9e5418f5552dd8be8602cd7e60007347deadf58d
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-05-22 08:43:34 +00:00
Qt Submodule Update Bot 32be10c711 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ia2f3b8218198278086dd0397f6e59d262109bca2
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-05-19 08:04:23 +00:00
Qt Submodule Update Bot 80e3e8f7fe Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ifd66dd98fce8621f594dd3d49afeff90f66aebe2
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-05-17 06:17:36 +00:00
Qt Submodule Update Bot f229aba255 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ib7f4de957f50f5c60e8d6762c5630428ef20e1e6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-05-11 12:17:13 +00:00
Topi Reinio a648927188 Doc: Replace mentions of deprecated macros
Q_ENUMS() and Q_FLAGS() are deprecated in favor of Q_ENUM() and
Q_FLAG().

Pick-to: 6.5
Task-number: QTBUG-113229
Change-Id: I715f0eded2fbd62611b381e560f7f6548f797d45
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2023-05-09 11:14:35 +00:00
Qt Submodule Update Bot 39e5f0fbfb Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I25c8ea3f215d041e69cb6d3452df736944b32a6b
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-05-08 12:17:46 +00:00
Qt Submodule Update Bot 194b61e478 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I0e773b5f7e844431f9ef457416e50c07e70d2e11
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-05-02 04:29:03 +00:00
Safiyyah Moosa 3edd7a235d Docs: Fix "Can't link to" example warnings
Task-number: QTBUG-113160
Pick-to: 6.5
Change-Id: I9ef083bb4274b75c6c5d3727978eeab19517e9cb
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2023-04-28 21:23:27 +02:00
Qt Submodule Update Bot 9a4bf55308 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I918f26108f901ec80cafa2f0e196409df8edd64b
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-27 04:29:53 +00:00
Qt Submodule Update Bot 85d4fd36bc Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Icec062e01a527ceda97049b00d18a0a793b40b8e
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-24 06:20:12 +00:00
Qt Submodule Update Bot ef81c70bbc Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ifee8119dfed16607e236f2f04705139fae2dd486
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-20 04:26:00 +00:00
Qt Submodule Update Bot 5837363ae9 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ifc09fec3303af5b34618f6948fe46d0dfd9754d0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-18 05:07:30 +00:00
Qt Submodule Update Bot fd2196c6f7 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ibe1f27f0ef57d389bdfc2cc43d25d24bf934498b
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-13 09:43:48 +00:00
Qt Submodule Update Bot b58ffc9f63 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I11d854344f145f4d96d76a6b57174fa313956165
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-12 09:21:29 +00:00
Qt Submodule Update Bot 4bc4722c96 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I8cd7379b229a889bb2d2a977914648a4d6286890
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-11 05:09:31 +00:00
Oliver Wolff f013e692ca examples: Remove opengl example
We should not have examples that are specific to opengl on Windows.

In order to keep the use case's code in source, the example was moved to
tests/manual.

Pick-to: 6.5
Change-Id: Ie55aea777c449913e66279728c53f08c4105b66c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-06 10:36:26 +02:00
Oliver Wolff 1bad3a86dc examples: Remove multiple examples
The functionality of providing multiple ActiveX controls in a single
process server should be covered in a documentation snippet.

In order to keep the use case's code in source, the example was moved to
tests/manual.

Pick-to: 6.5
Change-Id: I2633637e8202aadc7798ba5816a61ec1743f0b03
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-06 08:36:21 +00:00
Oliver Wolff 73f52eb39f examples: Remove menus example
Showing the usage of QMenuBar and QStatusBar in a QMainWindow can be
merged into another if needed.

In order to keep the use case's code in source, the example was moved to
tests/manual.

Pick-to: 6.5
Change-Id: I76ec12e9c83a42028f2de95ab17ca07544b53425
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-06 10:36:17 +02:00
Oliver Wolff 4fa7ebcf63 examples: Remove media player example
Embedding the media player looks really outdated so it shouldn't be
promoted inside an example.

In order to keep the use case's code in source, the example was moved to
tests/manual.

Pick-to: 6.5
Change-Id: I54b23e1a5e4d7b0910ce238ff2fefb14da540739
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-06 10:36:13 +02:00
Oliver Wolff e7b67edeef examples: Remove hierarchy example
Functionality is also covered in other examples so that hierarchy is no
longer needed.

In order to keep the use case's code in source, the example was moved to
tests/manual.

Pick-to: 6.5
Change-Id: I6b3e46d402877b93cfa4dc555328e1e115ec4fc6
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-06 10:36:08 +02:00
Qt Submodule Update Bot 2ee58af673 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: If765b2534ee3a0a0b99aff16e8ba065cbaa0e2ab
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-04-05 08:49:38 +00:00
Volker Hilsheimer 481d70818e Follow up on meta object version bump in qtbase
After b83de5f9a43b094bbb77b3aeea77983ea508a2b0 in qtbase, moc
generates complete type information for enum types. ActiveQt declares
enums from type libraries (i.e. on namespace level) also in the
metaobject of each generated class (as we can't inherit the namespace
meta object from each QAxObject class). But those enum types don't
really exist on C++ level. So moc generates incorrectly qualified
enum types.

Augment the post-processing code to detect whether a type that is
actually in the namespace is used as if it was in the class, and
replace the qualifier.

Bump the metaobject revision.

Change-Id: I4d28abaa47a5fa3db70737d006b8e1becf8a51e3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-04-05 10:49:37 +02:00
Qt Submodule Update Bot f4d1e7a841 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: Ifcf909b71bd9097b9afc435e8c8a6e714869f89c
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-03-28 07:20:28 +00:00
Volker Hilsheimer 855472a286 Fix QAxScriptManager::call
It takes the name of the function, not of the script name so use the
scriptForFunction helper to find the QAxScript object that provides
access to the function.

The previous code implies that this should work for both function names
and for full function prototypes, so implement that correctly and
without allocating too many unnecessary temporary objects.

Update the test that is now passing to cover all scenarios.

Pick-to: 6.5
Change-Id: I939942cc805a56212d70b1a12b95aaa4b2f64d59
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2023-03-22 17:37:28 +01:00
Volker Hilsheimer f6595345f0 Add test coverage for QAxScript and QAxScriptManager
That framework has not aged well, add more tests to avoid regressions,
and to document the complete failure of QAxScriptManager::call to say
what it is expected to do.

Pick-to: 6.5
Change-Id: I20acb3eba3f439d2608ec930d9e90b44a83ef980
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2023-03-22 17:37:23 +01:00
Volker Hilsheimer e640503b65 Fix handling of out-parameters that are of VARIANT-type
Qt knows about QVariant as a built-in meta type, QMetaType::QVariant. It
is no longer mapped to user type. COM objects expect that untyped out-
parameters, which are mapped to QVariant& by ActiveQt, are passed in as
VT_VARIANT|VT_BYREF.

Update our variant-conversion logic accordingly. If the typeName, which
comes from the generated function signature, is "QVariant", then
QMetaType::fromName(typeName) will always be QMetaType::QVariant, and
had to be passed as VT_VARIANT.

Fix the logic for deciding whether we have to write back the out-
parameters so that it works when QAxScript::call is used. We need to
write back no matter whether it's a property or a getter, so check
whether any bit is set, not if both are set.

Add some test for this. Not cherry-picking this further back, the
auto-test coverage of ActiveQt is not good enough to make sure that we
don't break any subtle usecases in e.g. QAxServer, and the usage of
QAxScript does not seem to be very wide.

Fixes: QTBUG-111718
Pick-to: 6.5
Change-Id: I239f71c3637ea9f32dff5123a8ada96e0a894371
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2023-03-22 17:37:19 +01:00
Volker Hilsheimer 4e1e793876 Refactor test to use modern string literals
Pick-to: 6.5
Change-Id: I2279d8db950dce3b466fd0258c8bab8d4483313e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2023-03-21 07:46:31 +01:00
Volker Hilsheimer 1b584f5974 Fix naming of auto tests
Add tst_ prefix as is convention.

Pick-to: 6.5
Change-Id: I37e2674fdf809dfd548b52a39931459452a8a049
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2023-03-21 07:46:24 +01:00
Qt Submodule Update Bot 8ce074d25b Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I8744b8da57d93a475f51b6b478b01604d091651a
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-03-19 21:11:51 +00:00
Qt Submodule Update Bot e9259ec85e Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I3b995070fe66610be7a6877fdacbee03f61f93ef
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-03-10 10:03:44 +00:00
Qt Submodule Update Bot 9fc0d781d4 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I9c72001412d31d9e31850ca2a71204f8045c765c
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-03-02 12:46:22 +00:00
Oliver Wolff 8f0609ee78 idc: Sync usage info with actual parameter parsing
Pick-to: 6.5
Change-Id: I58f444023e955dae4cb93b8265481a231bd40bf0
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
2023-03-01 12:45:08 +01:00
Qt Submodule Update Bot cacf9999d2 Update dependencies on 'dev' in qt/qtactiveqt
Change-Id: I36ddc0c7d2c7d1c14b0b10e4baece956950040ba
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2023-02-24 04:47:50 +00:00