DolphinQt/TASCheckBox: Mark GetValue() as const

This doesn't actually modify the checkbox's state, so this can be marked
as a const-qualified member function.
This commit is contained in:
Lioncash 2020-01-26 21:41:28 -05:00
parent 42c03c4dad
commit b493bdb912
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;