mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
Fix build failure on macOS 15
This commit is contained in:
parent
18414d8494
commit
f10c3608c5
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue