2019-03-31 02:49:57 +00:00
|
|
|
// 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);
|
|
|
|
|
2020-01-27 02:41:28 +00:00
|
|
|
bool GetValue() const;
|
2019-03-31 02:49:57 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void mousePressEvent(QMouseEvent* event) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_trigger_on_odd;
|
|
|
|
};
|