mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
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
This commit is contained in:
parent
2c27e9489a
commit
e6d80dd25c
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue