diff options
| author | Peter Penz <[email protected]> | 2009-04-15 18:01:37 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-04-15 18:01:37 +0000 |
| commit | b2c1a2a03c9a99794a8308e2b194442d6c2c8578 (patch) | |
| tree | 688c2bafa25f16b6dab57fe5287d1676a4510afb /src/panels/information/informationpanel.cpp | |
| parent | 19139afd779791d4deebb709e3e78daeed809e53 (diff) | |
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
Diffstat (limited to 'src/panels/information/informationpanel.cpp')
| -rw-r--r-- | src/panels/information/informationpanel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
