diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-19 18:21:17 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-19 18:21:17 +0100 |
commit | 64b5d204129fe7f7cc47959bffcf2428bbd741c2 (patch) | |
tree | c6f2e5fe130cd06ce48efdd6b4e4617eb3c807e4 /pose-widget | |
parent | a6d29f0200096c6be6099427c121e2ba6768125a (diff) |
pose-widget: kill sizeHint()
This doesn't work properly on complex layouts.
Diffstat (limited to 'pose-widget')
-rw-r--r-- | pose-widget/pose-widget.cpp | 5 | ||||
-rw-r--r-- | pose-widget/pose-widget.hpp | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp index a7a8cd4c..ac3aa74a 100644 --- a/pose-widget/pose-widget.cpp +++ b/pose-widget/pose-widget.cpp @@ -136,9 +136,4 @@ void pose_widget::paintEvent(QPaintEvent*) p.drawImage(QPointF(0,0), forward == (alpha >= 0.0) ? shine : shadow); } -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 a866f958..fb62f849 100644 --- a/pose-widget/pose-widget.hpp +++ b/pose-widget/pose-widget.hpp @@ -26,7 +26,6 @@ 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; QCheckBox mirror{"Mirror", this}; private: void resizeEvent(QResizeEvent *event) override; |