Qt: Various layout fixes

This commit is contained in:
spycrab
2018-03-18 00:06:44 +01:00
parent 7465906a0f
commit 1b06e66f1d
5 changed files with 21 additions and 17 deletions

View File

@ -7,7 +7,8 @@
class QLayout;
class QWidget;
QWidget* GetWrappedWidget(QWidget* wrapped_widget, QWidget* to_resize = nullptr, int margin = 50);
QWidget* GetWrappedWidget(QWidget* wrapped_widget, QWidget* to_resize = nullptr,
int margin_width = 50, int margin_height = 50);
// Wrap wrapped_layout in a QScrollArea and fill the parent widget with it
void WrapInScrollArea(QWidget* parent, QLayout* wrapped_layout, QWidget* to_resize = nullptr);