mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
b493bdb912
This doesn't actually modify the checkbox's state, so this can be marked as a const-qualified member function.
25 lines
400 B
C++
25 lines
400 B
C++
// Copyright 2019 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <QCheckBox>
|
|
|
|
class QMouseEvent;
|
|
|
|
class TASCheckBox : public QCheckBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit TASCheckBox(const QString& text);
|
|
|
|
bool GetValue() const;
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent* event) override;
|
|
|
|
private:
|
|
bool m_trigger_on_odd;
|
|
};
|