This patch makes it possible to click on the song/album/artist name to enter the Now Playing/Album/Artist view in the corresponding album or artist.
- Group Reviewers
- R255:43a459132783: [WIP] Make labels in header bar clickeable
R255:50f51b971edf: Make labels in header bar clickeable
This patch isn't finished yet. I've come across a problem with the album view: the openOneAlbum() function requires a databaseID to get the album data but I have no way of getting that in the header bar. I looked around the headerbarmanager code for a bit but I have no idea how we could fetch that. Everything else works.
This is mostly done too but there's still one small bug: when I go to the now playing view and then click on the album name it doesn't open the album, but only switches to the album view.
Still trying to figure this out
I tried to take another look at this, but after rebasing on master I started getting an error when building:
/home/januz/code/elisa/autotests/qabstractitemmodeltester.cpp:43:31: fatal error: private/qobject_p.h: No such file or directory compilation terminated. autotests/CMakeFiles/allalbumsmodeltest.dir/build.make:62: recipe for target 'autotests/CMakeFiles/allalbumsmodeltest.dir/qabstractitemmodeltester.cpp.o' failed