Added: VST Plugin support. Add and configure plugins via Configuration Editor. The plugin's architecture has to match the OS architecture, so most people will need 64-bit plugins. The subdirectory plugins is offered to put plugins into, but they can be opened from any directory with sufficient permissions.
Fixed: When trying to add a high-pass filter in the Configuration Editor, it was instead configured to be a low-pass filter.
This commit is contained in:
1 parent
989812ba36
commit
a24eaa0cd9
58 files changed
+3334
-151
No files matched your search
@@ -26,9 +26,13 @@ EscapableLineEdit::EscapableLineEdit(QWidget* parent)
|
||||
{
|
||||
}
|
||||
|
||||
EscapableLineEdit::EscapableLineEdit(const QString& text, QWidget* parent)
|
||||
: QLineEdit(text, parent)
|
||||
{
|
||||
}
|
||||
|
||||
void EscapableLineEdit::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
|
||||
if (event->key() == Qt::Key_Escape)
|
||||
emit editingCanceled();
|
||||
else
|
||||
|
||||
@@ -26,6 +26,7 @@ class EscapableLineEdit : public QLineEdit
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit EscapableLineEdit(QWidget* parent = 0);
|
||||
explicit EscapableLineEdit(const QString& text, QWidget* parent = 0);
|
||||
|
||||
signals:
|
||||
void editingCanceled();
|
||||
|
||||
@@ -20,15 +20,15 @@
|
||||
#include "ResizingLineEdit.h"
|
||||
|
||||
ResizingLineEdit::ResizingLineEdit(QWidget* parent)
|
||||
: QLineEdit(parent)
|
||||
: EscapableLineEdit(parent)
|
||||
{
|
||||
connect(this, SIGNAL(textChanged(QString)), this, SLOT(readjustSize()));
|
||||
|
||||
readjustSize();
|
||||
}
|
||||
|
||||
ResizingLineEdit::ResizingLineEdit(const QString& text, QWidget* parent)
|
||||
: QLineEdit(text, parent)
|
||||
ResizingLineEdit::ResizingLineEdit(const QString& text, bool forceWidth, QWidget* parent)
|
||||
: EscapableLineEdit(text, parent), forceWidth(forceWidth)
|
||||
{
|
||||
connect(this, SIGNAL(textChanged(QString)), this, SLOT(readjustSize()));
|
||||
|
||||
@@ -50,5 +50,8 @@ QSize ResizingLineEdit::sizeHint() const
|
||||
|
||||
void ResizingLineEdit::readjustSize()
|
||||
{
|
||||
setFixedWidth(sizeHint().width());
|
||||
if (forceWidth)
|
||||
setFixedWidth(sizeHint().width());
|
||||
else
|
||||
setMinimumWidth(sizeHint().width());
|
||||
}
|
||||
@@ -19,17 +19,20 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QLineEdit>
|
||||
#include "EscapableLineEdit.h"
|
||||
|
||||
class ResizingLineEdit : public QLineEdit
|
||||
class ResizingLineEdit : public EscapableLineEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ResizingLineEdit(QWidget* parent = 0);
|
||||
explicit ResizingLineEdit(const QString& text, QWidget* parent = 0);
|
||||
explicit ResizingLineEdit(const QString& text, bool forceWidth, QWidget* parent = 0);
|
||||
|
||||
QSize sizeHint() const override;
|
||||
|
||||
private slots:
|
||||
void readjustSize();
|
||||
|
||||
private:
|
||||
bool forceWidth = false;
|
||||
};
|
||||
Reference in new issue
Block a user