mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 11:51:48 +02:00
Merge pull request #8587 from lioncash/const-qual
DolphinQt/TASCheckBox: Mark GetValue() as const
This commit is contained in:
commit
47239ddaac
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue