The current version was wrong for non-English dialogs, and even for
the English one, due to the translator commands that were not removed
for calculation (as in "Formats[[output]]").
Candidate for stable.
QFontMetrics fm(list_->font());
// calculate the real size the current item needs in the listview
- int itemsize = fm.width(name) + 10 + list_->indentation() * depth;
+ int itemsize = fm.width(qt_(name)) + 10 + list_->indentation() * depth;
// adjust the listview width to the max. itemsize
if (itemsize > list_->minimumWidth())
list_->setMinimumWidth(itemsize);