aboutsummaryrefslogtreecommitdiffstats
path: root/src/winextras/qwinjumplist.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix clang warnings about repetitive type namesFriedemann Kleint2019-06-041-7/+7
| | | | | | | | Fix warning like: warning: use auto when initializing with new/reinterpret_cast to avoid duplicating the type name [modernize-use-auto] Change-Id: I46919c041f6a217e098b82c9f7f6548e0a0a9ec5 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Introduce nullptrFriedemann Kleint2019-06-051-24/+24
| | | | | | | | Apply Fixits by Qt Creator. Introduce more member initialization. Change-Id: I81c6860188f0e1592c4df2435ff7f91500456741 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Fix some clang-tidy warningsFriedemann Kleint2018-07-251-1/+2
| | | | | | | | | | | - Fix 'if (foo) delete foo' to 'delete foo' - Use ' = default' for trivial constructors/destructors - Use range based for where possible - Fix invocations of static methods - Replace some reinterpret_cast by static_cast Change-Id: I998572f370f3e8a1fc39e6c763e941d5a2f598b0 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Fix Qt include statementsFriedemann Kleint2018-05-221-6/+6
| | | | | | | | | | | Change #include <QtCore/QDebug>, #include <QDebug> to #include <QtCore/qdebug.h> according to the coding style. Change-Id: I45fa5e55222e6913972d743908c47480b23cd92c Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* QWinJumpList: Fix typo in macro checkFriedemann Kleint2017-07-031-1/+1
| | | | | | Task-number: QTBUG-61740 Change-Id: Iffc1f1d95d7562c20c272495aa2ba92e4ac7aa0e Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Migrate to QRegularExpressionv5.9.0-beta3v5.9.0-beta2v5.9.0-beta1Samuel Gaist2017-03-131-1/+2
| | | | | | | | This patch updates the code base to use QRegularExpression in the place of the deprecated QRegExp class. Change-Id: I884282c3ee59db8742b7883a7815a55b529029a0 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Merge remote-tracking branch 'origin/5.8' into devv5.9.0-alpha1Liang Qi2017-01-251-4/+4
|\ | | | | | | | | | | | | | | Conflicts: .qmake.conf src/imports/winextras/qquickjumplist.cpp Change-Id: I2272b873c872bbabf7e274a478e3d16b92cdb434
| * Eradicate Q_FOREACH loops and mark the libraries as Q_FOREACH-freev5.8.0-beta1Marc Mutz2016-09-051-4/+4
| | | | | | | | | | Change-Id: I4dbad7ab4c9f467b2e2fd90eff44e1c4a58d43e2 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* | Use member initializationFriedemann Kleint2016-12-011-5/+0
|/ | | | | | | Use initialization in structs and remove unneeded constructors. Change-Id: Ieb0efbf6fe12bdbe871fff95fae289e7be9c8c0c Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* Increase API level to 0x600 (Windows Vista).Friedemann Kleint2016-05-251-5/+15
| | | | | | | | | | | | Directly link against dwmapi which should be present on Windows Vista and remove duplicated header constants. Only the functions for iconic live preview which are present on Windows 7 onwards are still dynamically resolved. Similarly, shell32 can now be directly linked, leaving SetCurrentProcessExplicitAppUserModelID() present on Windows 7 onwards. Task-number: QTBUG-51673 Change-Id: I54b6827d4582318542729fa43f73f2c4e41ec71f Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-02-151-3/+8
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I2b3428a182d8012eee19acbaa0666c184a26d8d0
| * Fix some CLANG warnings.Friedemann Kleint2016-01-191-3/+8
| | | | | | | | | | | | | | Remove C-style casts and fix integer conversion issues. Change-Id: I26e969e9108eb6f68c029ad5c507b95d95cd4d26 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Updated license headersAntti Kokko2016-01-191-15/+21
|/ | | | | | | | | | From Qt 5.7 -> LGPL v2.1 isn't an option anymore, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new LGPL header instead of LGPL21 one (in those files which will be under LGPL v3) Change-Id: Ie3a7eb2a349a0c80b8ae4ca5f4a32baf7a646fa1 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Add debug operators for QWinJumpList/QWinJumpListCategory/QWinJumpListItem.Friedemann Kleint2015-10-221-0/+22
| | | | | | Task-number: QTBUG-48751 Change-Id: I300c8cf5207f0636d8b8fc5922514d67634a1a58 Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
* Update copyright headersv5.5.0-alpha1Antti Kokko2015-02-161-7/+7
| | | | | | | | | 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: Ia5781193927251d6b6786f53a9b1cfba9e6d0782 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Remove setting of the default identifier from QWinJumpList.v5.4.0-rc1v5.4.0-beta1Friedemann Kleint2014-10-021-20/+5
| | | | | | | | | QWinJumpList does not work with a default-generated ID, this is only useful when the ID is properly registered. Task-number: QTBUG-41155 Change-Id: Ic0e0238fa3337d79ac7bc3d1efb314e1533355f2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Update license headers and add new license filesAntti Kokko2014-08-241-19/+11
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I4852e1e3fb306319e63d919675acad9a64e43db6 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Introduce structs for dynamically resolved functions per DLL.Friedemann Kleint2014-05-281-3/+5
| | | | | | | | | Preparing the adding of the iconic preview functions; the current approach of having one qt_ .. function does not scale well. Task-number: QTBUG-36730 Change-Id: Id70b9b13b8cd09d4d9c2830e9d6d0a413fd812a3 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Prefix the various CLSID/IID symbols by 'q'.Friedemann Kleint2013-11-081-15/+17
| | | | | | | | | | Avoid clashes with the various MinGW libraries. Task-number: QTBUG-34638 Change-Id: I1fe0e1b79b52f887522c1c19a15bbdcb256fd917 Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* QWinJumpList::addCategory(): don't crash when passing a null pointerJ-P Nurmi2013-09-301-0/+3
| | | | | Change-Id: Icd2e29d73bd5f64c9ce68219a23c80b4fe3aa3d1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Add QWinJumpList::identifierJ-P Nurmi2013-09-271-5/+67
| | | | | Change-Id: I38576256f2f90f9528a7210537255e35e4c598a9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* QWinJumpList: use QDir::fromNativeSeparators() for file pathsJ-P Nurmi2013-09-261-2/+2
| | | | | | Change-Id: Id5856a73611b40db3affbc9582e8b9461c492bea Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Fix QWinJumpList::clear() for recent & frequent categoriesJ-P Nurmi2013-09-261-28/+16
| | | | | | | | | It must actually instantiate the recent & frequent categories in order for clear() to be effective. Change-Id: Ic3fc9c95a1170b21f257637eaaac080e1c30db9a Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Jump Lists: introduce "categories" & hide COMJ-P Nurmi2013-09-201-527/+349
| | | | | | | | | | | | | | | | | | | | QWinJumpList now has three built-in categories: Recent, Frequent and Tasks. In addition to that, user can add custom categories. A new type, QWinJumpListCategory, represents all these categories, providing access to items in the category. The former COM-like begin(), append(), commit(), abort() API has been replaced by a more property/ attribute-based API. The jump list automatically invalidates and lazily rebuilds itself behind the scenes. Furthermore, the API has been minimalized for now - restoring the application identifier as a full-fledged property is in the works. Change-Id: I623a658b4b1fcfc881006f67e2300acadb483c97 Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Rename namespace QtWinExtras to QtWin.Friedemann Kleint2013-09-101-3/+3
| | | | | | | | | As discussed on mailing list. Change-Id: I7ef41d758730998e365d9e616118c4a7c811eebf Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Fix qdoc warningsJ-P Nurmi2013-08-291-2/+2
| | | | | | Change-Id: I64bf0be28d6144e40a191af70cb8b6d1d71773ee Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* Rename the QWinExtras namespace to QtWinExtrasJ-P Nurmi2013-08-281-3/+3
| | | | | Change-Id: I24cc4cfa5b51d14bc70a895d625c98e49af4537d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* QWinJumpList: fix memset() usageJ-P Nurmi2013-08-221-2/+2
| | | | | Change-Id: Ic6930f723a71c04107e6d34d812b3cbe8d0415a6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Revise QWinJumpList::addXxx()J-P Nurmi2013-08-161-49/+30
| | | | | | | | | | | | | Return the created item so that the user can adjust its properties of desired. Also, limit the amount of addLink() overloads so that the user has a chance to memorize the arguments. Offer only the most common arguments (executable & arguments) and the rest less common attributes may be then set via the returned pointer. Change-Id: Ic1575ac441fd44b5a7915bbae473970effeeb023 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Rename QJumpList(Item) to QWinJumpList(Item)J-P Nurmi2013-08-131-0/+731
Follow the existing QtWinExtras class naming convention. All the other public classes are currently named QWinXxx. Change-Id: I2509961e280b9794547e7420b941469fc8cdd2fa Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>