On Saturday 14 November 2015 20:12:46 Holger Marzen wrote:
> Hi all,
>
> it looks as if there is an old bug regarding windows handling left.
>
> Start Rosegarden, don't fullscreen it but size it to - say - 90% of the
> screen. Then open the audio mixer. The Rosegarden main window resizes.
This smells like a call to adjustSize() ... bingo, it is.
Looks like an old "I don't understand QLayout" workaround (possibly the audio
mixer
widget was not a separate window at some point? otherwise I really wonder why
that
call was there).
I see a similar call in QuantizeParameters::slotTypeChanged(), does anyone know
how to trigger that code?
--
David Faure, [email protected], http://www.davidfaure.fr
Working on KDE Frameworks 5
diff --git a/src/gui/studio/AudioMixerWindow.cpp b/src/gui/studio/AudioMixerWindow.cpp
index a1006ce..56949f0 100644
--- a/src/gui/studio/AudioMixerWindow.cpp
+++ b/src/gui/studio/AudioMixerWindow.cpp
@@ -566,7 +566,6 @@ AudioMixerWindow::populate()
slotUpdateSubmasterVisibility();
slotUpdatePluginButtonVisibility();
- parentWidget()->adjustSize();
adjustSize();
}
@@ -1547,7 +1546,6 @@ AudioMixerWindow::slotUpdateFaderVisibility()
toggleNamedWidgets(d, "audioIdLabel");
- parentWidget()->adjustSize();
adjustSize();
}
@@ -1579,7 +1577,6 @@ AudioMixerWindow::slotUpdateSynthFaderVisibility()
toggleNamedWidgets(action->isChecked(), "synthIdLabel");
- parentWidget()->adjustSize();
adjustSize();
}
@@ -1610,7 +1607,6 @@ AudioMixerWindow::slotUpdateSubmasterVisibility()
toggleNamedWidgets(action->isChecked(), "subMaster");
- parentWidget()->adjustSize();
adjustSize();
}
@@ -1641,7 +1637,6 @@ AudioMixerWindow::slotUpdatePluginButtonVisibility()
rec.setPluginButtonsVisible(action->isChecked());
}
- parentWidget()->adjustSize();
adjustSize();
}
------------------------------------------------------------------------------
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel