diff options
| author | Peter Penz <[email protected]> | 2008-02-14 22:57:00 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-02-14 22:57:00 +0000 |
| commit | 613a132a3697db603bca593a36f91ee3f9ccafdd (patch) | |
| tree | 7d0428403e84694e3346fd3beddaae63ced2b234 | |
| parent | 227ebb98eb03ae3b676c1459533d3522543818da (diff) | |
Bypass a temporary (?) regression (?) with the current Qt 4.4 beta version: it seems like QLayout::activate()/update() don't do a relayout anymore if the sizehint of a sub widget has been changed. I'll check this again with Qt 4.4.0.
svn path=/trunk/KDE/kdebase/apps/; revision=775119
| -rw-r--r-- | src/infosidebarpage.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index 30c4467b4..943033876 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -172,6 +172,17 @@ void InfoSidebarPage::resizeEvent(QResizeEvent* event) // try to increase the preview as large as possible m_preview->setSizeHint(QSize(maxWidth, maxWidth)); + + // --- + // TODO: The following workaround was not necessary with Qt 4.3.x + // but is mandatory with the current Qt4.4 beta version. Check with + // Qt 4.4.0 whether the issue is Dolphin specific + // (see PixmapViewer::setSizeHint()) or a regression in Qt. + QVBoxLayout* vBox = static_cast<QVBoxLayout*>(layout()); + vBox->removeWidget(m_preview); + vBox->insertWidget(0, m_preview); + // --- + m_urlCandidate = m_shownUrl; // reset the URL candidate if a resizing is done m_timer->start(TimerDelay); |
