| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #include "gui/reusable/resizablestackedwidget.h" |
| 4 | |
| 5 | ResizableStackedWidget::ResizableStackedWidget(QWidget* parent) : QStackedWidget(parent) {} |
| 6 | |
| 7 | QSize ResizableStackedWidget::sizeHint() const { |
| 8 | return currentWidget()->sizeHint(); |
| 9 | } |
| 10 | |
| 11 | QSize ResizableStackedWidget::minimumSizeHint() const { |
| 12 | return currentWidget()->minimumSizeHint(); |
| 13 | } |