Qt: implement flow layout game grid

This will allow us to properly style the grid and also remove the need to refresh the whole grid on a window resize
This commit is contained in:
Megamouse 2023-04-28 16:09:08 +02:00
parent 0b628cb50e
commit f115032095
48 changed files with 2563 additions and 1601 deletions

View file

@ -16,8 +16,6 @@
LOG_CHANNEL(cfg_log, "CFG");
constexpr auto qstr = QString::fromStdString;
render_creator::render_creator(QObject *parent) : QObject(parent)
{
#if defined(HAVE_VULKAN)
@ -50,9 +48,9 @@ render_creator::render_creator(QObject *parent) : QObject(parent)
if (!work_done) // The spawning thread gave up, do not attempt to modify vulkan_adapters
{
for (auto& gpu : gpus)
for (const auto& gpu : gpus)
{
adapters->append(qstr(gpu.get_name()));
adapters->append(QString::fromStdString(gpu.get_name()));
}
}
}