Skip to content

Commit

Permalink
Fix horizontal scrollbar not showing in group view
Browse files Browse the repository at this point in the history
* Fixes #11300
  • Loading branch information
droidmonkey committed Oct 7, 2024
1 parent e07eb2c commit 12ee4a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/group/GroupView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down Expand Up @@ -92,6 +93,7 @@ void GroupView::contextMenuShortcutPressed()
void GroupView::changeDatabase(const QSharedPointer<Database>& newDb)
{
m_model->changeDatabase(newDb.data());
setColumnWidth(0, sizeHintForColumn(0));
}

void GroupView::dragMoveEvent(QDragMoveEvent* event)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 12ee4a9

Please sign in to comment.