Review Request 127007: logviewer: Fix signals of search field

Martin Klapetek martin.klapetek at gmail.com
Mon Feb 8 17:59:16 UTC 2016



> On Feb. 8, 2016, 6:58 p.m., Martin Klapetek wrote:
> > logviewer/log-viewer.cpp, lines 340-342
> > <https://git.reviewboard.kde.org/r/127007/diff/2/?file=443773#file443773line340>
> >
> >     This semantically doesn't make sense - having a method named "clear" that needs a string passed and actually then it decides if it will clear or not. Clear should clear.
> >     
> >     What I would suggest instead is to revert the changes in this method and just create a lambda:
> >     
> >     connect(ui->globalSearch, &QLineEdit::textChanged, [=](const QString &text) { if (text.isEmpty()) { slotClearGlobalSearch()}});

Stupid markdown.

```c++
connect(ui->globalSearch, &QLineEdit::textChanged, [=] { if (text.isEmpty()) { slotClearGlobalSearch()}});
```


- Martin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127007/#review92173
-----------------------------------------------------------


On Feb. 8, 2016, 8:28 a.m., Niels Ole Salscheider wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127007/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2016, 8:28 a.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Repository: ktp-text-ui
> 
> 
> Description
> -------
> 
> This fixes the search in the log viewer.
> 
> 
> Diffs
> -----
> 
>   logviewer/log-viewer.h e6b6d3dbab67ceb3286bd402121e1b0504e8a0af 
>   logviewer/log-viewer.cpp 1ae0f7b87b0d8fee0587215fec38fac2af047b9d 
> 
> Diff: https://git.reviewboard.kde.org/r/127007/diff/
> 
> 
> Testing
> -------
> 
> - Builds
> - Searching works again
> 
> 
> Thanks,
> 
> Niels Ole Salscheider
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20160208/dd47b076/attachment.html>


More information about the KDE-Telepathy mailing list