[Weather applet] Let Return invoke search
AbandonedPublic

Authored by broulik on Feb 19 2018, 3:06 PM.

Details

Reviewers
kossebau
Group Reviewers
Plasma
Summary

Depends on D10659

BUG: 361968
FIXED-IN: 5.13.0

Test Plan

Hit Return after opening dialog, closed
Hit Return with search focused but nothing in it, closed
Hit Return with search query, started search (no search providers seem to be enabled by default, though, and no hint is provided why I cannot search..)

Diff Detail

Repository
R114 Plasma Addons
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Feb 19 2018, 3:06 PM
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 19 2018, 3:06 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Feb 19 2018, 3:06 PM
broulik edited the summary of this revision. (Show Details)
broulik edited the summary of this revision. (Show Details)

Not tested, but seems good to me by pure reading.

applets/weather/package/contents/ui/config/ConfigWeatherStation.qml
33

Slightly undecided: given above we use the length property as implicit bool, dping a value comparison here instead seems inconsistent.

Just saying, no own preference and not enough years of JS/QML done to have strong opinions about it :) Do we have some accepted JS tricks with Plasma code style?

broulik edited the summary of this revision. (Show Details)Feb 23 2018, 10:24 AM
mart added a subscriber: mart.Mar 23 2018, 2:17 PM

any news on this?

In D10660#232255, @mart wrote:

any news on this?

Blocked a little by me having the desire to have the secret API used here made public documented, cmp. question to you in https://phabricator.kde.org/D10659#212230

No alternative solution from myself otherwise, so if you think this is a future-proof solution, fine with me.

mart added a comment.Mar 23 2018, 2:23 PM

yeah, for me that other patch is ok, is not optimal but should all be documented in line in that file

maaaybe introducing a root component for those config uis.. not sure

kossebau added inline comments.Mar 23 2018, 2:26 PM
applets/weather/package/contents/ui/config/ConfigWeatherStation.qml
33

could be "readonly property" as well, no?

I would like to consider discarding this patch and the related introduction of the "acceptOnReturnPressed" property to Plasma config page concept only needed for this so far.

I am currently drafting to rework the UI of the weather station page in the dialog, to add support for multiple stations (following request to match feature of the old yawp widget).

And instead of having the current embedded weather station picker, whose interaction pattern has been reported to be confusing at least to some, go to follow the pattern as we know it from e.g. the file picker, where another separate subdialog is opened for just that purpose of selecting an item.

broulik abandoned this revision.Apr 24 2018, 9:51 PM