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

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

29 lines
540 B
C
Raw Normal View History

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 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
};