Skip to content

Allow commit info dialog to be resized#109

Open
stdout-se wants to merge 1 commit into
jorio:masterfrom
stdout-se:wip/resize-commit-dlg
Open

Allow commit info dialog to be resized#109
stdout-se wants to merge 1 commit into
jorio:masterfrom
stdout-se:wip/resize-commit-dlg

Conversation

@stdout-se
Copy link
Copy Markdown
Contributor

The problem: QMessageBox.setDetailedText() keeps the window at a fixed size whenever the layout updates, which makes long commit bodies hard to read.

  • Replaces the QMessageBox used by "Get commit info" (GetCommitInfo in misctasks.py) with a custom CommitInfoDialog.
  • CommitInfoDialog keeps the same look: info icon, HTML summary with parent/signature links, optional read-only details in a QPlainTextEdit, and OK to dismiss.
  • When details are present, "Show Details..." / "Hide Details..." toggles the body pane. Resizing is enabled only while details are visible. With details hidden, the dialog uses default size and cannot be resized.

Replace commit info window with a custom dialog box to allow it to be resized.

Add CommitInfoDialog as a QDialog with the same info and behaviour. The main difference is that the the dialog is user-resizable with a size grip if the details box is shown. Clicking "Show Details..." or "Hide Details..." will enable or disable resizing.

Adjust tests and translation catalog for the new dialog.

Note: Language files need to be regenerated
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.

1 participant