ui/about: Fix stack size problem
This commit is contained in:
parent
d1747ff403
commit
d1c5cb4fce
|
|
@ -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_supporter = "UI.About.Role.Supporter";
|
||||||
constexpr std::string_view i18n_role_creator = "UI.About.Role.Creator";
|
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);
|
setupUi(this);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ namespace streamfx::ui {
|
||||||
QUrl _link;
|
QUrl _link;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
about_entry(QWidget* parent, ui::about::entry& entry);
|
about_entry(QWidget* parent, const ui::about::entry& entry);
|
||||||
~about_entry();
|
~about_entry();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ static const std::vector<std::string_view> _thankyous = {
|
||||||
":/thankyou/thankyou_fox",
|
":/thankyou/thankyou_fox",
|
||||||
};
|
};
|
||||||
|
|
||||||
static const std::list<streamfx::ui::about::entry> _entries = {
|
static const streamfx::ui::about::entry _entries[] = {
|
||||||
// Contributers
|
// Contributers
|
||||||
// - 2021
|
// - 2021
|
||||||
streamfx::ui::about::entry{"Michael \"Xaymar\" Dirks", streamfx::ui::about::role_type::CONTRIBUTOR, "",
|
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"},
|
streamfx::ui::about::entry{"wwj402", streamfx::ui::about::role_type::CONTRIBUTOR, "", "https://github.com/wwj402"},
|
||||||
// - 2018
|
// - 2018
|
||||||
|
|
||||||
// Separator
|
|
||||||
streamfx::ui::about::entry{"", streamfx::ui::about::role_type::THANKYOU, "", ""},
|
|
||||||
|
|
||||||
// Translators
|
// Translators
|
||||||
// - TODO
|
// - TODO
|
||||||
|
|
||||||
|
|
@ -114,7 +111,7 @@ streamfx::ui::about::about() : QDialog(reinterpret_cast<QWidget*>(obs_frontend_g
|
||||||
bool column_selector = false;
|
bool column_selector = false;
|
||||||
size_t row_selector = 0;
|
size_t row_selector = 0;
|
||||||
QGridLayout* content_layout = dynamic_cast<QGridLayout*>(content->layout());
|
QGridLayout* content_layout = dynamic_cast<QGridLayout*>(content->layout());
|
||||||
for (auto entry : _entries) {
|
for (const auto& entry : _entries) {
|
||||||
if (entry.role == role_type::SPACER) {
|
if (entry.role == role_type::SPACER) {
|
||||||
row_selector += 2;
|
row_selector += 2;
|
||||||
column_selector = 0;
|
column_selector = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue