dolphin/Source/Core/DolphinQt/QtUtils/WrapInScrollArea.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
483 B
C
Raw Normal View History

2018-03-17 09:07:51 -06:00
// Copyright 2018 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
class QLayout;
class QWidget;
2018-03-17 17:06:44 -06:00
QWidget* GetWrappedWidget(QWidget* wrapped_widget, QWidget* to_resize = nullptr,
int margin_width = 50, int margin_height = 50);
2018-03-17 09:07:51 -06: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);