Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
VST: Add workaround for small effect window on project load
- Loading branch information
|
@@ -41,7 +41,6 @@ |
|
|
#include <QToolBar> |
|
|
#include <QLabel> |
|
|
|
|
|
|
|
|
VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) : |
|
|
EffectControlDialog( _ctl ), |
|
|
m_pluginWidget( NULL ), |
|
@@ -274,6 +273,17 @@ void VstEffectControlDialog::paintEvent( QPaintEvent * ) |
|
|
} |
|
|
} |
|
|
|
|
|
void VstEffectControlDialog::showEvent(QShowEvent *_se) |
|
|
{ |
|
|
EffectControlDialog::showEvent( _se ); |
|
|
// Workaround for a (unexplained) bug where on project-load the effect |
|
|
// control window has size 0 and would only restore to the proper size upon |
|
|
// moving the window or interacting with it. |
|
|
if (parentWidget()) { |
|
|
parentWidget()->adjustSize(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -50,6 +50,7 @@ class VstEffectControlDialog : public EffectControlDialog |
|
|
|
|
|
protected: |
|
|
virtual void paintEvent( QPaintEvent * _pe ); |
|
|
virtual void showEvent( QShowEvent* _se ) override; |
|
|
|
|
|
private: |
|
|
QWidget * m_pluginWidget; |
|
|