aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/localstorage/localstorage/Header.qml
Commit message (Collapse)AuthorAgeFilesLines
* Update localstore example to use QtQuickControls2Oliver Eftevaag2021-02-161-11/+11
| | | | | | | | Removing MyButton.qml and replacing it with QtQuickControls2. Task-number: QTBUG-90884 Change-Id: Ie1b22e817dedfd71593b074561bdfe2e7dc36008 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Avoid discouraged patterns in examplesUlf Hermann2020-02-111-4/+7
| | | | | | | | | | | In particular, use required properties where applicable, explicitly import QtQml where we use it, avoid unqualified access into the root scope of a component, use JavaScript functions with explicit parameters as signal handlers. Change-Id: I3eaaba47cc3c7a2a12d488e36f9eec145cedbb0e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* examples/quick/localstorage: Fix some linter warningsMaximilian Goldstein2019-11-281-5/+5
| | | | | | | | Also fixes MouseArea using anchors within a Layout and relying on properties that might be null. Change-Id: I9078ded60870019c8ac9f8ff5d52d9924b51c49c Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Register QRegularExpressionValidator in QtQuickUlf Hermann2019-06-121-5/+5
| | | | | | | | This should replace QRegExpValidator. RegExpValidator is deprecated now. Task-nunber: QTBUG-72588 Change-Id: I072deb382914fd322ce192509782b241824ccd7b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Fix example code to always use BSDKai Koehne2017-10-181-12/+35
| | | | | Change-Id: I1370ad883bb9ad821c7f1f5ac5092e9040ddc2e9 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Example: correction initialization fields Header.qmlNico Vertriest2016-12-131-8/+8
| | | | | | | | Error msg: Can't assign to existing role 'distance' of different type [String -> Number] Change-Id: I28842ed25a56077e52496a229294ef992406ca1d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Example: Improve the localstorage exampleNico Vertriest2016-12-121-0/+173
- insert/update/delete instead of only insert - database connection and sql handled in Database.js Change-Id: I513b23061e569f4511dd166ed79898db7f628139 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>