2019-03-31 04:49:57 +02:00
|
|
|
// Copyright 2019 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-03-31 04:49:57 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QCheckBox>
|
|
|
|
|
|
|
|
class QMouseEvent;
|
2020-06-30 21:07:25 +02:00
|
|
|
class TASInputWindow;
|
2019-03-31 04:49:57 +02:00
|
|
|
|
|
|
|
class TASCheckBox : public QCheckBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-06-30 21:07:25 +02:00
|
|
|
explicit TASCheckBox(const QString& text, TASInputWindow* parent);
|
2019-03-31 04:49:57 +02:00
|
|
|
|
2020-01-27 03:41:28 +01:00
|
|
|
bool GetValue() const;
|
2019-03-31 04:49:57 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void mousePressEvent(QMouseEvent* event) override;
|
|
|
|
|
|
|
|
private:
|
2020-06-30 21:07:25 +02:00
|
|
|
const TASInputWindow* m_parent;
|
2021-09-04 06:43:19 +02:00
|
|
|
int m_frame_turbo_started = 0;
|
|
|
|
int m_turbo_press_frames = 0;
|
|
|
|
int m_turbo_total_frames = 0;
|
2019-03-31 04:49:57 +02:00
|
|
|
};
|