summaryrefslogtreecommitdiffstats
path: root/helper.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement expand and collapse for DB viewArno2017-03-051-0/+14
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...