Review Request: Implementation of bug 269052 - Need a method to search within a chat window

David Edmundson kde at davidedmundson.co.uk
Sat Mar 26 03:06:02 CET 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100948/#review2181
-----------------------------------------------------------



app/chat-window.cpp
<http://git.reviewboard.kde.org/r/100948/#comment1802>

    If you're not going to use these why bother having them in your slot arguments?
    
    A slot can have fewer parameters that the signal it connects to.



lib/chat-search-bar.cpp
<http://git.reviewboard.kde.org/r/100948/#comment1808>

    Don't hardcode colours. 
    
    There's a whole set of colours you can get from KPalette. 



lib/chat-widget.h
<http://git.reviewboard.kde.org/r/100948/#comment1805>

    I would consider
    
    searchComplete(bool textFound);
    same for the two slots in the chat-search-bar, which are basically the same but with different colors. 



lib/chat-widget.h
<http://git.reviewboard.kde.org/r/100948/#comment1804>

    It's a bit unusual to write the word 'slot' in the method name.
    
    I like using onSomeEvent for my private slots, and normal method names for my public slots.
    



lib/chat-widget.cpp
<http://git.reviewboard.kde.org/r/100948/#comment1807>

    Why do we take the text as an arugment to the method yet take the flags from the searchbar. 
    
    I would suggest either both as arguments, or both from the search bar.
    
    Unless there's a good reason not to.
    



lib/chat-widget.cpp
<http://git.reviewboard.kde.org/r/100948/#comment1806>

    If you turn on case-senstive you don't update the searchTextFound (or not). 
    
    Why do you need to findText(QString()); ?
    
    I would highly consider merging this with 
    findTextInChat as to me it doesn't seem to be anything different.
    
    
    
    


- David


On March 26, 2011, 1:43 a.m., Francesco Nwokeka wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100948/
> -----------------------------------------------------------
> 
> (Updated March 26, 2011, 1:43 a.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Summary
> -------
> 
> Implementation of "search" within the chat window.
> The search widget is called via keyboard shortcut ( standard "ctrl+f ") and can also be modified by the user from the chat settings.
> 
> 
> This addresses bug 269052.
>     http://bugs.kde.org/show_bug.cgi?id=269052
> 
> 
> Diffs
> -----
> 
>   app/chat-window.h cde19e4 
>   app/chat-window.cpp b3407db 
>   lib/CMakeLists.txt 1639cfd 
>   lib/chat-search-bar.h PRE-CREATION 
>   lib/chat-search-bar.cpp PRE-CREATION 
>   lib/chat-widget.h dfdef64 
>   lib/chat-widget.cpp 5ddf3dd 
>   lib/chat-widget.ui 2dce82f 
> 
> Diff: http://git.reviewboard.kde.org/r/100948/diff
> 
> 
> Testing
> -------
> 
> wrote in a chat and looked for random text. Please try the patch and tell me if some functionality is missing
> 
> 
> Thanks,
> 
> Francesco
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-telepathy/attachments/20110326/1b1e04d8/attachment-0001.htm 


More information about the KDE-Telepathy mailing list