Commit Graph

16 Commits

Author SHA1 Message Date
Jøger Hansegård 58a3cfe857 [ActiveQt] qutlook sample crashes with distribution lists
The qutlook sample may crash if the contact list contains items that
are not regular contacts, for example distribution lists. The crash
occur because items such as distribution lists do not have the requested
properties (FirstName, LastName etc).

This patch works around this issue by checking if the contact list item
is a contact before attempting to access the requested properties.

A side effect is that non-contact entries show up as blank lines in the
address list.

In addition, the patch fixes an issue where the qutlook app crashes if
creating the Outlook COM server fails. This was related to an
uninitialized variable (AddressBookModel::folderItems)

Task-number: QTBUG-111191
Pick-to: 6.5 6.6
Change-Id: I6abfdaba4a49ef85bc245b26779b8bfdc409887b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2023-08-15 08:49:04 +02:00
Lucie Gérard 2e7234cc40 Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: Ibdefc58cad3b83d0d117fc333de76ccb5177a621
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-06-10 16:20:09 +02:00
Marc Mutz 229fe61f2a Port from container.count()/int to container.size()/qsizetype
This change is driven by the deprecation of (some) container count()
in favor of size(), so the int/qsizetype fixes are limited to the
vicinity of count()/size() replacements.

Pick-to: 6.3
Change-Id: If6606c9d4aec9bd1cf361efe8ffdf349ac031e79
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2022-03-16 13:51:45 +00:00
Kai Koehne a07f521f9b Fix outdated BSD license header
Use new version with commercial exception.

Change-Id: I20b377176e99b80db47f41596d20192ae7d5564f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2017-09-29 06:41:20 +00:00
Andre de la Rocha c2751b1d66 Active Qt Examples: Brush up to C++ 11
Use nullptr, member initialization, new connect syntax, QStringLiteral, etc.

Change-Id: Ia79473ca302216f91eec6a32f670cf606761ed0d
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2017-08-23 11:01:43 +00:00
Jani Heikkinen 35c178c310 Fixed license file headers
Change-Id: Ifb2d18d57602260546cc8a29af221298442575ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2015-02-16 10:04:16 +00:00
Jani Heikkinen bbfb9dadbf Update copyright headers
Qt copyrights are now in The Qt Company, so we could update the source
code headers accordingly. In the same go we should also fix the links to
point to qt.io.

Change-Id: I2febb46d711c51eeb08f13418a4fc15ab0502f1a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2015-02-11 16:16:42 +00:00
Oswald Buddenhagen b29f51357b whitespace fixes
expand tabs, fix indentation, remove trailing whitespace.

Change-Id: Ibec1bbad9e8faff81671ce9d1c7bb4fb9b340bb9
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2014-01-20 13:10:01 +01:00
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
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 1bef04179c Fix qutlook compilation.
QAbstractItemModel::reset() has been deprecated and causes build error.

Change-Id: I4b08c8e5e6a9210832314b8917ce1c9625d727a5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-09-12 13:42:41 +02: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 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
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