Merge pull request #8587 from lioncash/const-qual
DolphinQt/TASCheckBox: Mark GetValue() as const
This commit is contained in:
commit
47239ddaac
|
@ -13,7 +13,7 @@ TASCheckBox::TASCheckBox(const QString& text) : QCheckBox(text)
|
||||||
setTristate(true);
|
setTristate(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TASCheckBox::GetValue()
|
bool TASCheckBox::GetValue() const
|
||||||
{
|
{
|
||||||
if (checkState() == Qt::PartiallyChecked)
|
if (checkState() == Qt::PartiallyChecked)
|
||||||
return Movie::GetCurrentFrame() % 2 == static_cast<u64>(m_trigger_on_odd);
|
return Movie::GetCurrentFrame() % 2 == static_cast<u64>(m_trigger_on_odd);
|
||||||
|
|
|
@ -14,7 +14,7 @@ class TASCheckBox : public QCheckBox
|
||||||
public:
|
public:
|
||||||
explicit TASCheckBox(const QString& text);
|
explicit TASCheckBox(const QString& text);
|
||||||
|
|
||||||
bool GetValue();
|
bool GetValue() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void mousePressEvent(QMouseEvent* event) override;
|
void mousePressEvent(QMouseEvent* event) override;
|
||||||
|
|
Loading…
Reference in New Issue