Commit cc640cea authored by Harald Sitter's avatar Harald Sitter 💎

adjust the size of the window after the labels sizes were changed

Summary:
during backtrace loading the widgets get mutated a lot, changing their size
to very long, or very short, but certainly different than from what they
were originally when the window was sized.

as a result the window may now be too small to actually fit the content and
overlap some of the widgets. to resolve this problem we now force a size
adjustment when the backtracewidget changes. other pages, from what I
can tell are not affected.

the layout of this page is a fairly involved unfortuntely, so adjusting
on the fly is the best we can do I fear

CHANGELOG: The crash dialog no longer cuts off text after backtracing
BUG: 337319

Test Plan:
- crash
- try to report bug
- dialog text not cut off (LANGUAGE=de helps with triggering the problem)
- go to advanced backtrace view, still fine

- crash
- go to advanced view in the main window, still fine

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19390
parent 73b43c8b
......@@ -310,6 +310,12 @@ void BacktraceWidget::loadData()
}
ui.m_reloadBacktraceButton->setEnabled(true);
// We substantially change label content, the window might need resizing to
// fit it all.
// https://bugs.kde.org/show_bug.cgi?id=337319
window()->adjustSize();
emit stateChanged();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment