2018-03-17 16:07:51 +01:00
|
|
|
// Copyright 2018 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-03-17 16:07:51 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class QLayout;
|
|
|
|
class QWidget;
|
|
|
|
|
2018-03-18 00:06:44 +01:00
|
|
|
QWidget* GetWrappedWidget(QWidget* wrapped_widget, QWidget* to_resize = nullptr,
|
|
|
|
int margin_width = 50, int margin_height = 50);
|
2018-03-17 16:07:51 +01:00
|
|
|
|
|
|
|
// Wrap wrapped_layout in a QScrollArea and fill the parent widget with it
|
|
|
|
void WrapInScrollArea(QWidget* parent, QLayout* wrapped_layout, QWidget* to_resize = nullptr);
|