Modules widget: copy only copies the first selected cell

オープン 初心者向け
#1,114 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
cpp
領域
desktop

調査の方向性

ui/moduleswidget.cpp の DebugModulesWidget::copy() から始め、修正済みの DebugMemoryMapWidget::copy() の実装と比較します。関連する選択処理を移植し、選択されたすべてのセルが表示順でコピーされるようにします。列はタブで、行は改行で区切ります。

索引モデルが issue の本文から書いたものです。

説明

Description

In the Debugger Modules sidebar widget, selecting multiple cells and copying (Ctrl+C / right-click → Copy) only copies the contents of the first selected cell. All other selected cells are ignored.

Cause

DebugModulesWidget::copy() in ui/moduleswidget.cpp only reads sel[0]:

QModelIndexList sel = selectionModel()->selectedIndexes();
if (sel.empty())
    return;

auto sourceIndex = m_filter->mapToSource(sel[0]);   // <-- only the first cell
...
switch (sel[0].column()) { ... }

It should iterate over all selected indexes.

Expected behavior

Copy the contents of every selected cell — grouped by row (tab-separated columns within a row, newline between rows), in visual order — matching typical table-copy behavior.

Notes

The same bug existed in the Memory Map widget (DebugMemoryMapWidget::copy()) and has been fixed there; the same fix should be ported to the Modules widget. See DebugMemoryMapWidget::copy() for the reference implementation.

主要言語
C++
スター
331
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Vector35/debugger のほかの issue

Vector35/debugger の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。