| 1 | // Copyright 2018 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | class QLayout; |
| 7 | class QWidget; |
| 8 | |
| 9 | // Puts the given widget in a QScrollArea and returns that. |
| 10 | QWidget* GetWrappedWidget(QWidget* wrapped_widget); |
| 11 | |
| 12 | // Wrap wrapped_layout in a QScrollArea and fill the parent widget with it. |
| 13 | void WrapInScrollArea(QWidget* parent, QLayout* wrapped_layout); |