darkfeline / cantata

Automatically exported from code.google.com/p/cantata
GNU General Public License v3.0
0 stars 0 forks source link

Request: column alignment options in table view #632

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which version of Cantata?
1.5.1

Which build? KDE, Qt4, Qt5, Windows, Ubuntu, Mac?
Built on Ubuntu Trusty

It would be nice to be able to change the alignment of the column data in the 
tableview playqueue widget.  Clementine handily lets you right-click column 
headers and choose from left/center/right.  My view is like this:

|     Artist |   Album   | Track     |

The artist is aligned right, the album center, and the track left.  This way a 
track's data is close together in the same row, rather than being:

| Artist     | Album     | Track     |

...which often leaves large gaps between the data in columns, depending on the 
length of a track's name, etc.

I looked into patching this myself, but after digging around in the code for 
some time, the best I could come up with was that it's necessary to subclass 
either the model or delegate: http://qt-project.org/forums/viewthread/11911  I 
don't know enough about Qt or C++ to do this myself anytime soon, so I'm making 
this request here.  Thanks for your consideration and your work on Cantata.

Original issue reported on code.google.com by alphadel...@gmail.com on 23 Feb 2015 at 8:02

GoogleCodeExporter commented 9 years ago
Well, seeing as the table view code was 'borrowed' from Clemetine, this should 
be easy enough todo. It's not already implemented, as never use the table view 
- and I dont like odd alignments.

Will try for 1.6.0

Original comment by craig.p....@gmail.com on 23 Feb 2015 at 12:39

GoogleCodeExporter commented 9 years ago
Implemented in trunk (for 1.6.0) now.

Original comment by craig.p....@gmail.com on 24 Feb 2015 at 11:33

GoogleCodeExporter commented 9 years ago
Thank you.  I just built from trunk and it looks great.  :)

Original comment by alphadel...@gmail.com on 24 Feb 2015 at 11:23