View Single Post
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#570
Originally Posted by hqh View Post
Will apply. BTW, have you (or anyone) tried how it looks like with different themes?
It should look the same as any hildon list

BTW, you might want to consider adding this to the top of the delegate's paint() function, I needed it in the mediaplayer to show which item is selected and it uses the current theme image (/etc/hildon/theme is a symlink to /usr/share/themes/$themeapplied, not sure what creates it, probably personalization_app).

Code:
        if(option.state & QStyle::State_Selected)
        {
            r = option.rect;
#ifdef Q_WS_MAEMO_5
            painter->drawImage(r, QImage("/etc/hildon/theme/images/TouchListBackgroundPressed.png"));
#else
            painter->fillRect(r, option.palette.highlight().color());
#endif
        }
 

The Following 3 Users Say Thank You to MohammadAG For This Useful Post: