Merge pull request #8587 from lioncash/const-qual

DolphinQt/TASCheckBox: Mark GetValue() as const
This commit is contained in:
Connor McLaughlin 2020-01-27 12:52:10 +10:00 committed by GitHub
commit 47239ddaac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ TASCheckBox::TASCheckBox(const QString& text) : QCheckBox(text)
setTristate(true);
}
bool TASCheckBox::GetValue()
bool TASCheckBox::GetValue() const
{
if (checkState() == Qt::PartiallyChecked)
return Movie::GetCurrentFrame() % 2 == static_cast<u64>(m_trigger_on_odd);

View file

@ -14,7 +14,7 @@ class TASCheckBox : public QCheckBox
public:
explicit TASCheckBox(const QString& text);
bool GetValue();
bool GetValue() const;
protected:
void mousePressEvent(QMouseEvent* event) override;