Qt: add game icons to the trophy manager

and fix some header behaviour
This commit is contained in:
Megamouse 2018-05-17 19:30:13 +02:00 committed by Ivan
parent 6f0bad34f4
commit bb8e89f84a
5 changed files with 135 additions and 24 deletions

View file

@ -259,3 +259,8 @@ QString gui_settings::GetCurrentStylesheetPath()
return m_settingsDir.absoluteFilePath(stylesheet + ".qss");
}
QSize gui_settings::SizeFromSlider(int pos)
{
return gui::gl_icon_size_min + (gui::gl_icon_size_max - gui::gl_icon_size_min) * (pos / (float)gui::gl_max_slider_pos);
}