From 8f975fec469798b75a6aa11f3d97ac51ee23ae8c Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 15 Feb 2008 19:40:27 +0000 Subject: David says: "PixmapViewer::setSizeHint should call updateGeometry() instead of all those layout hacks :)" - and as always David was right :-) CCMAIL: faure@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=775421 --- src/pixmapviewer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/pixmapviewer.cpp') diff --git a/src/pixmapviewer.cpp b/src/pixmapviewer.cpp index f535475aa..416e53f1f 100644 --- a/src/pixmapviewer.cpp +++ b/src/pixmapviewer.cpp @@ -77,9 +77,7 @@ void PixmapViewer::setPixmap(const QPixmap& pixmap) void PixmapViewer::setSizeHint(const QSize& size) { m_sizeHint = size; - if ((parentWidget() != 0) && (parentWidget()->layout() != 0)) { - parentWidget()->layout()->activate(); - } + updateGeometry(); } QSize PixmapViewer::sizeHint() const -- cgit v1.3