Review Request: Fix Bug 152156 - KDE help center does not respect window placement policy

Maarten De Meyer de.meyer.maarten at gmail.com
Thu Apr 19 19:14:22 BST 2012



> On April 18, 2012, 6 p.m., Parker Coates wrote:
> > khelpcenter/mainwindow.cpp, line 170
> > <http://git.reviewboard.kde.org/r/104662/diff/1/?file=58010#file58010line170>
> >
> >     I've seen a few applications use a certain fraction of the screen size as the default. See http://websvn.kde.org/trunk/KDE/kdegames/kpat/mainwindow.cpp?view=markup#l118 . I'm not sure that's necessarily the best default, though.
> 
> Thomas Lübking wrote:
>     what's wrong with the last size?
>     (is kmainwindow, stores and likely restores size)
> 
> Parker Coates wrote:
>     Yes, but what's the last size if the app has never run before? :) The *default* size is used only if there isn't a previous size.

Indeed, default only matters on first run.

I do not have commit access, could somebody pleas submit?
Thanks


- Maarten


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


On April 18, 2012, 4:01 p.m., Maarten De Meyer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/104662/
> -----------------------------------------------------------
> 
> (Updated April 18, 2012, 4:01 p.m.)
> 
> 
> Review request for KDE Runtime and Cornelius Schumacher.
> 
> 
> Description
> -------
> 
> Fix Bug 152156 - KDE help center does not respect window placement policy
> 
> khelpcenter does not open in the middle of the screen with the kwin centered window placement policy.
> 
> 1) remove setGeometry on mainwindow
> 2) include defaultsize to setupGui (application looked strange when only using size hinting)
> 
> Any suggestions on a better default?
> 
> 
> This addresses bug 152156.
>     http://bugs.kde.org/show_bug.cgi?id=152156
> 
> 
> Diffs
> -----
> 
>   khelpcenter/mainwindow.cpp dd22425 
> 
> Diff: http://git.reviewboard.kde.org/r/104662/diff/
> 
> 
> Testing
> -------
> 
> Compiled, run, changed size, run again, remove configuration, run again
> 
> 
> Thanks,
> 
> Maarten De Meyer
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120419/981ccb81/attachment.htm>


More information about the kde-core-devel mailing list