mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 09:18:54 -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:
parent
a151cdfe12
commit
6f2952137e
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user