Skip to content

Commit

Permalink
Move show of envelope widget after creation of its children
Browse files Browse the repository at this point in the history
  • Loading branch information
iurienistor committed Dec 3, 2023
1 parent ebc5b21 commit 01fcfd4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/envelope_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ EnvelopeWidget::EnvelopeWidget(GeonkickWidget *parent,
{
// Create drawing area.
drawArea = new EnvelopeWidgetDrawingArea(this, geonkickApi);
drawArea->show();

auto rect = drawArea->getDrawingArea();

// Oscillator1 envelope
Expand Down Expand Up @@ -84,6 +82,7 @@ EnvelopeWidget::EnvelopeWidget(GeonkickWidget *parent,
this, showEnvelope(category, envelope));

createPointInfoLabel();
drawArea->show();
}

void EnvelopeWidget::createButtomMenu()
Expand All @@ -93,7 +92,6 @@ void EnvelopeWidget::createButtomMenu()
buttomAreaWidget->setFixedSize(90, 20);
buttomAreaWidget->setPosition(55 + drawArea->x(),
drawArea->y() + drawArea->height() - buttomAreaWidget->height() - 6);
buttomAreaWidget->show();

createLayersButtons(buttomAreaWidget);
menuContainer = new RkContainer(buttomAreaWidget);
Expand All @@ -102,6 +100,7 @@ void EnvelopeWidget::createButtomMenu()
menuContainer->addWidget(layer2Button);
menuContainer->addSpace(5);
menuContainer->addWidget(layer3Button);
buttomAreaWidget->show();
}

void EnvelopeWidget::createPointInfoLabel()
Expand Down

0 comments on commit 01fcfd4

Please sign in to comment.