Skip to content

Performance: make side panel resizable - #54

Merged
benapetr merged 1 commit into
benapetr:masterfrom
vifair22:feature/resizable-performance-sidepanel
May 9, 2026
Merged

benapetr merged 1 commit into
benapetr:masterfrom
vifair22:feature/resizable-performance-sidepanel

Conversation

@vifair22

@vifair22 vifair22 commented May 9, 2026

Copy link
Copy Markdown
Contributor

Summary

On displays where the Performance tab's right pane has a large minimum
size, the side panel summaries get truncated (e.g. ...GB/31.2 GB (22%)
for memory) and there's no way for the user to widen the panel.

This PR makes the side panel user-resizable via a QSplitter and
persists the chosen size across sessions. Similar functionally to how modern
versions of Windows Task Manager handle it.

Changes

  • Replace the static QHBoxLayout in PerformanceWidget::setupLayout()
    with a horizontal QSplitter (setChildrenCollapsible(false)).
    The splitter handle replaces the manual QFrame::VLine separator.
  • Persist splitter state via Configuration::PerformanceSplitterState
    (key Performance/SplitterState), following the existing
    QByteArray + QSettings pattern used for WindowGeometry,
    ProcessListHeaderState, etc.
  • Drop setMaximumWidth(200) from Perf::SidePanel. The splitter now
    governs width; the side panel's existing setMinimumWidth(150)
    remains as the floor, and the right pane's minimumSizeHint() is
    the natural ceiling.
  • Default to 220 px on first run (This might be too big on some displays? Open to
    suggestions). I was thinking about maybe calculating the default size to be the
    smallest size it could be without causing the text to be truncated. If this seems
    like a good idea I can submit a follow up PR.

Old (2560x1440, 100% display scale)

Screenshot_20260508_194923

New

image

Replace the static QHBoxLayout in PerformanceWidget with a QSplitter so
the user can resize the side panel. Persist the splitter state via
Configuration (Performance/SplitterState) so the chosen size survives
across sessions. Drop the side panel's hard 200px max width — it was
the real reason summaries truncated on wider displays — and let the
right pane's minimum size hint act as the natural ceiling.
@benapetr
benapetr merged commit 0d7bb44 into benapetr:master May 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants