subsurface/mobile-widgets/qml
Dirk Hohndel 01f1bea995 Mobile: ensure input fields stay visible after keyboard opens
When the user taps on a TextField to enter text, usually the virtual
keyboard will pop up. This code tries to ensure that the keyboard
doesn't cover the entry field that the user was trying to work on.

In order to centralize these changes, this introduces a new
SsrfTextField type which we use to also remove a few redundant default
settings that we previously had for every field. The one TextArea for
the Notes field didn't seem worth creating yet another type for, so
there the changes are done directly in DiveDetailsEdit.

The awkward timer mechanism is necessary as the keyboard pops up
asynchronously and then triggers a change of height for the app, so we
need to wait a little bit before doing the adjustment.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-10-14 13:39:45 -07:00
..
icons Mobile/filtering: add icons for filter and sort 2018-10-23 22:45:29 +01:00
About.qml update year to 2019 in about screens 2019-01-02 09:45:01 -08:00
CloudCredentials.qml Mobile: factor out syncToCloud [3/3] 2018-10-09 10:03:21 -07:00
CopySettings.qml Mobile: UI for selecting what to copy-paste 2018-12-21 09:13:37 +02:00
DiveDetails.qml Mobile: pick icons depending on theme 2019-10-14 13:39:45 -07:00
DiveDetailsEdit.qml Mobile: ensure input fields stay visible after keyboard opens 2019-10-14 13:39:45 -07:00
DiveDetailsView.qml Fix text in darkmode on mobile app. 2019-10-06 11:39:46 -07:00
DiveList.qml Mobile: move pageIndex function to main.qml 2019-10-13 11:32:27 -07:00
DownloadedDiveDelegate.qml QML UI: set proper active background color for downloaded dives 2018-10-07 17:43:34 +03:00
DownloadFromDiveComputer.qml Mobile: fix reloading dive list after download 2019-10-02 08:04:49 -07:00
GpsList.qml QML UI, trivial: set proper background color GPS list 2018-10-07 17:43:34 +03:00
HintsTextEdit.qml Mobile QML UI: bump Kirigami imports to 2.4 2018-10-01 05:29:46 -07:00
Log.qml Fix text in darkmode on mobile app. 2019-10-06 11:39:46 -07:00
main.qml Mobile: pick icons depending on theme 2019-10-14 13:39:45 -07:00
MapPage.qml Mobile: don't make sub-pages fill the parent 2019-10-13 11:32:27 -07:00
mobile-resources.qrc Mobile: ensure input fields stay visible after keyboard opens 2019-10-14 13:39:45 -07:00
qtquickcontrols2.conf
Settings.qml Fix text in darkmode on mobile app. 2019-10-06 11:39:46 -07:00
SsrfButton.qml Mobile QML UI: bump Kirigami imports to 2.4 2018-10-01 05:29:46 -07:00
SsrfCheckBox.qml Mobile QML UI: bump Kirigami imports to 2.4 2018-10-01 05:29:46 -07:00
SsrfSwitch.qml Mobile UI: make SsrfSwitch resizable 2018-10-21 14:43:41 -04:00
SsrfTextField.qml Mobile: ensure input fields stay visible after keyboard opens 2019-10-14 13:39:45 -07:00
StartPage.qml Mobile QML UI: bump Kirigami imports to 2.4 2018-10-01 05:29:46 -07:00
ThemeTest.qml Mobile QML UI: bump Kirigami imports to 2.4 2018-10-01 05:29:46 -07:00