[PR #742] [MERGED] QtUtils: Improve QTableView column resizing #93

Closed
opened 2026-01-29 19:06:22 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/stenzek/duckstation/pull/742
Author: @ggrtk
Created: 8/11/2020
Status: Merged
Merged: 8/12/2020
Merged by: @stenzek

Base: masterHead: qtutils


📝 Commits (1)

  • 6e0b71a QtUtils: Improve QTableView column resizing

📊 Changes

2 files changed (+9 additions, -5 deletions)

View changed files

📝 src/duckstation-qt/qtutils.cpp (+8 -4)
📝 src/duckstation-qt/qtutils.h (+1 -1)

📄 Description

This avoids use of hard-coded padding values and properly considers minimum and maximum column widths when calculating the remaining flexible width. Fixes unnecessary horizontal scroll bar showing up by default.

Before:
image

With patch:
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/stenzek/duckstation/pull/742 **Author:** [@ggrtk](https://github.com/ggrtk) **Created:** 8/11/2020 **Status:** ✅ Merged **Merged:** 8/12/2020 **Merged by:** [@stenzek](https://github.com/stenzek) **Base:** `master` ← **Head:** `qtutils` --- ### 📝 Commits (1) - [`6e0b71a`](https://github.com/stenzek/duckstation/commit/6e0b71ace48c8bff751d89b219dc32de65b3330e) QtUtils: Improve QTableView column resizing ### 📊 Changes **2 files changed** (+9 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/duckstation-qt/qtutils.cpp` (+8 -4) 📝 `src/duckstation-qt/qtutils.h` (+1 -1) </details> ### 📄 Description This avoids use of hard-coded padding values and properly considers minimum and maximum column widths when calculating the remaining flexible width. Fixes unnecessary horizontal scroll bar showing up by default. Before: ![image](https://user-images.githubusercontent.com/45282415/89934464-779c6580-dbc5-11ea-9da0-ca5ce8236702.png) With patch: ![image](https://user-images.githubusercontent.com/45282415/89934897-20e35b80-dbc6-11ea-8925-722661b5d8ec.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 19:06:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/duckstation#93