From 15197173e14e62cebb975e9179e0b036bcf39421 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Fri, 27 Sep 2024 17:47:09 -0400 Subject: [PATCH] Fix horizontal scrollbar not showing in group view * Fixes #11300 --- src/gui/group/GroupView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/group/GroupView.cpp b/src/gui/group/GroupView.cpp index 1fc4700b0..46cc0af6a 100644 --- a/src/gui/group/GroupView.cpp +++ b/src/gui/group/GroupView.cpp @@ -33,6 +33,7 @@ GroupView::GroupView(Database* db, QWidget* parent) QTreeView::setModel(m_model); setHeaderHidden(true); setUniformRowHeights(true); + setTextElideMode(Qt::ElideNone); // clang-format off connect(this, SIGNAL(expanded(QModelIndex)), SLOT(expandedChanged(QModelIndex))); @@ -92,6 +93,7 @@ void GroupView::contextMenuShortcutPressed() void GroupView::changeDatabase(const QSharedPointer& newDb) { m_model->changeDatabase(newDb.data()); + setColumnWidth(0, sizeHintForColumn(0)); } void GroupView::dragMoveEvent(QDragMoveEvent* event) @@ -134,6 +136,7 @@ void GroupView::expandedChanged(const QModelIndex& index) Group* group = m_model->groupFromIndex(index); group->setExpanded(isExpanded(index)); + setColumnWidth(0, sizeHintForColumn(0)); } void GroupView::recInitExpanded(Group* group)