[KPhotoAlbum] Patch: returning from fullscreen to window does not resize to viewer size
Jesper K. Pedersen
blackie at blackie.dk
Mon Nov 27 08:02:46 GMT 2006
Indeed that looks odd. I've applied your patch, and then we have to look at
how to avoid the jumping after next release.
thanks
Jesper.
On Tuesday 21 November 2006 12:45, Henner Zeller wrote:
| Hi,
| Due to a change introduced in rev. 604029, the viewer is always
| resized to full window on toggeling the size; this results in smoother
| scaling of the image (with some odd jumping behaviour however), but
| requires to always resize the window back when toggeling back. In the
| course of that, we can get rid of the _sized variable:
|
| Patch:
| http://vicdor.org/kpatches/#viewer-resized-from-fullscreen
|
| And: is there a reason, why the resize() to full window is _outside_
| the fullscreen-if condition ? IMHO, this would make more sense to me:
|
| ----------
| void Viewer::ViewerWidget::setShowFullScreen( bool on )
| {
| - // To avoid that the image is first loaded in a small size and
| the reloaded when scaled up, we need to resize the window right away.
| - resize( qApp->desktop()->screenGeometry().size() );
| if ( on ) {
| + // To avoid that the image is first loaded in a small size
| and the reloaded when scaled up, we need to resize the window right
| away.
| + resize( qApp->desktop()->screenGeometry().size() );
| KWin::setState( winId(), NET::FullScreen );
| moveInfoBox();
| }
| ------------
|
| cheers,
| -henner
| _______________________________________________
| KPhotoAlbum mailing list
| KPhotoAlbum at kdab.net
| http://mail.kdab.net/mailman/listinfo/kphotoalbum
--
Having trouble finding a given image in your collection containing
thousands of images?
http://www.kphotoalbum.org might be the answer.
More information about the Kphotoalbum
mailing list