mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
ui/about: Fix stack size problem
This commit is contained in:
parent
d1747ff403
commit
d1c5cb4fce
3 changed files with 5 additions and 7 deletions
|
@ -26,7 +26,8 @@ constexpr std::string_view i18n_role_friend = "UI.About.Role.Friend";
|
|||
constexpr std::string_view i18n_role_supporter = "UI.About.Role.Supporter";
|
||||
constexpr std::string_view i18n_role_creator = "UI.About.Role.Creator";
|
||||
|
||||
streamfx::ui::about_entry::about_entry(QWidget* parent, streamfx::ui::about::entry& entry) : QWidget(parent), _link()
|
||||
streamfx::ui::about_entry::about_entry(QWidget* parent, const streamfx::ui::about::entry& entry)
|
||||
: QWidget(parent), _link()
|
||||
{
|
||||
setupUi(this);
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace streamfx::ui {
|
|||
QUrl _link;
|
||||
|
||||
public:
|
||||
about_entry(QWidget* parent, ui::about::entry& entry);
|
||||
about_entry(QWidget* parent, const ui::about::entry& entry);
|
||||
~about_entry();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -44,7 +44,7 @@ static const std::vector<std::string_view> _thankyous = {
|
|||
":/thankyou/thankyou_fox",
|
||||
};
|
||||
|
||||
static const std::list<streamfx::ui::about::entry> _entries = {
|
||||
static const streamfx::ui::about::entry _entries[] = {
|
||||
// Contributers
|
||||
// - 2021
|
||||
streamfx::ui::about::entry{"Michael \"Xaymar\" Dirks", streamfx::ui::about::role_type::CONTRIBUTOR, "",
|
||||
|
@ -72,9 +72,6 @@ static const std::list<streamfx::ui::about::entry> _entries = {
|
|||
streamfx::ui::about::entry{"wwj402", streamfx::ui::about::role_type::CONTRIBUTOR, "", "https://github.com/wwj402"},
|
||||
// - 2018
|
||||
|
||||
// Separator
|
||||
streamfx::ui::about::entry{"", streamfx::ui::about::role_type::THANKYOU, "", ""},
|
||||
|
||||
// Translators
|
||||
// - TODO
|
||||
|
||||
|
@ -114,7 +111,7 @@ streamfx::ui::about::about() : QDialog(reinterpret_cast<QWidget*>(obs_frontend_g
|
|||
bool column_selector = false;
|
||||
size_t row_selector = 0;
|
||||
QGridLayout* content_layout = dynamic_cast<QGridLayout*>(content->layout());
|
||||
for (auto entry : _entries) {
|
||||
for (const auto& entry : _entries) {
|
||||
if (entry.role == role_type::SPACER) {
|
||||
row_selector += 2;
|
||||
column_selector = 0;
|
||||
|
|
Loading…
Reference in a new issue