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

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

22 lines
424 B
C
Raw Normal View History

2018-01-27 14:35:02 +01:00
// Copyright 2018 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2018-01-27 14:35:02 +01:00
#pragma once
#include <QWidget>
class QBoxLayout;
class AspectRatioWidget : public QWidget
{
Q_OBJECT
2018-01-27 14:35:02 +01:00
public:
2018-01-31 12:35:09 +01:00
AspectRatioWidget(QWidget* widget, float width, float height, QWidget* parent = nullptr);
void resizeEvent(QResizeEvent* event) override;
2018-01-27 14:35:02 +01:00
private:
QBoxLayout* m_layout;
float m_ar_width;
float m_ar_height;
};