1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-29 03:09:14 -05:00

Increase widget minimum width when scope is visible so that it is wide enough for all its controls

This commit is contained in:
Jon Beniston 2021-07-15 12:00:45 +01:00
parent a151cdfe12
commit 6f2952137e
3 changed files with 36 additions and 6 deletions

View File

@ -347,8 +347,18 @@ void AISDemodGUI::filter()
void AISDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
{
(void) widget;
(void) rollDown;
if (widget == ui->scopeContainer)
{
if (rollDown)
{
// Make wide enough for scope controls
setMinimumWidth(716);
}
else
{
setMinimumWidth(352);
}
}
}
void AISDemodGUI::onMenuDialogCalled(const QPoint &p)

View File

@ -390,8 +390,18 @@ void PagerDemodGUI::filter()
void PagerDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
{
(void) widget;
(void) rollDown;
if (widget == ui->scopeContainer)
{
if (rollDown)
{
// Make wide enough for scope controls
setMinimumWidth(716);
}
else
{
setMinimumWidth(352);
}
}
}
void PagerDemodGUI::onMenuDialogCalled(const QPoint &p)

View File

@ -178,8 +178,18 @@ void RadioClockGUI::on_timezone_currentIndexChanged(int index)
void RadioClockGUI::onWidgetRolled(QWidget* widget, bool rollDown)
{
(void) widget;
(void) rollDown;
if (widget == ui->scopeContainer)
{
if (rollDown)
{
// Make wide enough for scope controls
setMinimumWidth(716);
}
else
{
setMinimumWidth(352);
}
}
}
void RadioClockGUI::onMenuDialogCalled(const QPoint &p)