GUI fixes + log stacking (#2897)

* Add Stacking option to log contextmenu

Squashed commit:

[69f296af] cleanup

[4f4bf41f] use contextmenu instead

[e67036bc] use gui settings instead (+1 squashed commits)

Squashed commits:

[b3913dbe] fix backwards selection (+1 squashed commits)

Squashed commits:

[1e150f04] add stacking option (+3 squashed commit)

Squashed commit:

[be78da4f] fix scroll

[d3450c21] fix clearSelection

[e962ec9c] fix log color issue

* fix recent games related app crash

* gamelist improvements

Squashed commit:

[aa1f79c2] fix title names & con background

[d8381984] fix gamelist search

* finally fix show menu bug

* add rows to gamelist: resolutions, sound formats and parental level

* fix gamelist loadsettings
This commit is contained in:
Megamouse 2017-06-30 14:41:40 +02:00 committed by Ivan
parent 645f0e63ab
commit fd4a153eef
9 changed files with 257 additions and 59 deletions

View file

@ -69,8 +69,13 @@ void game_list_grid::addItem(const QPixmap& img, const QString& name, const int&
QImage exp_img = QImage(exp_size, QImage::Format_ARGB32);
exp_img.fill(Qt::transparent);
// create background for image
QImage bg_img = QImage(img.size(), QImage::Format_ARGB32);
bg_img.fill(QColor(209, 209, 209, 255));
// place raw image inside expanded image
QPainter painter(&exp_img);
painter.drawImage(offset, bg_img);
painter.drawPixmap(offset, img);
painter.end();