From 9343fc6c77da8678df98ceb6330c61f43aa48737 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 5 Mar 2017 05:51:22 +0100 Subject: Implement expand and collapse for DB view Sounds easy, right? It is, if you don't try to create a QIcon from a QChar. That took me a while... First, it's not a good idea to fill the QPixmap for the QIcon with transparency. That gives you a random background. Fill it with palette color instead. Then there's QFont's pixelSize(). I have absolutely no idea how it corresponds to the pixmap's size, but roughly double the width of the pixmap is a good guess... --- BeetPlayer.pro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'BeetPlayer.pro') diff --git a/BeetPlayer.pro b/BeetPlayer.pro index 4a208a8..a2aa13f 100644 --- a/BeetPlayer.pro +++ b/BeetPlayer.pro @@ -30,7 +30,8 @@ SOURCES += main.cpp\ globals.cpp \ playerwidget.cpp \ beetview.cpp \ - indexerdialog.cpp + indexerdialog.cpp \ + helper.cpp HEADERS += beetplayer.h \ configurationdialog.h \ @@ -38,7 +39,8 @@ HEADERS += beetplayer.h \ globals.h \ playerwidget.h \ beetview.h \ - indexerdialog.h + indexerdialog.h \ + helper.h LIBS += -ltag -- cgit v1.2.3-70-g09d2