From: Peter Penz Date: Wed, 15 Apr 2009 18:01:37 +0000 (+0000) Subject: Initialize the name-label widget with a maximum size. This is important, otherwise... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/b2c1a2a03c9a99794a8308e2b194442d6c2c8578 Initialize the name-label widget with a maximum size. This is important, otherwise at least one resize event would be needed to apply a maximum width. This gets a problem if the dock is overlapped by another dock: No resize event is emitted and the preferred size increases in an unlimited way. Result: when hovering files with very long filenames, the overall dock width will increase in an unexpected way. BUG: 189596 svn path=/trunk/KDE/kdebase/apps/; revision=954371 --- diff --git a/src/panels/information/informationpanel.cpp b/src/panels/information/informationpanel.cpp index 8fd29651a..041f540cc 100644 --- a/src/panels/information/informationpanel.cpp +++ b/src/panels/information/informationpanel.cpp @@ -740,6 +740,7 @@ void InformationPanel::init() m_nameLabel->setFont(font); m_nameLabel->setAlignment(Qt::AlignHCenter); m_nameLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + m_nameLabel->setMaximumWidth(KIconLoader::SizeEnormous); // preview m_preview = new PixmapViewer(this);