D28192: WIP: Refactor dictionary runner

2020-04-06 Thread Harald Sitter
sitter added inline comments. INLINE COMMENTS > alex wrote in dictionaryrunner_config.cpp:29 > That makes sense but one question: The doc says: `...However, if you for some > reason reimplement it and also are using KConfigXT, you must call this > function`, does this mean we can assume that

D28192: WIP: Refactor dictionary runner

2020-04-06 Thread Alexander Lohnau
alex added inline comments. INLINE COMMENTS > sitter wrote in dictionaryrunner_config.cpp:29 > That's an implementation detail though, is it not? From the outside we > shouldn't make assumption about what the implementation does unless the > documentation says what we can assume. > Today the

D28192: WIP: Refactor dictionary runner

2020-04-06 Thread Harald Sitter
sitter added inline comments. INLINE COMMENTS > alex wrote in dictionaryrunner.cpp:90 > The current behavior is that KRunner closes when a match is selected. > But if you set the data, for instance: > `match.setData(QStringLiteral("Hello There!"));` > The text `Hello There!` will show up in

D28192: WIP: Refactor dictionary runner

2020-03-28 Thread Alexander Lohnau
alex added inline comments. INLINE COMMENTS > sitter wrote in dictionaryrunner.cpp:90 > You could simply use the lastPartOfSpeech I would guess. From what I've seen > and what Kai tells me you really only need to set setData if you want to > implement actions (`::actionsForMatch`) and need to

D28192: WIP: Refactor dictionary runner

2020-03-26 Thread Harald Sitter
sitter added inline comments. INLINE COMMENTS > config_keys.h:5 > + */ > + > +static const char CONFIG_TRIGGERWORD[] = "triggerWord"; Include guards please > dictionarymatchengine.cpp:85 > m_wordLock.lockForRead(); > -foreach (ThreadData *data, m_lockers.values(source)) { > +for

D28192: WIP: Refactor dictionary runner

2020-03-23 Thread Harald Sitter
sitter added a comment. About fixing the UX: There is some kind of preview tech in milou which you can take a look at and maybe build upon. The line space is just never going to be enough for a text only representation of a dict entry, plus it looks fairly forced anyway. So, my thinking

D28192: WIP: Refactor dictionary runner

2020-03-21 Thread Alexander Lohnau
alex created this revision. alex added reviewers: broulik, ngraham, sitter, mlaurent. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. alex requested review of this revision. REVISION SUMMARY The config key has been moved to a separate file, some foreach have been