Page MenuHomePhabricator

Long filenames in DataManager
Closed, ResolvedPublic

Description

Comment from Matt:

Hi there,

when I have long filenames in DataManager, (eg. from DICOM files), the DataManager view does not display a horizontal scrollbar, meaning that I have to expand the widget.
However, in QAbstractView the QScrollArea has a horizontal scroll bar "As Needed".
So, why does the QAbstractView scroll area in DataManager not know how big its scroll area should be?

Thanks

Matt

Event Timeline

[273470]: Merge branch 'bug-11727-long_filenames_in_datamanager'

Merged commits:

2012-05-09 16:25:54 Anja Groch [58d9e4]
Enabled property for scrolling

Reopend bug since the current fix has a strange effect on the data manager view on Mac OS X

MITK-1-0 keyword is obsolete, we use Target Milestones in the future.

I think we we should revert the column resize behaviour to the old style. The first column (containing the filenames) will fill the available horizontal space of the view. Resizing the view resizes the column to have the same width.

To make the column wider (without resizing the view), you can just drag the handle in the column header to the right. This will result in a horizontal scrollbar showing up.

Tooltips still show the complete file name if it is too long to be displayed completely.

I will add a text elide property to show ellipsis (...) in the middle instead of at the end.

[79a99d]: Merge branch 'bug-11727-long_filenames_in_datamanager'

Merged commits:

2012-06-13 18:00:12 Sascha Zelzer [0cbfa1]
Use old column size behaviour again. Just adding "elide middle".