Review Request 128159: Suggest to use setupGUI() instead of setXMLFile()

David Faure faure at kde.org
Mon Jun 13 12:27:18 UTC 2016


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




src/mainwindow.h (line 43)
<https://git.reviewboard.kde.org/r/128159/#comment65128>

    Hmm, Default includes Create, so this is going to call createGUI twice, the first time wrongly (no part yet).
    
    The other reasons why setupGUI didn't work for KParts::MainWindow seem to be gone though, I see that the standard actions for configuring Keys, StatusBar, ToolBar should work.
    
    So maybe just adjust the example to pass e.g. Keys|ToolBar|Save, and mention that Default shouldn't be used?


- David Faure


On June 12, 2016, 4:57 p.m., Elvis Angelaccio wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128159/
> -----------------------------------------------------------
> 
> (Updated June 12, 2016, 4:57 p.m.)
> 
> 
> Review request for KDE Frameworks and David Faure.
> 
> 
> Repository: kparts
> 
> 
> Description
> -------
> 
> KXMLGui-based apps should always use `setupGUI()`, which has several advantages over `setXMLFile()` and calls it implicitly. 
> 
> This patch also adds a code snippet about this.
> 
> 
> Diffs
> -----
> 
>   src/mainwindow.h b672a35cba92475200ff15620a21150da19582dd 
> 
> Diff: https://git.reviewboard.kde.org/r/128159/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Elvis Angelaccio
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160613/ef47cfda/attachment.html>


More information about the Kde-frameworks-devel mailing list