Fix build failure on macOS 15

This commit is contained in:
RickyRister 2025-12-31 05:24:47 -08:00 committed by Lukas Brübach
parent 18414d8494
commit f10c3608c5
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ SegmentedBarWidget::SegmentedBarWidget(QString label, QVector<Segment> segments,
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
} }
QSize SegmentedBarWidget::sizeHint() QSize SegmentedBarWidget::sizeHint() const
{ {
return QSize(50, 150); return QSize(50, 150);
} }

View file

@ -23,7 +23,7 @@ public:
float total = 1.0; float total = 1.0;
explicit SegmentedBarWidget(QString label, QVector<Segment> segments, int total, QWidget *parent = nullptr); explicit SegmentedBarWidget(QString label, QVector<Segment> segments, int total, QWidget *parent = nullptr);
QSize sizeHint(); QSize sizeHint() const override;
protected: protected:
void paintEvent(QPaintEvent *event) override; void paintEvent(QPaintEvent *event) override;

View file

@ -16,7 +16,7 @@ template <typename T> T *findParentOfType(const QObject *obj)
return nullptr; return nullptr;
} }
static void clearLayoutRec(QLayout *l) static inline void clearLayoutRec(QLayout *l)
{ {
if (!l) if (!l)
return; return;