From c902a6926297dbe7d039d94206b18dc78d1ea874 Mon Sep 17 00:00:00 2001 From: Kumar Date: Mon, 20 Jul 2020 22:08:45 +0530 Subject: [PATCH] Remove Xpressive help maximise button (#5570) (#5586) * Remove Xpressive maximise button * Fix grammar errors --- plugins/Xpressive/Xpressive.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/Xpressive/Xpressive.cpp b/plugins/Xpressive/Xpressive.cpp index a80a0ae4152..6e648edd481 100644 --- a/plugins/Xpressive/Xpressive.cpp +++ b/plugins/Xpressive/Xpressive.cpp @@ -818,7 +818,7 @@ void XpressiveView::usrWaveClicked() { } QString XpressiveHelpView::s_helpText= -"O1, O2 - Two output waves. Panning is controled by PN1 and PN2.
" +"O1, O2 - Two output waves. Panning is controlled by PN1 and PN2.
" "W1, W2, W3 - Wave samples evaluated by expression. In these samples, t variable ranges [0,1).
" "These waves can be used as functions inside the output waves (O1, O2). The wave period is 1.
" "

Available variables:


" @@ -829,10 +829,10 @@ QString XpressiveHelpView::s_helpText= "srate - Sample rate. In wave expression it returns the wave's number of samples.
" "tempo - Song's Tempo. Available only in the output expressions.
" "v - Note's volume. Note that the output is already multiplied by the volume. Available only in the output expressions.
" -"rel - Gives 0.0 while the key is holded, and 1.0 after the key release. Available only in the output expressions.
" -"trel - Time after release. While the note is holded, it gives 0.0. Afterwards, it start counting seconds.
" +"rel - Gives 0.0 while the key is held, and 1.0 after the key release. Available only in the output expressions.
" +"trel - Time after release. While the note is held, it gives 0.0. Afterwards, it starts counting seconds.
" "The time it takes to shift from 0.0 to 1.0 after key release is determined by the REL knob
" -"seed - A random value that remains consistent in the lifetime of a single wave. meant to be used with randsv
" +"seed - A random value that remains consistent in the lifetime of a single wave. Meant to be used with randsv
" "A1, A2, A3 - General purpose knobs. You can reference them only in O1 and O2. In range [-1,1].
" "

Available functions:


" "W1, W2, W3 - As mentioned before. You can reference them only in O1 and O2.
" @@ -877,6 +877,11 @@ XpressiveHelpView::XpressiveHelpView():QTextEdit(s_helpText) parentWidget()->setAttribute( Qt::WA_DeleteOnClose, false ); parentWidget()->setWindowIcon( PLUGIN_NAME::getIconPixmap( "logo" ) ); parentWidget()->setFixedSize( 300, 500); + + // No maximize button + Qt::WindowFlags flags = parentWidget()->windowFlags(); + flags &= ~Qt::WindowMaximizeButtonHint; + parentWidget()->setWindowFlags( flags ); } void XpressiveView::helpClicked() {