D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-13 Thread Nathaniel Graham
ngraham added a comment.


  Reverted. Will find another way. Sorry for the regression, everyone!

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks, cullmann, cfeck
Cc: abetts, apol, cfeck, cullmann, kde-frameworks-devel, michaelh, ngraham, 
bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-13 Thread Nathaniel Graham
ngraham added a comment.


  Actually I feel like this regressed the visuals for the file dialog itself in 
the name of improving the situation for apps that use this view in a sidebar.
  
  Unfortunately, since it also regresses performance, I will be reverting it 
and and will look for another approach.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks, cullmann, cfeck
Cc: abetts, apol, cfeck, cullmann, kde-frameworks-devel, michaelh, ngraham, 
bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-13 Thread Andres Betts
abetts added a comment.


  +1 for improving visuals

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks, cullmann, cfeck
Cc: abetts, apol, cfeck, cullmann, kde-frameworks-devel, michaelh, ngraham, 
bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-13 Thread Nathaniel Graham
ngraham added a comment.


  In D17461#376509 , @apol wrote:
  
  > Hey, this change makes the file dialog crawl on big directories.
  >  For me, going into /usr/include makes the whole application freeze.
  >
  > We should consider reverting and trying a different approach.
  
  
  Weird, but can confirm. :/ I guess the minimum width calculation for the name 
column is a non-trivial operation.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks, cullmann, cfeck
Cc: apol, cfeck, cullmann, kde-frameworks-devel, michaelh, ngraham, bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-13 Thread Aleix Pol Gonzalez
apol added a comment.


  Hey, this change makes the file dialog crawl on big directories.
  For me, going into /usr/include makes the whole application freeze.
  
  We should consider reverting and trying a different approach.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks, cullmann, cfeck
Cc: apol, cfeck, cullmann, kde-frameworks-devel, michaelh, ngraham, bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-09 Thread Nathaniel Graham
This revision was automatically updated to reflect the committed changes.
Closed by commit R241:f28e34306378: [KDirOperator] Dont squeeze Name 
column when there isnt enough horizontal… (authored by ngraham).

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D17461?vs=47216=47231

REVISION DETAIL
  https://phabricator.kde.org/D17461

AFFECTED FILES
  src/filewidgets/kdiroperatordetailview.cpp

To: ngraham, #vdg, #frameworks, cullmann, cfeck
Cc: cfeck, cullmann, kde-frameworks-devel, michaelh, ngraham, bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-09 Thread Nathaniel Graham
ngraham added a comment.


  Cool, landing now. If I can get some assistance, I might try my hand at 
submitting a Qt patch to add the requested resize mode.

REPOSITORY
  R241 KIO

BRANCH
  kdiroperator-detail-view-name-column (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks, cullmann, cfeck
Cc: cfeck, cullmann, kde-frameworks-devel, michaelh, ngraham, bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-09 Thread Christoph Feck
cfeck accepted this revision.
cfeck added a comment.


  See also bug 394115 (and I blamed Qt ...)

REPOSITORY
  R241 KIO

BRANCH
  kdiroperator-detail-view-name-column (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks, cullmann, cfeck
Cc: cfeck, cullmann, kde-frameworks-devel, michaelh, ngraham, bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-09 Thread Nathaniel Graham
ngraham added a comment.


  Yeah, I do too. It's certainly more functional. Do you think I should just 
commit this now?

REPOSITORY
  R241 KIO

BRANCH
  kdiroperator-detail-view-name-column (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks, cullmann
Cc: cullmann, kde-frameworks-devel, michaelh, ngraham, bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-09 Thread Christoph Cullmann
cullmann accepted this revision.
cullmann added a comment.
This revision is now accepted and ready to land.


  I think the proposed change is already an improvement.

REPOSITORY
  R241 KIO

BRANCH
  kdiroperator-detail-view-name-column (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks, cullmann
Cc: cullmann, kde-frameworks-devel, michaelh, ngraham, bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-09 Thread Nathaniel Graham
ngraham added a comment.


  A slightly nicer solution would appear to be to keep column 0 using 
`QHeaderView::Stretch` like it already is, but give only that column a minimum 
size equal to the longest item. That way the name column would dynamically 
expand as the view was enlarged which keeps the other columns aligned to the 
right side, but would not compress as the view shrinks. Unfortunately this 
doesn't appear to be easily possible: https://bugreports.qt.io/browse/QTBUG-1248

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks
Cc: kde-frameworks-devel, michaelh, ngraham, bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-09 Thread Nathaniel Graham
ngraham edited the test plan for this revision.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17461

To: ngraham, #vdg, #frameworks
Cc: kde-frameworks-devel, michaelh, ngraham, bruns


D17461: [KDirOperator] Don't squeeze Name column when there isn't enough horizontal space

2018-12-09 Thread Nathaniel Graham
ngraham created this revision.
ngraham added reviewers: VDG, Frameworks.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
ngraham requested review of this revision.

REVISION SUMMARY
  When a `KDirOperator` view is used in Detailed or Detailed Tree view, when 
there isn't enough horizontal space the Name column currently gets squeezed and 
become illegible.
  
  This patch fixes that by making the name column fixed-width so it never gets 
too small to read the contents; instead the view gets a horizontal scrollbar, 
which is preferable.
  
  BUG: 401506
  FIXED-IN: 5.54

TEST PLAN
  In Kate's Filesystem Browser plugin sidebar view:
  
  In the open/save dialog when there's not enough horizontal space:
  
  In the open/save dialog when there //is// enough horizontal space:
  
  In this case, the other columns no longer stick to the right size of the view 
when the window is resized, which maybe isn't as nice as current behavior. Open 
to suggestions.

REPOSITORY
  R241 KIO

BRANCH
  kdiroperator-detail-view-name-column (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D17461

AFFECTED FILES
  src/filewidgets/kdiroperatordetailview.cpp

To: ngraham, #vdg, #frameworks
Cc: kde-frameworks-devel, michaelh, ngraham, bruns