Added: Analysis panel which shows the calculated frequency response of the filters for the selected device and channel.
Improved: GUIs of GraphicEQ and Copy command can now be resized Improved: GraphicEQ GUI can now be zoomed separately in X and Y direction using mouse wheel on rulers. Also now shows values at mouse position. Fixed: Original APO was not released when E-APO was shutting down, leading to a memory leak.
This commit is contained in:
1 parent
04d22adb07
commit
0895d84055
49 files changed
+2228
-267
No files matched your search
+38
-1
@@ -436,6 +436,38 @@ void FilterTable::openConfig(QString path)
|
||||
mainWindow->load(path);
|
||||
}
|
||||
|
||||
int FilterTable::getPreferredWidth()
|
||||
{
|
||||
if(scrollArea == NULL)
|
||||
return width();
|
||||
|
||||
return scrollArea->viewport()->width();
|
||||
}
|
||||
|
||||
void FilterTable::updateSizeHints()
|
||||
{
|
||||
for(int i = 0; i < items.size(); i++)
|
||||
{
|
||||
FilterTableRow* tableRow = qobject_cast<FilterTableRow*>(gridLayout->itemAtPosition(i, 0)->widget());
|
||||
tableRow->updateGeometry();
|
||||
}
|
||||
}
|
||||
|
||||
QSize FilterTable::minimumSizeHint() const
|
||||
{
|
||||
QSize size = QWidget::minimumSizeHint();
|
||||
if(size.height() < minimumHeightHint)
|
||||
size.setHeight(minimumHeightHint);
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
void FilterTable::setMinimumHeightHint(int height)
|
||||
{
|
||||
minimumHeightHint = height;
|
||||
updateGeometry();
|
||||
}
|
||||
|
||||
void FilterTable::mousePressEvent(QMouseEvent* event)
|
||||
{
|
||||
if(event->buttons() & Qt::LeftButton )
|
||||
@@ -723,9 +755,9 @@ void FilterTable::wheelEvent(QWheelEvent * event)
|
||||
|
||||
bool FilterTable::eventFilter(QObject* obj, QEvent* event)
|
||||
{
|
||||
QEvent::Type type = event->type();
|
||||
if(scrollingNow)
|
||||
{
|
||||
QEvent::Type type = event->type();
|
||||
if(type == QEvent::Wheel)
|
||||
{
|
||||
QWidget* widget = qobject_cast<QWidget*>(obj);
|
||||
@@ -747,6 +779,11 @@ bool FilterTable::eventFilter(QObject* obj, QEvent* event)
|
||||
}
|
||||
}
|
||||
|
||||
if(obj == scrollArea && type == QEvent::Resize)
|
||||
{
|
||||
updateSizeHints();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user