aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/platform/qtlabsplatformplugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update to latest qml CMake APICraig Scott2021-06-051-117/+0
| | | | | | | | | | | | | | The new qml CMake API places a closer relationship between the backing target and the plugin target. Both are typically created together and they share a lot of common details. Instead of creating them in different parts of the source tree, they are now specified together. The src/imports area has effectively been absorbed into the other corresponding subdirectories below src with this change. Task-number: QTBUG-91621 Change-Id: I9bd32e9eb78c198ccc9db04e2829303cac323502 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Fix Qt.labs.platform/MenuItem 1.1: expose iconIvan Tkachenko2020-05-151-0/+1
| | | | | | | | | | [ChangeLog][Platform][MenuItem] Expose MenuItem.icon.* property when imported as revision 1, which was erroneously not exposed at all. Task-number: QTBUG-84102 Pick-to: 5.15 Change-Id: I6d400c7d4e222b67c99b6f5a95ac66e0851630f2 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix deprecation warnings related to qmlRegisterType()Friedemann Kleint2019-09-051-2/+2
| | | | | | | | | | Use qmlRegisterAnonymousType() instead of qmlRegisterType(), fixing: qtquicktemplates2plugin.cpp:176:54: warning: 'int qmlRegisterType() [with T = QQuickApplicationWindowAttached]' is deprecated: Use qmlRegisterAnonymousType instead [-Wdeprecated-declarations] qtquicktemplates2plugin.cpp:176:54: warning: 'int qmlRegisterType() [with T = QQuickApplicationWindowAttached]' is deprecated: Use qmlRegisterAnonymousType instead [-Wdeprecated-declarations] Change-Id: If5788a78643ad7148c33c4515396b074d20d62ab Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Remove the code to manually initialize resources in static buildsSimon Hausmann2018-04-271-8/+0
| | | | | | | | | After commit be9a56e5e3ced5d0d668fa24e4c65ae928f2e25a in qtbase, this is not needed anymore. Instead the resource system injects the plugin entry point with a reference to all resources. Change-Id: Ic3fa0827ee6719b0a22f73b48667deb129089a6f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform: make icon a grouped propertyJ-P Nurmi2018-04-201-0/+5
| | | | | | | | | | | | | | | [ChangeLog][Platform][Menu] Deprecated iconName and iconSource properties in favor of icon.name and icon.source grouped properties. [ChangeLog][Platform][MenuItem] Deprecated iconName and iconSource properties in favor of icon.name and icon.source grouped properties. [ChangeLog][Platform][SystemTrayIcon] Deprecated iconName and iconSource properties in favor of icon.name and icon.source grouped properties. Task-number: QTBUG-67730 Change-Id: I08bbb2bb5ed2aaae02f9264c63fb6cfa04240a74 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add SystemTrayIcon::geometryJ-P Nurmi2018-04-181-0/+1
| | | | | | | | [Changes][Platform][SystemTrayIcon] Added geometry property. Task-number: QTBUG-67623 Change-Id: I5ef278398dfc660efdf58d36d9cdf1fede0d2e7c Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Qt.labs.platform: declare and register enums to the meta systemJ-P Nurmi2017-11-061-3/+3
| | | | | | | | | To make them correctly available in QML so that they also work as signal arguments. Task-number: QTBUG-64259 Change-Id: I5fa00871f96357d924661c4b8af323a0f1748c9d Reviewed-by: Liang Qi <liang.qi@qt.io>
* Build fix for -no-feature-systemtrayiconPaul Olav Tvete2017-03-101-2/+5
| | | | | Change-Id: If991e2311f37c1977cdf2a913b3f022e5f999f5f Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Welcome to 2017J-P Nurmi2017-01-091-1/+1
| | | | | Change-Id: If68cff4efacc7dc5719c8b8e61937e85e9076870 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix FileDialog::selectedNameFilter review findingsJ-P Nurmi2016-09-141-0/+1
| | | | | | | | | | | | | | | | FileDialog::nameFilters contains an array of name filter strings that combine the name and extensions. For example: - "Text files (*.txt)" - "HTML files (*.html *.htm)" When dealing with multiple name filters, it is quite clumsy to use a string type of 'selectedNameFilter' which is one of the above full file name filter string values. Make it possible to read/write the index of the selected name filter, and provide the filter's name and extensions separately. Change-Id: Ie416cc4ab3dcde93c10769b6f7ac44915307f194 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform: add experimental StandardPathsJ-P Nurmi2016-09-131-1/+10
| | | | | | | This complements the File/FolderDialog offering. Change-Id: I44a105724321092a6efc4126c8fb25f7d31b77e2 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform: register StandardButton for compatibilityJ-P Nurmi2016-08-131-0/+1
| | | | | | | StandardButton is used by QtQuick.Dialogs 1.x Change-Id: I12da1f00f60e08ac10fb5c0dda04e1d1c16179bc Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: add logging categories to help with debuggingJ-P Nurmi2016-08-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | Available categories: - qt.labs.platform.dialogs - qt.labs.platform.menus - qt.labs.platform.tray The output shows which implementation is used. Example: $ QT_LOGGING_RULES=qt.labs.platform.*=true ./texteditor qt.labs.platform.menus: MenuBar: QCocoaMenuBar(0x7fe27bdf7730) qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27bdf8450) qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27bdfa510) qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27e500000) qt.labs.platform.dialogs: FileDialog: QPlatformFileDialogHelper(0x7fe27e500f30) qt.labs.platform.dialogs: FileDialog: QPlatformFileDialogHelper(0x7fe27e501ac0) qt.labs.platform.dialogs: ColorDialog: QPlatformColorDialogHelper(0x7fe27e502920) qt.labs.platform.dialogs: MessageDialog: QWidgetPlatformMessageDialog(0x7fe27e523b40) qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27bcd9c30) Change-Id: I07fc8b13f05f365337bc171149bb848639b3fbd0 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: add MenuSeparator for convenience and consistencyJ-P Nurmi2016-08-121-0/+2
| | | | | Change-Id: I0c0aae219c81b9248a5a8a0fd0e78521cbe86360 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform: add FileDialog and FolderDialogJ-P Nurmi2016-06-271-0/+4
| | | | | Change-Id: I4328c273e48139d6ddd5a3d3c8492d06f48a5c24 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform: add MessageDialogJ-P Nurmi2016-06-221-0/+2
| | | | | Change-Id: I89f67fa4f620dc81dd9e7fe848f37ea5c12d5db7 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Platform: add FontDialogJ-P Nurmi2016-06-201-0/+2
| | | | | Change-Id: Icda7f8ad0a4cdaace1a2c33fd42cfd071d547a15 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform: add ColorDialogJ-P Nurmi2016-06-201-0/+2
| | | | | Change-Id: I5c2a89d50e3bd017a91161e510d3a4281881abf0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add QQuickPlatformDialogJ-P Nurmi2016-06-201-0/+4
| | | | | | | | The base class of the upcoming platform dialogs: ColorDialog, FileDialog, FontDialog, and MessageDialog. Change-Id: I2d4918b5d4f8a7f453aa8f314e13540cb2a8e2b5 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform system tray iconJ-P Nurmi2016-06-161-0/+4
| | | | | Change-Id: I25190e1ae485e86cfbed524a418884d47f21e83d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Platform menusJ-P Nurmi2016-06-161-1/+9
| | | | | Change-Id: Ifbca41ef384ca8fe8afefc61869f85c17db0f8c7 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Setup a Qt.labs.platform moduleJ-P Nurmi2016-06-161-0/+71
This change just prepares the infrastructure and imports an icon loader helper that will be used for the platform menu, dialog, and system tray icon implementations. Change-Id: I34a93050a7c988134c3daa986aca6021eac7a4d1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>