Commit Graph

321 Commits

Author SHA1 Message Date
tomFlowee 0f993e07ca Fix copy paste error. 2022-12-21 12:25:28 +01:00
tomFlowee 7cedf20844 Move parsing of '--offline' to be as soon as possible 2022-12-21 12:24:21 +01:00
tomFlowee 5a88fcbe04 Follow the rowproxy new data storage.
We inverted the rowProxy ordering 2 weeks ago, but not all usages of
this change were updated. This should cover those unupdated usages.
2022-12-20 16:28:49 +01:00
tomFlowee ed918d6039 Small API fixes
Move the signals to the right class and remove an include from the
header file.
Also provide a context object in QTimer::singleShot. Useful to avoid
dangling pointers being dereferenced on shutdown.
2022-12-20 15:20:16 +01:00
tomFlowee 1cad0fc3e9 Special case 'yesterday' here too. 2022-12-19 23:43:08 +01:00
tomFlowee edab1e09f0 Use non-singleton buffer
As this call can be made on deletion of the FloweePay singleton, avoid
using the thread-local singletons and avoid deletion-order issues.
2022-12-19 23:29:01 +01:00
tomFlowee 6922ed4e0c Remove no longer needed task. 2022-12-19 22:07:00 +01:00
tomFlowee 192b178989 Encode url before entering in QR.
Turns out that the image-source concept takes a special URL which then
decodes our earlier encoded bip21 string. So we need to make sure we
encode it again before pushing it into a QR.
2022-12-19 16:53:52 +01:00
tomFlowee 40c3222f4a Rename property and minor UX cleanups
Rename AccountInfo property 'isDefautWallet' to 'isPrimaryAccount'.
2022-12-19 14:06:27 +01:00
tomFlowee 80200fa28c Start new mobile page 'wallet information'.
This shows all wallets and wallet details.

Additionally, this moves the AccountTypeLabel out of the desktop page to
be reusable. Not so much because its hard, but because they have
translations and we'd better push shared translations into the common
translation unit as opposed to duplicating it.

The LabelWithClipboard now has as default context-menu-item text "Copy"
instead of "Copy Address".
2022-12-16 19:57:43 +01:00
tomFlowee c12f8cea64 Cleanup QRScanner QML component design
Avoid the ugly 'Component.onCompleted' and instead make this is a
property 'autostart'.
2022-12-15 14:54:13 +01:00
tomFlowee bdbbdd1726 Remove priceFor overload
The downside of this method is that changes in price don't cause the
result to be re-calculated.
Its not very declarative, in other words.
2022-12-15 14:37:58 +01:00
tomFlowee 7af28e9d22 Use cheaper malloc on save. 2022-12-15 12:39:44 +01:00
tomFlowee ebae4b6bcd Add gui-font-scaling config option.
Allow the user to change the font sizing of the GUI.
2022-12-15 12:37:21 +01:00
tomFlowee 3f32f759e7 Improve camera stability.
This adds some timers and similar hacks which seem to have a very
positive result on getting an actual picture consistently from the
camera.

Tested this on 3 actual phones, of different make and versions.

Fixes: #11
2022-12-14 16:23:51 +01:00
tomFlowee 039a435d5f Be more accepting in what we receive in a QR payment
We fetch the message from either the 'label' or the 'message' url
variable now.
2022-12-14 14:23:43 +01:00
tomFlowee a0c4f9be7a Much improvement with the camera section.
This adds a prettty cutout screen and better feedback on the camera view
popping up.
We also make visible the scan overlay instantly, hiding out any other UI
that is hidden beneath it.

We correctly handle various odd issues with Qt / Android.

- the permissions request (QFuture) returned in a different thread, we
now move back to the main thread before doing any calls on the
multimedia objects.

- The popping up of the android permissions requestor actually makes the
app think its being made inactive. Now we no longer cancel the QR scan
request in such cases.
2022-12-14 14:21:56 +01:00
tomFlowee 60341e4f8a Fix regression; move define to the root level
Yesterdays refactor causes the OS defines to only be specified for the
shared library. This makes the app-specific compiles receive the define
again too.
2022-12-14 14:17:04 +01:00
tomFlowee bad7419886 Make camera usage on desktop not a CPU hog
This now waits the QR parsing thread should we have time
left over before the next frame.
2022-12-13 20:53:58 +01:00
tomFlowee 702735e17a Fix the grouping of transactions.
This adds a unit test as well, which is a bit tricky as this is date
specific.
2022-12-13 20:53:58 +01:00
tomFlowee 163e615613 Move sources into the src subdir
Slowly the amount of cpp sources has been growing to the point
where its just too much to store in the root of the project.
I think they are more happy in a subdir as well, getting an elevated
position for themselves.
2022-12-13 11:54:03 +01:00