diff options
| author | Peter Penz <[email protected]> | 2008-11-02 14:29:27 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-11-02 14:29:27 +0000 |
| commit | 4eaced49cd50642d3be152b9c68612a0f4a6c03b (patch) | |
| tree | 6ba9f6c04bd5a110dbb88c546ad2d64a39603f91 /src/dolphindetailsview.cpp | |
| parent | 4469d4d5a45c0f5de821a3b45d20abc9ee5755bf (diff) | |
assure that the autoresizing still works in combination with the "automatically expand folders during drag operations" feature
svn path=/trunk/KDE/kdebase/apps/; revision=879152
Diffstat (limited to 'src/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index b2425b93f..883f5a774 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -47,7 +47,7 @@ DolphinDetailsView::DolphinDetailsView(QWidget* parent, DolphinController* controller) : QTreeView(parent), - m_autoResize(true), + m_autoResize(true), m_expandingTogglePressed(false), m_keyPressed(false), m_useDefaultIndexAt(true), @@ -606,7 +606,10 @@ void DolphinDetailsView::slotHeaderSectionResized(int logicalIndex, int oldSize, Q_UNUSED(logicalIndex); Q_UNUSED(oldSize); Q_UNUSED(newSize); - if (QApplication::mouseButtons() & Qt::LeftButton) { + // If the user changes the size of the headers, the autoresize feature should be + // turned off. As there is no dedicated interface to find out whether the header + // section has been resized by the user or by a resize event, the following approach is used: + if ((QApplication::mouseButtons() & Qt::LeftButton) && isVisible()) { disableAutoResizing(); } } |
