Remove recording button

Remove the recording button that was added to the sample clip view with
commit 48c4dce96f.

This commit simply reverts the aforementioned one.
This commit is contained in:
Michael Gregorius
2024-06-14 20:16:57 +02:00
parent 14c16bea68
commit d8c271650c
3 changed files with 30 additions and 53 deletions

View File

@@ -81,8 +81,6 @@ public:
void setIsPlaying(bool isPlaying);
void setSampleBuffer(std::shared_ptr<const SampleBuffer> sb);
BoolModel& recordModel() { return m_recordModel; }
public slots:
void setSampleFile(const QString& sf);
void updateLength();

View File

@@ -27,13 +27,10 @@
#include "ClipView.h"
class QWidget;
namespace lmms
{
class SampleClip;
class BoolModel;
namespace gui
{
@@ -62,19 +59,13 @@ protected:
void dropEvent( QDropEvent * _de ) override;
void mouseDoubleClickEvent( QMouseEvent * ) override;
void paintEvent( QPaintEvent * ) override;
void resizeEvent(QResizeEvent *event) override;
private:
QWidget* buildRecordWidget(BoolModel& recordModel);
void adjustRecordWidget();
bool recordingCapabilitiesAvailable() const;
private:
SampleClip * m_clip;
QPixmap m_paintPixmap;
bool splitClip( const TimePos pos ) override;
QWidget* m_recordWidget;
} ;