summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Refactor SettingsUI source code and add QML module supportPasi Petäjäjärvi2021-12-1451-3524/+5
| | | | | | | | | | | | | | Split application and plugins structure to use QML modules feature Move settingsui binary and plugins it uses under examples as those are not really documented nor production quality. Task-number: QTBUG-97737 Pick-to: 6.2 6.3 Change-Id: I4b030a5a42b29554a45c23eab4170be980cd5dc5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Do not leak QNetworkSettingsService instances for unnamed networksRobert Griebl2021-12-032-22/+63
| | | | | | | | | | | | | | | | | For unnamed/hidden networks, a QNetworkSettingsService object was allocated every time connman reported these networks via its ServicesChanged signal. Depending on the system setup, this could happen as often as every 30sec. We now track these objects in m_unnamedServices and m_unknownServices to avoid those re-allocations. Also fixed a potential dangling pointer being returned from current{Wifi,Wired}Connection() Fixes: QTBUG-94864 Pick-to: 5.15 6.2 Change-Id: I0a217b1bd334073cc6621397ad09ce6a98776ab1 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
* Fix servicesChanged() signal not being sentJanne Juntunen2021-12-021-1/+5
| | | | | | | | | | | Added servicesChanged() signal emitting when QNetworkSettingsManager notices that an existing wireless access point has disappeared. This functionality was missing previously. Fixes: QTBUG-90574 Pick-to: 5.15 6.2 Change-Id: I21c22d2fe30daa980db0db90419fdd4051add29d Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
* Fix exported QML typesPasi Petäjäjärvi2021-11-044-14/+14
| | | | | | | | | | | Currently exposed QML API is incorrect. Also move folder to prevent issues with pch generation with syncqt Task-number: QTBUG-97737 Change-Id: Iac58a2ba90f87302fc52a608ce7dea9acaedbdb6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Doc: Remove references to qmake support, it's already gonePasi Petäjäjärvi2021-10-271-8/+0
| | | | | | Pick-to: 6.2 Change-Id: I5ae83f4e68ae292926246e195855451e6e9ae8a4 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
* CMake: use LIBRARIES in pluginsSamuli Piippo2021-09-223-3/+3
| | | | | | | | | | Fix CMake warnings caused by using PUBLIC_LIBRARIES in plugins. Plugins are not intended to be linked to. They should not have any public properties, but LIBRARIES instead of PUBLIC_LIBRARIES. Pick-to: 6.2 Change-Id: I35644c7ea97f03f26086c2ae5d2ea14a9e7a0a78 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
* Add full include path for dbus headerSamuli Piippo2021-09-221-1/+1
| | | | | | | src/networksettings/connman/connmancommon.h:33:10: fatal error: QtDBus: No such file or directory Change-Id: I4f6b4870533e6c178d425ea6d06fb2c7bba8564e Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
* Port qtdeviceutilities to use declarative typesDan Ackers2021-06-2423-702/+274
| | | | | | Task-number: QTBUG-94426 Change-Id: I9ac17f38eccff96e25a6c1d40998b222d349274d Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* CMake: skip build on wasmSamuli Piippo2021-06-141-5/+1
| | | | | | | | ... and do some cleanup on the CMake files. Change-Id: I999a76728bb5af1f53a3bde076143febc51d4d2c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* CMake: Update to latest Qt CMake APISamuli Piippo2021-06-145-74/+27
| | | | | | | Task-number: QTBUG-91621 Fixes: QTBUG-94396 Change-Id: Ieaf5241eeb297a86775bb784c39217eb2b92b1b9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove all qmake filesSamuli Piippo2021-06-1410-175/+0
| | | | | | | Support builds only with CMake. Change-Id: I4b242a27d2d747ffa2d9b55a43f0d2b8f5f4cbc2 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Doc: Fix documentation build issuesTopi Reinio2021-05-054-27/+16
| | | | | | | | | | | | * Add dependency to Qt Core for the documentation build; QDoc requires Qt-specific include paths * Restore custom module header to pull in NetworkSettings include path * Restore doc.pro as it's referenced from src.pro Task-number: QTBUG-93174 Change-Id: Ie06858bd6737348a0a7711560be83eef60de3af6 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Support Conan buildsLassi Lehikoinen2021-03-161-3/+1
| | | | | | Task-number: QTBUG-87956 Change-Id: I9ffbaa512db918d406489e5d9667c26b95c3dd54 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Enable documentation buildLassi Lehikoinen2021-03-043-17/+4
| | | | | | | | | Added a configuration flag to build the documentation. Qttools dependency is required for the QDoc for building the docs. Task-number: QTBUG-90829 Change-Id: I8dbff713184939db24f087129b3891e5a553adad Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Update documentation regarding Qt 6 changesLassi Lehikoinen2020-12-295-58/+31
| | | | | | Task-number: QTBUG-88332 Change-Id: Ie6b9310e73b5515c97c892fbc27cd89009011c98 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Modify settingsui to work against Qt 6Lassi Lehikoinen2020-12-21111-302/+102
| | | | | | | | | | | | | Following modules are removed in Qt 6 - XmlListModel - QtGraphicalEffects Adapt settingsui to work without them. Also remove needless resources and make miscallaneous improvements. Task-number: QTBUG-89065 Change-Id: Ie66d73e4d8f9c1dd4cbec2fe5f9f71f32f7d1bdf Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Build device utilities with CMake and qmake against Qt 6Lassi Lehikoinen2020-12-1623-25/+336
| | | | | | | | Also fix compiler warnings. Task-number: QTBUG-88317 Change-Id: Iff6014613a7d12426b6fe692dff0000c92930ace Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Remove all device utilities except network settingsLassi Lehikoinen2020-12-1692-7827/+1
| | | | | | | | | Also remove USB ethernet functionality from Qt Network Settings. Task-number: QTBUG-88315 Change-Id: I06c41b61854b57f57c264b3c98940333902222d2 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
* new menu item for usb ethernet protocol selectionRami Potinkara2020-07-156-81/+357
| | | | | | Task-number: QTBUG-83011 Change-Id: I8098ef26c9fa42cdf301145937eca011365d6f19 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Doc: Override generated include statementPaul Wicking2020-06-301-0/+2
| | | | | | | | | | | | Specify the containing header file with the \inheaderfile QDoc command. Pick-to: 5.15 Fixes: QTBUG-81742 Change-Id: I15421748f2b5da636e4dbf9734720d0a82ecece2 Reviewed-by: Tarja Sundqvist <tarja.sundqvist@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Doc: Override generated include statementPaul Wicking2020-06-301-0/+1
| | | | | | | | | | | | Specify the containing header file with the \inheaderfile QDoc command. Pick-to: 5.15 Fixes: QTBUG-81741 Change-Id: I31b3d4b410877a0c8e28fea0603a14e0ba0148ad Reviewed-by: Tarja Sundqvist <tarja.sundqvist@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Change NTP setting synchronouslySamuli Piippo2020-05-121-1/+1
| | | | | | | | | | | | | Changing both NTP and Time may lead to error: Error org.freedesktop.timedate1.AutomaticTimeSyncEnabled: Previous request is not finished, refusing. Make sure we finish NTP request before attempting to set Time. Task-number: QTBUG-80721 Change-Id: I97c945b4ad4eeed6b077e7843ba061784592c299 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix time zone selectionSamuli Piippo2020-05-121-0/+1
| | | | | | | | | | Set initial index to invalid to correctly map TimeManager.timeZone to the model index, otherwize index 0 was always used for the time zone when switching views. Task-number: QTBUG-80721 Change-Id: Ia242bbde9706e8771ffa9a630fdd8e50ed7ff1e2 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Use function syntax for ConnectionSamuli Piippo2020-05-127-10/+10
| | | | | | | Implicitly defined onFoo properties in Connections are deprecated. Change-Id: I973a363437df27e0d7ad12e08991b211d62357dd Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* fix incomplete QPainterPathMikko Gronoff2020-03-121-0/+1
| | | | | | | | Fix error: aggregate 'QPainterPath path' has incomplete type and cannot be defined Change-Id: I2f169fa0a5d0def2f9cc485270905b4395738def Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Mikko Gronoff2019-10-091-1/+1
|\ | | | | | | | | | | | | | | * origin/5.13: fad870b Merge remote-tracking branch 'origin/5.12' into 5.13 39772d9 Fix static ip address showing after reconnection Change-Id: I48a3f8ef1c787c37ae9c1fa0373ef9c797fd21df
| * Merge remote-tracking branch 'origin/5.12' into 5.13Mikko Gronoff2019-10-081-1/+1
| |\ | | | | | | | | | | | | | | | | | | * origin/5.12: 39772d9 Fix static ip address showing after reconnection Change-Id: I534bd8b4877893750fb902238bb8ff44394b8286
| | * Fix static ip address showing after reconnectionTeemu Holappa2019-10-081-1/+1
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-76224 Change-Id: I2684941df342c2a9ee0439a2e13a8894dd862965 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* | | Fix compiler warnings in network settingsTeemu Holappa2019-10-081-4/+3
|/ / | | | | | | | | Change-Id: I4dbcb432c404bdb167a986390aa90c1092f88593 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into 5.13Mikko Gronoff2019-10-0316-2201/+1
|\| | | | | | | | | | | | | * origin/5.12: 330b6f0 Drop wpa_supplicant from NetworkSettings Change-Id: I593834799c5ca47be3bf5d37378e3ccb8a334aed
| * Drop wpa_supplicant from NetworkSettingsAssam Boudjelthia2019-10-0216-2201/+1
| | | | | | | | | | | | | | | | | | wpa_supplicant is broken and have not been in use for several Qt releases, thus it's being dropped. Fixes: QTBUG-78442 Change-Id: Ia3645b54b22a2959b7f65fdec10b8beaa262ea1f Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* | Doc: Fix documentation warningsTopi Reinio2019-09-121-2/+1
| | | | | | | | | | | | | | No such QDoc command '\readwrite', plus minor language editing. Change-Id: I4b385343a51e95be42dcbf27c4b1b30793a9c6da Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Add unit of measurement to the display sizeSamuli Piippo2019-08-131-1/+1
| | | | | | | | | | Change-Id: If599542c4b0d5d0b1d9a3788e4468a6a5fcf68c9 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Add an example snippet to Network settings manager classTarja Sundqvist2019-08-071-1/+41
| | | | | | | | | | | | | | | | | | The NetworkSettingsManager class documentation is updated with an example code snippet. Task-number: QTBUG-76810 Change-Id: Ic02109332281357c941dec77fe2995988cbc9359 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into 5.13Qt Forward Merge Bot2019-08-032-9/+7
|\| | | | | | | Change-Id: I040ffc2c6edfb8115aa43da738e326a758117cc8
| * Set service type to NetworkSettingsType.Wired in onServiceChangedAssam Boudjelthia2019-07-301-2/+3
| | | | | | | | | | | | | | | | | | | | In WiredSettings.qml, onServiceChanged was being executed over and over while the correct service type was not being set before that. Fixes: QTBUG-71341 Change-Id: I15a097fbb14acfb4ab18ff3541689e296f3ea84c Reviewed-by: Jani Launonen <jani.launonen@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
| * Remove duplicate nested isValid() conditionAssam Boudjelthia2019-07-301-7/+4
| | | | | | | | | | | | | | | | | | The if condition is duplicated in QNetworkSettingsServiceFilter::filterAcceptsRow() Change-Id: Ie93044cc11421c4a6247cc2e511c04036b2f625b Reviewed-by: Jani Launonen <jani.launonen@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into 5.13Qt Forward Merge Bot2019-07-273-1/+50
|\| | | | | | | Change-Id: Ieccf7c09a854bd3b84dd5c7d0fe97df867da7ea5
| * Add missing settings properties of viewSettings and appFontAssam Boudjelthia2019-07-243-1/+50
| | | | | | | | | | | | | | | | | | Those properties make SettingsUI dependent on qtlauncher, thus the need to add the necessary values here. Fixes: QTBUG-68987 Change-Id: I8d194317af341048a5b3607e8b796947fb60bff6 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* | Implement network auto connection propertyKari Hormi2019-06-204-9/+33
| | | | | | | | | | | | Task-number: QTBUG-76537 Change-Id: I9388854a65706c643de2f184e6e680458af7bc1e Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* | Implement setAutoConnect() functionKari Hormi2019-06-194-3/+16
|/ | | | | | | | | | This commit strictly implements the setAutoConnect function, but does not provide anything else. AutoConnect status query should still be implemented. Task-number: QTBUG-75729 Change-Id: I73e7ba9efe7c4efe6e46810c3efe054473f0a7e2 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* Fix documentation build warningTarja Sundqvist2019-03-203-3/+51
| | | | | | | | Some build warnings fixed. The documentation was built with Qt 5.9. Change-Id: I8f988c1267a6a6ed925cfac1f0cd40547ffc8160 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix the list of linked Device Utilities modulesTarja Sundqvist2019-03-1826-131/+274
| | | | | | | | | | | All Device Utilities modules are listed in the main page. Also All C++ classes / All QML Types pages added. Task-number: QTBUG-74231 Change-Id: Ia6b091e6d136b844c36de94f8fafa0bb7b199777 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Enable boot2qt launcher automatic demo modeSami Nurmenniemi2019-02-042-0/+2
| | | | | | | Task-number: QTBUG-72852 Change-Id: I0e134e76721e73721a8318534bbaa12d68c92ca7 Reviewed-by: Tuomas Heimonen <tuomas.heimonen@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Doc: Fix help contents in Qt CreatorLeena Miettinen2018-12-101-9/+9
| | | | | | | | | The QML Types and Examples links were missing in the Contents view in the Qt Creator Help mode. Change-Id: Ib0555364f19c2e859d5da9f80fa22b2d932c8d92 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Display: fix padding on the TextFieldsSamuli Piippo2018-11-271-0/+8
| | | | | | | | Without the padding, the text was partially covered by the background rectangle. Change-Id: Ic5f6d60a5ff1256f89a911edf41a831e3d53a793 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Update RegionSelect filter box appearanceSamuli Piippo2018-11-121-2/+6
| | | | | | | | | Make the text field appear more like the guidelines suggests. Without the padding, the text was partially covered by the background rectangle. Change-Id: Iece9990b2f8caa36bd947157ba8314a08aea3592 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix combobox selection areaSamuli Piippo2018-11-122-12/+11
| | | | | | | | | Extend the touch area to cover whole compobox width. Also with QTBUG-49224 now fixed, previous workaround can be removed. Change-Id: Iabf784ec91fac839da19a3615a6977a99e532a40 Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* wifi: enable manual connect only when wifi is enabledSamuli Piippo2018-11-081-0/+6
| | | | | | | | | Gray out and disable manual wifi connect and disconnect buttons when wifi is not enabled. Enable disconnect button only when connected to a wifi. Change-Id: I275d3660f20689bb25dc477211a3540df073c270 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix language filter textfiledSamuli Piippo2018-11-081-21/+16
| | | | | | | | | Place holder text should be white, and remove unncessary row layout that caused layout problems when virtual keyboard was shown. Change-Id: I94c38de9fa04d1a60dc36bc79123ed3dc7244d7d Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>