mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-25 02:43:02 -07:00
[Replay] Make fast forward speed configurable (#7037)
* [Replay] Make fast forward speed configurable * fix settings widget * clamp interval
This commit is contained in:
parent
ae37762ee1
commit
b70f770633
9 changed files with 102 additions and 7 deletions
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef COCKATRICE_REPLAY_QUICK_SETTINGS_WIDGET_H
|
||||
#define COCKATRICE_REPLAY_QUICK_SETTINGS_WIDGET_H
|
||||
|
||||
#include "../../interface/widgets/quick_settings/settings_button_widget.h"
|
||||
|
||||
#include <QDoubleSpinBox>
|
||||
|
||||
class ReplayQuickSettingsWidget : public SettingsButtonWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ReplayQuickSettingsWidget(QWidget *parent);
|
||||
|
||||
void retranslateUi();
|
||||
|
||||
signals:
|
||||
void fastForwardSpeedChanged(qreal speed);
|
||||
|
||||
private:
|
||||
QLabel fastForwardSpeedLabel;
|
||||
QDoubleSpinBox fastForwardSpeedBox;
|
||||
|
||||
private slots:
|
||||
void actUpdateFastForwardSpeed(qreal value);
|
||||
};
|
||||
|
||||
#endif // COCKATRICE_REPLAY_QUICK_SETTINGS_WIDGET_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue