dolphin/Source/Core/DolphinQt/TAS/TASCheckBox.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
517 B
C
Raw Normal View History

2019-03-31 02:49:57 +00:00
// Copyright 2019 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2019-03-31 02:49:57 +00:00
#pragma once
#include <QCheckBox>
class QMouseEvent;
class TASInputWindow;
2019-03-31 02:49:57 +00:00
class TASCheckBox : public QCheckBox
{
Q_OBJECT
public:
explicit TASCheckBox(const QString& text, TASInputWindow* parent);
2019-03-31 02:49:57 +00:00
bool GetValue() const;
2019-03-31 02:49:57 +00:00
protected:
void mousePressEvent(QMouseEvent* event) override;
private:
const TASInputWindow* m_parent;
int m_frame_turbo_started;
int m_turbo_press_frames;
int m_turbo_total_frames;
2019-03-31 02:49:57 +00:00
};