From 4063f006285db0473046bde645f236c814460eb0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 22 Sep 2019 13:37:56 +0200 Subject: pose-widget: fix widget not expanding --- pose-widget/pose-widget.cpp | 4 ++++ pose-widget/pose-widget.hpp | 1 + 2 files changed, 5 insertions(+) (limited to 'pose-widget') diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp index 35b21bfc..340e05d4 100644 --- a/pose-widget/pose-widget.cpp +++ b/pose-widget/pose-widget.cpp @@ -64,5 +64,9 @@ void pose_widget::paintEvent(QPaintEvent*) p.drawImage(rect(), img); } +QSize pose_widget::sizeHint() const +{ + return { 1 << 16, 1 << 16 }; +} } // ns pose_widget_impl diff --git a/pose-widget/pose-widget.hpp b/pose-widget/pose-widget.hpp index 18b76fb1..b3267ff9 100644 --- a/pose-widget/pose-widget.hpp +++ b/pose-widget/pose-widget.hpp @@ -24,6 +24,7 @@ struct OTR_POSE_WIDGET_EXPORT pose_widget final : QWidget public: pose_widget(QWidget *parent = nullptr); void present(double xAngle, double yAngle, double zAngle, double x, double y, double z); + QSize sizeHint() const override; private: void paintEvent(QPaintEvent*) override; -- cgit v1.2.3